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

pip installed cromshell may have a dependency issue #264

Open
SHuang-Broad opened this issue Jul 17, 2023 · 1 comment
Open

pip installed cromshell may have a dependency issue #264

SHuang-Broad opened this issue Jul 17, 2023 · 1 comment

Comments

@SHuang-Broad
Copy link
Contributor

I just pip installed cromshell (python 3.11), and ran into the following error

Traceback (most recent call last):
  File "/usr/local/bin/cromshell", line 5, in <module>
    from cromshell.__main__ import main_entry
  File "/usr/local/lib/python3.11/site-packages/cromshell/__main__.py", line 15, in <module>
    from .logs import command as logs
  File "/usr/local/lib/python3.11/site-packages/cromshell/logs/command.py", line 5, in <module>
    import gcsfs
  File "/usr/local/lib/python3.11/site-packages/gcsfs/__init__.py", line 5, in <module>
    from .core import GCSFileSystem
  File "/usr/local/lib/python3.11/site-packages/gcsfs/core.py", line 26, in <module>
    from .credentials import GoogleCredentials
  File "/usr/local/lib/python3.11/site-packages/gcsfs/credentials.py", line 17, in <module>
    from google_auth_oauthlib.flow import InstalledAppFlow
  File "/usr/local/lib/python3.11/site-packages/google_auth_oauthlib/__init__.py", line 21, in <module>
    from .interactive import get_user_credentials
  File "/usr/local/lib/python3.11/site-packages/google_auth_oauthlib/interactive.py", line 27, in <module>
    import google_auth_oauthlib.flow
  File "/usr/local/lib/python3.11/site-packages/google_auth_oauthlib/flow.py", line 68, in <module>
    import google_auth_oauthlib.helpers
  File "/usr/local/lib/python3.11/site-packages/google_auth_oauthlib/helpers.py", line 27, in <module>
    from google.auth import external_account_authorized_user
ImportError: cannot import name 'external_account_authorized_user' from 'google.auth' (/Users/shuang/Library/Python/3.11/lib/python/site-packages/google/auth/__init__.py)

The following suggests upgrading might solve the problem (and it did)
https://stackoverflow.com/questions/74189694/cannot-import-name-external-account-authorized-user-from-google-auth

In addition, I don't see google_auth_oauthlib listed as a dependency in requirements.txt.

@bshifaw
Copy link
Collaborator

bshifaw commented Jul 17, 2023

a similar issue that can be fixed together: #258

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

2 participants