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 moves in importing google.cloud.datastore #5012

Closed
vinitpayal opened this issue Mar 10, 2018 · 4 comments
Closed
Assignees
Labels
api: datastore Issues related to the Datastore API. packaging type: question Request for information or clarification. Not an issue.

Comments

@vinitpayal
Copy link

vinitpayal commented Mar 10, 2018

Exception getting generated on import google.cloud.datastore

Versions :-

  • OS : mac(10.13.3) & ubuntu(16.04) [tried on both]
  • Python : 2.7.14
  • six : 1.9.0 & 1.11.0(tried on both)
  • google-cloud-datastore : 1.6.0
  • virtualenv : 15.1.0

Stacktrace :

from google.cloud.datastore import helpers
File "/opt/tribes-backend/denv/local/lib/python2.7/site-packages/google/cloud/datastore/helpers.py", line 27, in
from google.cloud._helpers import _datetime_to_pb_timestamp
File "/opt/tribes-backend/denv/local/lib/python2.7/site-packages/google/cloud/_helpers.py", line 30, in
from six.moves import http_client
ImportError: No module named moves

What I tried :-

Tried printing dir(six) after importing in google/cloud/_helpers.py line number 30 in output of which I was able to find moves package inside six and even if I am importing http_client in my virtual environment using from six.moves import http_client it's getting imported correctly but it's just not getting imported inside google/cloud/_helpers.py file.

I have already added six in libraries in appengine_config.py as suggested in documentation at https://cloud.google.com/appengine/docs/standard/python/tools/built-in-libraries-27.

This issue is getting generated only after latest update in google-cloud-sdk-app-engine-python-extras earlier it was working fine.

@vinitpayal vinitpayal changed the title ImportError: No module named moves ImportError: No module named moves in importing google.cloud.datastore Mar 10, 2018
@chemelnucfin chemelnucfin added type: question Request for information or clarification. Not an issue. api: datastore Issues related to the Datastore API. labels Mar 12, 2018
@tseaver
Copy link
Contributor

tseaver commented Mar 12, 2018

@jonparrott ISTM that this must be a GAE issue -- if so, please close.

@theacodes
Copy link
Contributor

Yep.

@vinitpayal unfortunately these libraries are not yet supported on GAE standard. Please follow this bug for updates: #1893

@vinitpayal
Copy link
Author

@jonparrott If I have understood correct you are saying we can't use datastore in GAE standard because I am not including six it's being used by datastore. And that's the origin of exception.

Am I understanding something wrong here ?

@theacodes
Copy link
Contributor

@vinitpayal it's more than just that, there are several things we need to do to make these libraries work on standard. Please keep an eye on #1893 for more updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the Datastore API. packaging type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

4 participants