You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Package writes to "apiclient" directory when installed #2485
I expect step 6 to be the same as step 4 here, but it results in a stack trace since firebase-admin depends on google-api-python-client which is overwriting .../site-packages/apiclient/. What's even worse is that some package managers (e.g., poetry) seem to install this in a random order resulting in it sometimes working and sometimes not.
Code example
fromapiclientimportHeaderAuthentication
Stack trace
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name 'HeaderAuthentication' from 'apiclient' (/private/tmp/test1/venv/lib/python3.11/site-packages/apiclient/__init__.py)
Hi, @ohmayr any chance this could be merged? I cut out the translated documentation changes to make it easier to review. The documentation should be generated automatically from googleapiclient/discovery.py next time pydoc is run.
Thanks for putting the fix together, but unfortunately this repo contains legacy versions of our GCP libraries and is in maintenance mode, so we try not to make major changes here. Removing the apiclient alias would be a breaking change, which could have a large impact on existing user code, so it's not a change we'll be able to make at this time
If it's at all possible, I'd recommend trying to move to the more modern gapic libraries (This is the gapic equivalent of firebase admin). If that's not possible, you may be able to make a fork of this code to accomplish what you need
Activity
ohmayr commentedon Sep 20, 2024
Thanks for reporting this @kruton. We'll take a look into this.
kruton commentedon Dec 6, 2024
I rebased the pull request #2486 onto the newest release.
kruton commentedon Jan 31, 2025
Hi, @ohmayr any chance this could be merged? I cut out the translated documentation changes to make it easier to review. The documentation should be generated automatically from
googleapiclient/discovery.pynext time pydoc is run.daniel-sanche commentedon Jan 28, 2026
Thanks for putting the fix together, but unfortunately this repo contains legacy versions of our GCP libraries and is in maintenance mode, so we try not to make major changes here. Removing the
apiclientalias would be a breaking change, which could have a large impact on existing user code, so it's not a change we'll be able to make at this timeIf it's at all possible, I'd recommend trying to move to the more modern gapic libraries (This is the gapic equivalent of firebase admin). If that's not possible, you may be able to make a fork of this code to accomplish what you need