Skip to content
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

ImportError: No module named iterator for <= 0.27.0 #4122

Closed
ensonic opened this issue Oct 5, 2017 · 8 comments
Closed

ImportError: No module named iterator for <= 0.27.0 #4122

ensonic opened this issue Oct 5, 2017 · 8 comments
Assignees

Comments

@ensonic
Copy link

ensonic commented Oct 5, 2017

Since the modules are release without semantic versions, rebuilding my stack picked up 0.28.X and fall apart since the api changes. Before I wanted to migrate I need to get it up and running again and tried to pin to google-cloud-pubsub==0.27.0 or even google-cloud-pubsub==0.26.0 but with that I get:

2017-10-05T07:56:21.388141836Z Traceback (most recent call last):
2017-10-05T07:56:21.388206827Z   File "main.py", line 17, in <module>
2017-10-05T07:56:21.388256917Z     from google.cloud import pubsub
2017-10-05T07:56:21.388262369Z   File "/usr/local/lib/python2.7/dist-packages/google/cloud/pubsub/__init__.py", line 30, in <module>
2017-10-05T07:56:21.388268557Z     from google.cloud.pubsub.client import Client
2017-10-05T07:56:21.388271207Z   File "/usr/local/lib/python2.7/dist-packages/google/cloud/pubsub/client.py", line 21, in <module>
2017-10-05T07:56:21.388274841Z     from google.cloud.pubsub._http import Connection
2017-10-05T07:56:21.388277731Z   File "/usr/local/lib/python2.7/dist-packages/google/cloud/pubsub/_http.py", line 25, in <module>
2017-10-05T07:56:21.388345257Z     from google.cloud.iterator import HTTPIterator
2017-10-05T07:56:21.388354853Z ImportError: No module named iterator

Any ideas?

@ensonic
Copy link
Author

ensonic commented Oct 5, 2017

This combination seems to work:
"google-cloud-core==0.25.0 google-cloud-logging==0.24.0 google-cloud-pubsub==0.26.0"

Any tips for how to figure out which api combination work, other than trial and error?

@dhermes
Copy link
Contributor

dhermes commented Oct 5, 2017

First: apologies. We are aware of the pain that breaking google-cloud-core has caused (both for us and users) and are trying hard to get it stable. (Thanks @jonparrott!)


To give a practical answer to your question. You can actually see the dependencies on PyPI (but not on warehouse):

screenshot from 2017-10-05 08-24-39

You can also see them in the source at the tag corresponding to the release.

@Marigold
Copy link

Is there any ETA on fixing this? This is a major blocker for us as we have been using new pusub api everywhere and now can't use google storage. Thanks!

@dhermes
Copy link
Contributor

dhermes commented Oct 10, 2017

@Marigold Can you be more specific about what you'd like to see fixed? (The output of pip freeze would be helpful.)

@Marigold
Copy link

Sorry @dhermes, I couldn't get it working on GCP yesterday, but the following req seems to be working after starting with fresh instance

google-auth==1.1.1
google-cloud-core==0.27.1
google-cloud-pubsub==0.28.3
google-cloud-storage==1.4.0
google-gax==0.15.15
google-resumable-media==0.2.3
googleapis-common-protos==1.5.3
grpc-google-iam-v1==0.11.4

thanks!

@lukesneeringer
Copy link
Contributor

Closing as working then. :-)

@mike-seekwell
Copy link

mike-seekwell commented Feb 3, 2018

I'm stilling getting this error on GAE, here's my requirement file:

psq==0.6.0
google_auth_oauthlib==0.2.0
oauth2client==4.1.2
google==1.9.3
google-api-python-client==1.6.4
google-auth==1.1.1
google-cloud==0.27.0
google-cloud-core==0.27.1
google-cloud-pubsub==0.28.3
google-cloud-storage==1.4.0
google-gax==0.15.15
grpc-google-iam-v1==0.11.4
gapic-google-cloud-datastore-v1==0.15.3
gapic-google-cloud-error-reporting-v1beta1==0.15.3
gapic-google-cloud-logging-v2==0.91.3
gapic-google-cloud-pubsub-v1==0.15.4
gapic-google-cloud-spanner-admin-database-v1==0.15.3
gapic-google-cloud-spanner-admin-instance-v1==0.15.3
gapic-google-cloud-spanner-v1==0.15.3
google-cloud-bigquery==0.26.0
google-cloud-bigtable==0.26.0
google-cloud-datastore==1.2.0
google-cloud-dns==0.26.0
google-cloud-error-reporting==0.26.0
google-cloud-language==0.27.0
google-cloud-logging==1.3.0
google-cloud-monitoring==0.26.0
google-cloud-resource-manager==0.26.0
google-cloud-runtimeconfig==0.26.0
google-cloud-spanner==0.26.0
google-cloud-speech==0.28.0
google-cloud-translate==1.1.0
google-cloud-videointelligence==0.25.0
google-cloud-vision==0.26.0
google-resumable-media==0.2.3
googleapis-common-protos==1.5.3
proto-google-cloud-datastore-v1==0.90.4
proto-google-cloud-error-reporting-v1beta1==0.15.3
proto-google-cloud-logging-v2==0.91.3
proto-google-cloud-pubsub-v1==0.15.4
proto-google-cloud-spanner-admin-database-v1==0.15.3
proto-google-cloud-spanner-admin-instance-v1==0.15.3
proto-google-cloud-spanner-v1==0.15.3

@chemelnucfin
Copy link
Contributor

Hello, I'm not sure if this is the best answer or if it would solve your problem, but some of the requirements are fairly old.
Will you be able to try the versions here?
https://pypi.python.org/pypi?%3Aaction=search&term=google-cloud&submit=search

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants