Package writes to "apiclient" directory when installed #2485
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
google-api-python-client
version: 2.145.0Steps to reproduce
python -m virtualenv venv
. venv/bin/activate
pip install api-client
python -c 'from apiclient import HeaderAuthentication'
pip install firebase-admin
python -c 'from apiclient import HeaderAuthentication'
I expect step 6 to be the same as step 4 here, but it results in a stack trace since
firebase-admin
depends ongoogle-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
Stack trace
The text was updated successfully, but these errors were encountered: