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

Fixing pip install basemap issue #21

Merged
merged 5 commits into from
Feb 14, 2024
Merged

Fixing pip install basemap issue #21

merged 5 commits into from
Feb 14, 2024

Conversation

taddyb
Copy link
Contributor

@taddyb taddyb commented Feb 14, 2024

Added:

  • Removed the deprecated basemap from plot.py and requirements/environment files
  • added cartopy to requirements.txt and environment.yml

Issues referenced:

#19 #20

@taddyb
Copy link
Contributor Author

taddyb commented Feb 14, 2024

@JiangtaoLiud we need to update the version of hydroDL on pypi:

(test) [email protected]@e5-ce-csr-s2001:/data/tkb5476/projects/hydroDL$ pip install hydroDL
Collecting hydroDL
  Using cached hydroDL-0.1.3-py3-none-any.whl (84 kB)
INFO: pip is looking at multiple versions of hydrodl to determine which version is compatible with other requirements. This could take a while.
  Using cached hydroDL-0.1.2-py3-none-any.whl (84 kB)
  Using cached hydroDL-0.1.1-py3-none-any.whl (84 kB)
  Using cached hydroDL-0.1.0-py3-none-any.whl (84 kB)
ERROR: Cannot install hydrodl==0.1.0, hydrodl==0.1.1, hydrodl==0.1.2 and hydrodl==0.1.3 because these package versions have conflicting dependencies.

The conflict is caused by:
    hydrodl 0.1.3 depends on torch==1.7.1
    hydrodl 0.1.2 depends on torch==1.7.1
    hydrodl 0.1.1 depends on torch==1.7.1
    hydrodl 0.1.0 depends on torch==1.4.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
(test) [email protected]@e5-ce-csr-s2001:/data/tkb5476/projects/hydroDL$ 

It looks like the changes made to hydroDL by @kamleshcodes use torch version 2.1.1, while the pypi package relies on 1.7.1

@JiangtaoLiud JiangtaoLiud merged commit 2ad1364 into release Feb 14, 2024
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

Successfully merging this pull request may close these issues.

2 participants