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

Installation of pangeo-xesmf via pip is not possible #240

Closed
mplough-kobold opened this issue Feb 14, 2023 · 2 comments
Closed

Installation of pangeo-xesmf via pip is not possible #240

mplough-kobold opened this issue Feb 14, 2023 · 2 comments

Comments

@mplough-kobold
Copy link
Contributor

The project distributes the pangeo-xesmf package on PyPI. However, installing this package with pip from either PyPI or from GitHub is not possible.

The following error occurs because esmpy is not distributed on PyPI.

ERROR: Cannot install pangeo-xesmf==0.0.0, pangeo-xesmf==0.4.0, pangeo-xesmf==0.4.0.post0, pangeo-xesmf==0.5.1, pangeo-xesmf==0.5.1.post0, pangeo-xesmf==0.5.2, pangeo-xesmf==0.5.2.post0, pangeo-xesmf==0.5.3, pangeo-xesmf==0.5.3.post0, pangeo-xesmf==0.6.0, pangeo-xesmf==0.6.0.post0, pangeo-xesmf==0.6.1, pangeo-xesmf==0.6.1.post0, pangeo-xesmf==0.6.2, pangeo-xesmf==0.6.3, pangeo-xesmf==0.6.3.post0, pangeo-xesmf==0.7.0 and pangeo-xesmf==0.7.0.post0 because these package versions have conflicting dependencies.

The conflict is caused by:
    pangeo-xesmf 0.7.0.post0 depends on esmpy
    pangeo-xesmf 0.7.0 depends on esmpy>=8.0.0
    pangeo-xesmf 0.6.3.post0 depends on esmpy
    pangeo-xesmf 0.6.3 depends on esmpy>=8.0.0
    pangeo-xesmf 0.6.2 depends on esmpy>=8.0.0
    pangeo-xesmf 0.6.1.post0 depends on esmpy
    pangeo-xesmf 0.6.1 depends on esmpy>=8.0.0
    pangeo-xesmf 0.6.0.post0 depends on esmpy
    pangeo-xesmf 0.6.0 depends on esmpy>=8.0.0
    pangeo-xesmf 0.5.3.post0 depends on esmpy
    pangeo-xesmf 0.5.3 depends on esmpy>=8.0.0
    pangeo-xesmf 0.5.2.post0 depends on esmpy
    pangeo-xesmf 0.5.2 depends on esmpy>=8.0.0
    pangeo-xesmf 0.5.1.post0 depends on esmpy
    pangeo-xesmf 0.5.1 depends on esmpy>=8.0.0
    pangeo-xesmf 0.4.0.post0 depends on esmpy
    pangeo-xesmf 0.4.0 depends on esmpy>=8.0.0
    pangeo-xesmf 0.0.0 depends on esmpy

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

What is the purpose of the PyPI distribution? Is a pip installation supposed to work or can this package only be installed with Conda? If only Conda is supported, it might be good to delete the PyPI distribution of this package entirely.

@huard
Copy link
Contributor

huard commented Feb 15, 2023

Although esmpy can only be installed through conda or compiled manually, xESMF on its own should be installable via pip.

@mplough-kobold
Copy link
Contributor Author

Thanks for that info! I'll open a quick PR to document it.

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

2 participants