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

installing xmanager from pip fails in colab environment #21

Open
proppy opened this issue May 6, 2022 · 2 comments
Open

installing xmanager from pip fails in colab environment #21

proppy opened this issue May 6, 2022 · 2 comments

Comments

@proppy
Copy link

proppy commented May 6, 2022

python -m pip install xmanager fails with the following error in colab (18.06) environment:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorflow 2.8.0 requires tf-estimator-nightly==2.8.0.dev2021122109, which is not installed.
pandas-gbq 0.13.3 requires google-cloud-bigquery[bqstorage,pandas]<2.0.0dev,>=1.11.1, but you have google-cloud-bigquery 2.34.3 which is incompatible.
google-cloud-translate 1.5.0 requires google-cloud-core<2.0dev,>=1.0.0, but you have google-cloud-core 2.3.0 which is incompatible.
google-cloud-firestore 1.7.0 requires google-cloud-core<2.0dev,>=1.0.3, but you have google-cloud-core 2.3.0 which is incompatible.
google-cloud-datastore 1.8.0 requires google-cloud-core<2.0dev,>=1.0.0, but you have google-cloud-core 2.3.0 which is incompatible.
Successfully installed async-generator-1.10 docker-5.0.3 google-cloud-aiplatform-1.12.1 google-cloud-bigquery-2.34.3 google-cloud-core-2.3.0 google-cloud-resource-manager-1.4.1 google-cloud-storage-2.3.0 google-crc32c-1.3.0 google-resumable-media-2.3.2 grpc-google-iam-v1-0.12.4 immutabledict-2.2.1 kubernetes-23.3.0 proto-plus-1.20.3 protobuf-3.20.1 pyyaml-6.0 sqlalchemy-1.2.19 websocket-client-1.3.2 xmanager-0.1.5
@proppy
Copy link
Author

proppy commented May 6, 2022

And then import xm_local fails with the following error:

ContextualVersionConflict                 Traceback (most recent call last)
[<ipython-input-5-262748a36f84>](https://localhost:8080/#) in <module>()
      1 from xmanager import xm
----> 2 from xmanager import xm_local

13 frames
[/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py](https://localhost:8080/#) in resolve(self, requirements, env, installer, replace_conflicting, extras)
    775                 # Oops, the "best" so far conflicts with a dependency
    776                 dependent_req = required_by[req]
--> 777                 raise VersionConflict(dist, req).with_context(dependent_req)
    778 
    779             # push the new requirements onto the stack

ContextualVersionConflict: (google-cloud-storage 1.18.1 (/usr/local/lib/python3.7/dist-packages), Requirement.parse('google-cloud-storage<3.0.0dev,>=1.32.0'), {'google-cloud-aiplatform'})

@proppy
Copy link
Author

proppy commented May 6, 2022

fixing/uninstalling the following package versions does workaround the issue:

!python -m pip install tf-estimator-nightly==2.8.0.dev2021122109
!python -m pip uninstall --yes pandas-gbq google-cloud-translate google-cloud-firestore google-cloud-datastore

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

1 participant