-
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
Tasks: ImportError: cannot import name 'expr_pb2' from 'google.type' #8034
Comments
Thanks for the report. Trying to reproduce in a fresh virtual environment: $ python3.7 -m venv /tmp/gcp/8034
$ /tmp/gcp/8034/bin/pip install --upgrade setuptools pip wheel
...
Successfully installed pip-19.1.1 setuptools-41.0.1 wheel-0.33.4
$ /tmp/gcp/8034/bin/pip install google-cloud-tasks
...
Successfully installed cachetools-3.1.0 certifi-2019.3.9 chardet-3.0.4 google-api-core-1.11.0 google-auth-1.6.3 google-cloud-tasks-1.1.0 googleapis-common-protos-1.5.10 grpc-google-iam-v1-0.11.4 grpcio-1.20.1 idna-2.8 protobuf-3.7.1 pyasn1-0.4.5 pyasn1-modules-0.2.5 pytz-2019.1 requests-2.22.0 rsa-4.0 six-1.12.0 urllib3-1.25.2
...
$ /tmp/gcp/8034/bin/python -c "from google.cloud import tasks_v2; print(tasks_v2.__path__)"
['/tmp/gcp/8034/lib/python3.7/site-packages/google/cloud/tasks_v2'] Looking at the output from
I see you also have $ /tmp/gcp/8034/bin/pip install google-cloud-{datastore,pubsub,storage}
...
Successfully installed google-cloud-core-1.0.0 google-cloud-datastore-1.8.0 google-cloud-pubsub-0.41.0 google-cloud-storage-1.16.0 google-resumable-media-0.3.2
$ /tmp/gcp/8034/bin/pip freeze | grep "^g"
google-api-core==1.11.0
google-auth==1.6.3
google-cloud-core==1.0.0
google-cloud-datastore==1.8.0
google-cloud-pubsub==0.41.0
google-cloud-storage==1.16.0
google-cloud-tasks==1.1.0
google-resumable-media==0.3.2
googleapis-common-protos==1.5.10
grpc-google-iam-v1==0.11.4
grpcio==1.20.1
$ /tmp/gcp/8034/bin/python -c "from google.cloud import tasks_v2; print(tasks_v2.__path__)"
['/tmp/gcp/8034/lib/python3.7/site-packages/google/cloud/tasks_v2'] I note also that you have a pre-release version of $ /tmp/gcp/8034/bin/pip install --upgrade googleapis-common-protos==1.6.0b9
...
Successfully installed googleapis-common-protos-1.6.0b9
$ /tmp/gcp/8034/bin/python -c "from google.cloud import tasks_v2; print(tasks_v2.__path__)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/gcp/8034/lib/python3.7/site-packages/google/cloud/tasks_v2/__init__.py", line 19, in <module>
from google.cloud.tasks_v2 import types
File "/tmp/gcp/8034/lib/python3.7/site-packages/google/cloud/tasks_v2/types.py", line 34, in <module>
from google.type import expr_pb2
ImportError: cannot import name 'expr_pb2' from 'google.type' (/tmp/gcp/8034/lib/python3.7/site-packages/google/type/__init__.py) I don't know if something else you are doing requires the I have opened googleapis/gapic-generator-python#122 to track the borked |
@blaflamme: @lukesneeringer has just released |
@tseaver @lukesneeringer thanks for the release! Just tried to upgrade to 1.6.0 and I now get this error:
|
Hi,
two days ago my project using google tasks started to give me this error after doing an upgrade of outdated libs using
pipenv lock --pre
. I'm trying to figure out what's going on without any success so far.Environment details
pip freeze output
Steps to reproduce
from google.cloud import tasks_v2
Stack trace
Thanks!
The text was updated successfully, but these errors were encountered: