Open mcucchi9 opened 2 years ago
conda
environmentInstall proj
from conda-forge
prior installing xmovie
:
conda create -n xmovie python=3.9
conda activate xmovie
conda install -c conda-forge proj
pip install xmovie
venv
environmentInstall version cartopy==0.19.0.post1
before installing xmovie
(see https://github.com/SciTools/iris/issues/4468#issuecomment-997997068)
python3 -m venv venv
source venv/bin/activate
pip install cartopy==0.19.0.post1
pip install xmovie
Thanks for reporting this problem @mcucchi9. This is certainly frustrating.
Does a conda only install e.g. conda create -n xmovie python=3.9 xmovie
work for you? I have had some issues with cartopy dependencies via pip in other contexts lately.
I am however not quite sure how to fix this. If the above works, I could add appropriate warnings to the readme/docs, but it would be nice to find a more elegant solution for this.
Hi @jbusecke. Yes, a pure conda
installation works fine, even when cartopy=0.20
is installed (which looks like being the source of the reported issue with pip
). The following command correctly installs xmovie
with cartopy=0.20.2
and proj=9.0.0
:
conda create --override-channels -c anaconda -c conda-forge -n xmovie python=3.9 xmovie
Would it be possible to make cartopy
as an optional dependency?
Context: We use xarray
in the library pymech
and snek5000
and we would like to try out xmovie
(https://github.com/snek5000/snek5000/issues/118). We do not foresee the use of cartopy
in those packages and IIRC, it can be notoriously difficult to install without conda.
Hi,
I'm trying to install
xmovie
viapip
but I keep getting errors related to conflicting dependencies.I tried both in a
conda
and in avenv
environment, obtaining similar errors.OS: Ubuntu 20.04.4 LTS
Edit
It looks like the issue is related to
cartopy
installation (see https://github.com/SciTools/cartopy/issues/1970, https://github.com/SciTools/cartopy/issues/1967, https://github.com/SciTools/cartopy/issues/1879).conda
environmentSteps to replicate
Output
venv
environmentSteps to replicate
Output