-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
google-cloud 0.20.0 'from google.cloud import storage' not working #2464
Comments
Yay packaging! Try
|
I moved today from 0.19.0 to 0.20.0 using pip install -r requirements.txt after removing the virtual env and recreating again without update, it is working. |
Great news! Thanks |
I also just upgraded from 0.19 to 0.20 with
Uninstall/reinstall had no effect. |
@jlowin, since switching to namespace packages, you'll note in our @dhermes, are there any workarounds so our examples work in the CLI REPL? |
@daspecster I used the same import statement in 0.19 without issue ( |
@jlowin, if you put |
Yes, that also failed -- but I think I've got it -- I had to uninstall both google-cloud and also protobuf, then let google-cloud reinstall protobuf. |
@jlowin Can you do |
Sure, though after my last comment I think it won't be interesting :)
|
Ok, I can create this error deterministically (on my machine at least):
result:
|
Indeed.
whereas installed just fresh
|
What's very strange is that Not sure what we can do though. It's likely a bug with |
bizarre and you're right, maybe nothing you can do! I'd at least recommend adding that note about the 0.19 -> 0.20 upgrade path to README though, I bet a lot of people will get bitten just through normal requirements.txt dependency installation! For what it's worth I continued the conversation at #2493 (comment) with the steps that resolved this for me. |
I just encountered the same problem, but have had it working before.
|
Uninstalling and doing a clean install did solve it. |
I am however now experiencing the same with a python:2 docker image using google.cloud storage. |
Again after updating google-storage-cloud the package didn't work due to residual google packages with mismatch dependency. Needed to delete all the old packages that pip3 uninstall google-cloud was ignoring using: Hopefully one day Google will master pip or improve pip system. |
from google.cloud import bigtable gives this error--> ImportError: cannot import name 'init_grpc_aio' from 'grpc._cython.cygrpc' (C:\Users\PYTHON\lib\site-packages\grpc_cython\cygrpc.cp37-win_amd64.pyd) |
Had this weird problem where the Running |
After upgrade:
The text was updated successfully, but these errors were encountered: