Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud - resource_manager Python module issue

I am preparing automation for Google Cloud. I am using native Python modules. All my code is stored on a GIT repository. I am using PyCharm, and I added file source in PyCharm in order to use GIT stored files (Settings/Project/Project Structure). I added GIT files as sources root. Once I run my code I am still receiving error message like this: ImportError: cannot import name 'resource_manager' from 'google.cloud' (unknown location). On my laptop I have installed required modules for Google automation: google-api-python-client, oauth2client, google-cloud-resource-manager. Rest of the modules work fine, I am able to import custom modules. I have installed Python 3.9, pip v. 21.2.2, google-cloud-resource-manager 1.0.2

like image 236
tester81 Avatar asked Mar 10 '26 12:03

tester81


2 Answers

Seems like it needs to be this now:

from google.cloud import resourcemanager_v3
like image 166
Pablo Beltran Avatar answered Mar 12 '26 02:03

Pablo Beltran


Try using the following version google-cloud-resource-manager==0.30.0

like image 34
user16696671 Avatar answered Mar 12 '26 01:03

user16696671



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!