-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Storage: Update to 1.16.0 can cause google-cloud-core or google-api-core to fail. #8085
Comments
I cannot reproduce this in a fresh environment with a stripped-down set of requirements: $ python3.6 -m venv /tmp/gcp/8085
$ /tmp/gcp/8085/bin/pip install --upgrade setuptools pip wheel
...
Successfully installed pip-19.1.1 setuptools-41.0.1 wheel-0.33.4
$ /tmp/gcp/8085/bin/pip install "google-api-python-client>=1.5.5" google-cloud-storage
...
Successfully installed cachetools-3.1.0 certifi-2019.3.9 chardet-3.0.4 google-api-core-1.11.0 google-api-python-client-1.7.9 google-auth-1.6.3 google-auth-httplib2-0.0.3 google-cloud-core-1.0.0 google-cloud-storage-1.16.0 google-resumable-media-0.3.2 googleapis-common-protos-1.6.0 httplib2-0.12.3 idna-2.8 protobuf-3.7.1 pyasn1-0.4.5 pyasn1-modules-0.2.5 pytz-2019.1 requests-2.22.0 rsa-4.0 six-1.12.0 uritemplate-3.0.0 urllib3-1.25.3
$ /tmp/gcp/8085/bin/python -c "from google.cloud import storage; print(storage.__version__)"
1.16.0 Output from
Please reopen if you can provide more information about reproducing the issue. |
pip3 install google-cloud-storage This is the error I'm getting: |
@Tredence-GitHub Can you please show the output of Also, I suspect that you may need to run |
When I proc'd it, it was my One thing I realized that might help us figure it out: I didn't have a Uninstalling all pip requirements and reinstalling seemed to fix it. I had to use |
pip3 freeze cachetools==3.1.0 Initially I did pip3 install google-cloud-storage, which I assume takes the latest version i.e.. 1.16.0. And since I got the error, i did pip3 install google-cloud-storage==1.10.0 to download a previous version as a work around to this issue. |
Installing the three API libraries ( $ python3.6 -m venv /tmp/gcp/8085-redux
$ /tmp/gcp/8085-redux/bin/pip install --upgrade pip setuptools wheel
...
Successfully installed pip-19.1.1 setuptools-41.0.1 wheel-0.33.4
$ /tmp/gcp/8085-redux/bin/pip install google-cloud-storage google-cloud-pubsub google-cloud-bigquery
...
Successfully installed cachetools-3.1.1 certifi-2019.3.9 chardet-3.0.4 google-api-core-1.11.1 google-auth-1.6.3 google-cloud-bigquery-1.12.1 google-cloud-core-1.0.1 google-cloud-pubsub-0.41.0 google-cloud-storage-1.16.0 google-resumable-media-0.3.2 googleapis-common-protos-1.6.0 grpc-google-iam-v1-0.11.4 grpcio-1.21.1 idna-2.8 protobuf-3.8.0 pyasn1-0.4.5 pyasn1-modules-0.2.5 pytz-2019.1 requests-2.22.0 rsa-4.0 six-1.12.0 urllib3-1.25.3
$ /tmp/gcp/8085-redux/bin/pip freeze | grep -v "^-f"
cachetools==3.1.1
certifi==2019.3.9
chardet==3.0.4
google-api-core==1.11.1
google-auth==1.6.3
google-cloud-bigquery==1.12.1
google-cloud-core==1.0.1
google-cloud-pubsub==0.41.0
google-cloud-storage==1.16.0
google-resumable-media==0.3.2
googleapis-common-protos==1.6.0
grpc-google-iam-v1==0.11.4
grpcio==1.21.1
idna==2.8
protobuf==3.8.0
pyasn1==0.4.5
pyasn1-modules==0.2.5
pytz==2019.1
requests==2.22.0
rsa==4.0
six==1.12.0
urllib3==1.25.3
$ /tmp/gcp/8085-redux/bin/python
Python 3.6.7 (default, Oct 22 2018, 11:30:50)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from google.cloud import storage, pubsub, bigquery
>>> ^D |
I am having the same issue in a virtualenv with these packages:
|
@gdubicki You have an out-of-date version of |
Oddly, you have |
Environment details
General, Core, and Other are also allowed as types
Google Cloud Storage using the
google-cloud-storage
Python libraryUbuntu Linux 18.04.2 LTS
python --version
Python 3.6.7
pip show google-<service>
orpip freeze
google-api-core version 1.9.0 <- causes the conflict
google-cloud-core version 1.0.0
google-cloud-storage version 1.16.0
Steps to reproduce
virtualenv
environment with Python 3pip install -r requirements.txt --upgrade
pip uninstall -r requirements.txt
andpip install -r requirements.txt --upgrade
fixes the issues. Hopefully the above snippet can shed some light on where the issue lies. It appears that some dependency in eithergoogle-core-api
orgoogle-cloud-storage
is causing the dependency mismatch forgoogle-cloud-core
The text was updated successfully, but these errors were encountered: