ImportError: No module named google.cloud.storage
See original GitHub issueI have read and implemented several solution to fix this issue on my local machine, and all resulted in the same error response. Now I am executing my code in GOOGLE CLOUD SHELL, which is suppose to have google-cloud pre-install, yet I am still receiving the same errors. PLEASE HELP!!!
python version - python2.7
this is the import script
from google.cloud import storage
this is the traceback error
Traceback (most recent call last):
File "/google/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/google/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/google/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
obj = __import__(path[0])
File "/home/mitchkojelegance/lekoj/main.py", line 3, in <module>
from google.cloud import storage
File "/google/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/runtime/sandbox.py", line 1148, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named google.cloud.storage
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
ImportError: No module named google.cloud - Stack Overflow
I used sudo python -m pip install google-cloud instead and it worked.
Read more >No module named 'google-cloud-storage' – Finxter
Quick Fix: Python raises the ImportError: No module named 'google-cloud-storage' when it cannot find the library google-cloud-storage .
Read more >How To Solve This Error: Importerror: No Module Named ...
When you get the ImportError: No module named 'google' error, it means that your Python installation doesn't have the Google Cloud Library ...
Read more >ImportError: No module named cloud : Forums
ImportError : No module named cloud ... some file that you happen to have in your storage called google.py ):. import google print(google....
Read more >PYTHON : ImportError: No module named 'google' - YouTube
PYTHON : ImportError : No module named ' google ' [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] PYTHON : ImportError: No...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@le-koj You need to install
google-cloud-storage
into your Python environment:I tried all command below but it DIDNT work it.
env linux centos7 python3.6.8
target code
error from google.cloud import storage ImportError: No module named google.cloud