google-auth dependency/error message

20 views
Skip to first unread message

pete.d...@stinkstudios.com

unread,
Apr 10, 2019, 4:21:21 PM4/10/19
to djangae-users
Hi all,

I started seeing the following error today when running `./install_deps` on an existing app created using the Djangae Scaffold.

google-api-core 1.9.0 requires google-auth<2.0dev,>=0.4.0, which is not installed

I had been messing with dependencies in an attempt to get the Cloud Storage client library working within my app, so it's possible that this is a result of something I did, but I'm _pretty_ sure I've unwound any/all related changes.

I also see the following error message when attempting to start my application using `python manage.py runserver`:

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    from djangae.core.management import (
  File "/home/peter/projects/youtube-alb-admin/sitepackages/prod/djangae/core/management/__init__.py", line 6, in <module>
    import djangae.sandbox as sandbox
  File "/home/peter/projects/youtube-alb-admin/sitepackages/prod/djangae/sandbox.py", line 13, in <module>
    from . import environment
  File "/home/peter/projects/youtube-alb-admin/sitepackages/prod/djangae/environment.py", line 9, in <module>
    from djangae.utils import memoized
  File "/home/peter/projects/youtube-alb-admin/sitepackages/prod/djangae/utils.py", line 10, in <module>
    from google.appengine.api import datastore_errors
ImportError: No module named appengine.api

I've tried adding that google-auth dependency in requirements/dev.txt and requirements/prod.txt to no avail. I'm going to take a look now, but perhaps Djangae needs one of its dependencies pegged or bumped?

Any help would be greatly appreciated, as I'm currently dead in the water.

David Buxton

unread,
Apr 11, 2019, 1:26:41 PM4/11/19
to djangae-users
Personally I prefer using the officially deprecated cloudstorage package for the Python 2 runtime. Much nicer API (context managers!), doesn't require google.auth


David

pete.d...@stinkstudios.com

unread,
Apr 12, 2019, 12:11:39 PM4/12/19
to djangae-users
Thanks for the suggestion, David. I wound up pursuing a different approach to create signed URLs, but will keep the cloudstorage package in mind as an option for future use.

Also, for anyone who comes across this post in the future, I was also able to get around the error I was seeing by destroying my virtualenvironment, removing my app's sitepackages directory and re-running install_deps.
Reply all
Reply to author
Forward
0 new messages