Closed BenMGeo closed 4 years ago
@bascrezee FYI
what iris and cartopy do you have in the environment? conda list iris && conda list cartopy
have just repeated the install steps from scratch:
conda env create -n esmvaltool -f environment.yml
conda activate esmvaltool
pip install -e '.[develop]'
and had no issues. Note that iris=3 fails to install correctly via pip with cartopy throwing exactly that error that you mention so careful what iris+cartopy combination you have, in a purely dev env that doesn't follow the tool's specs tho
V, here is the output from the listing:
# packages in environment at /home/bmueller/anaconda3/envs/esmvaltool:
#
# Name Version Build Channel
iris 2.2.1 py38_0 conda-forge
# packages in environment at /home/bmueller/anaconda3/envs/esmvaltool:
#
# Name Version Build Channel
cartopy 0.17.0 py38h423102d_1009 conda-forge
I did not change anything in the setup.py or environment.yml, so I'm rather puzzled that we have differences...
I show you the pip response here:
Here are mine (for me everything works fine). Same Versions, different Builds (could that matter?).
# packages in environment at /net/exo/landclim/crezees/conda/envs/esmvaltool-public:
#
# Name Version Build Channel
iris 2.2.1 py37_0 conda-forge
# packages in environment at /net/exo/landclim/crezees/conda/envs/esmvaltool-public:
#
# Name Version Build Channel
cartopy 0.17.0 py37h0aa2c8f_1004 conda-forge
@BenMGeo the short answer is you have iris
and cartopy
built against python=3.8 and this behaviour of pip
I noticed not long ago: see the last few comments in this issue https://github.com/SciTools/iris/issues/3544 especially my comments on the installation and @zklaus comment on the env building
Note that we have pinned python to <3.8 in our current environment file so you should use that without any manual conda update all
or conda update env
after the environment has built; doing that will automatically upgrade python to 3.8.
Having said that I will perform a full mock env creatin and installation with python 3.8 since we'd want to upgrade to it soon anyway; what's holding us back now is numba
since it doesn't have a python 3.8 version yet :beer:
Ah, ok. Seems like my environment file then was not up to date. Will pull and retry.
reopen if needed, man :beer:
all went well ... phew
Errors but did not break:
ERROR: flake8 3.7.9 has requirement pycodestyle<2.6.0,>=2.5.0, but you'll have pycodestyle 2.4.0 which is incompatible.
ERROR: flake8 3.7.9 has requirement pyflakes<2.2.0,>=2.1.0, but you'll have pyflakes 1.6.0 which is incompatible.
yeah that's coz of prospector
- those guys don't upgrade that package, all fine, they are not impacting the functionality :beer:
I try to reinstall the core based on the standard workflow (for developers).
I get an Error:
when I run the
pip install -e '.[develop]'
command.It seems to raise an issue for cartopy and iris.
This is new and I have no idea how to solve in another way than editing setup.py, but I do not want to mess with that.