I don't know if this still ought to be an issue, since @beckermr already found a solution for me, but in case this is pointing at some problem somewhere, here is the problem I had and the solution Matt found for me.
Issue:
At Nersc, I had a conda environment with fitsio 0.9.11 installed. Trying to update to 1.1.0 (or >=1.0), I got the following error:
$ conda install fitsio==1.1.0
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
<snip>
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Package readline conflicts for:
fitsio==1.1.0 -> python[version='>=3.8,<3.9.0a0'] -> readline[version='>=7.0,<8.0a0|>=8.0,<9.0a0']
python==3.6 -> readline[version='6.2|6.2.*']
Package python conflicts for:
python==3.6
Package sqlite conflicts for:
python==3.6 -> sqlite=3.13
fitsio==1.1.0 -> python[version='>=3.8,<3.9.0a0'] -> sqlite[version='>=3.25.2,<4.0a0|>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.27.2,<4.0a0|>=3.28.0,<4.0a0|>=3.29.0,<4.0a0|>=3.30.0,<4.0a0|>=3.30.1,<4.0a0']
Package openssl conflicts for:
python==3.6 -> openssl[version='1.0.*|1.0.2.*']
fitsio==1.1.0 -> libcurl[version='>=7.64.1,<8.0a0'] -> openssl[version='>=1.1.1,<1.1.2.0a0|>=1.1.1a,<1.1.2a|>=1.1.1b,<1.1.2a|>=1.1.1c,<1.1.2a|>=1.1.1d,<1.1.2a']
Package tk conflicts for:
python==3.6 -> tk[version='8.5.*|8.5.18']
fitsio==1.1.0 -> python[version='>=3.8,<3.9.0a0'] -> tk[version='>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.9,<8.7.0a0']
This looked like it was thinking that fitsio needed python 3.8, which I didn't really want. So I tried installing the 3.6 version explicitly:
$ conda install fitsio==1.1.0=py36h0c87ef4_0
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
<snip>
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Package sqlite conflicts for:
python==3.6 -> sqlite=3.13
fitsio==1.1.0=py36h0c87ef4_0 -> python[version='>=3.6,<3.7.0a0'] -> sqlite[version='>=3.25.2,<4.0a0|>=3.26.0,<4.0a0|>=3.28.0,<4.0a0|>=3.29.0,<4.0a0|>=3.30.1,<4.0a0']
Package ncurses conflicts for:
fitsio==1.1.0=py36h0c87ef4_0 -> python[version='>=3.6,<3.7.0a0'] -> readline[version='>=7.0,<8.0a0'] -> ncurses[version='>=6.0,<7.0a0']
fitsio==1.1.0=py36h0c87ef4_0 -> python[version='>=3.6,<3.7.0a0'] -> ncurses[version='>=6.1,<6.2.0a0|>=6.1,<7.0a0']
python==3.6 -> ncurses=5.9
Package openssl conflicts for:
python==3.6 -> openssl[version='1.0.*|1.0.2.*']
fitsio==1.1.0=py36h0c87ef4_0 -> libcurl[version='>=7.64.1,<8.0a0'] -> openssl[version='>=1.1.1,<1.1.2.0a0|>=1.1.1a,<1.1.2a|>=1.1.1b,<1.1.2a|>=1.1.1c,<1.1.2a|>=1.1.1d,<1.1.2a']
Package python conflicts for:
python==3.6
Package tk conflicts for:
fitsio==1.1.0=py36h0c87ef4_0 -> libcurl[version='>=7.64.1,<8.0a0'] -> krb5[version='>=1.17.1,<1.18.0a0'] -> tk[version='>=8.6.10,<8.7.0a0']
fitsio==1.1.0=py36h0c87ef4_0 -> python[version='>=3.6,<3.7.0a0'] -> tk[version='>=8.6.8,<8.7.0a0|>=8.6.9,<8.7.0a0']
python==3.6 -> tk[version='8.5.*|8.5.18']
Package readline conflicts for:
fitsio==1.1.0=py36h0c87ef4_0 -> python[version='>=3.6,<3.7.0a0'] -> readline[version='>=7.0,<8.0a0|>=8.0,<9.0a0']
python==3.6 -> readline[version='6.2|6.2.*']
Matt suggested trying to update everything, which did work straight away with no conflicts:
$ conda update --all
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.7.12
latest version: 4.8.2
Please update conda by running
$ conda update -n base -c defaults conda
## Package Plan ##
environment location: /global/homes/m/mjarvis/.conda/envs/piff
The following packages will be downloaded:
package | build
---------------------------|-----------------
fitsio-1.1.0 | py36h0c87ef4_0 669 KB conda-forge
pybind11-2.4.3 | py36hc9558a2_1 119 KB conda-forge
------------------------------------------------------------
Total: 788 KB
The following NEW packages will be INSTALLED:
krb5 conda-forge/linux-64::krb5-1.16.4-h2fd8d38_0
libcurl conda-forge/linux-64::libcurl-7.68.0-hda55be3_0
libedit conda-forge/linux-64::libedit-3.1.20170329-hf8c457e_1001
libssh2 conda-forge/linux-64::libssh2-1.8.2-h22169c7_2
The following packages will be UPDATED:
fitsio 0.9.11-py36h53b300e_1001 --> 1.1.0-py36h0c87ef4_0
galsim 2.2.2-py36hb745460_1 --> 2.2.3-py36hb745460_0
ncurses 5.9-10 --> 6.1-hf484d3e_1002
numpy 1.17.3-py36h95a1406_0 --> 1.18.1-py36h95a1406_0
openssl 1.0.2u-h516909a_0 --> 1.1.1d-h516909a_0
pybind11 2.2.2-py36_0 --> 2.4.3-py36hc9558a2_1
python 3.6.0-2 --> 3.6.7-h357f687_1006
readline 6.2-0 --> 8.0-hf8c457e_0
sqlite 3.13.0-1 --> 3.30.1-hcee41ef_0
tk 8.5.19-2 --> 8.6.10-hed695b0_0
Proceed ([y]/n)?
Downloading and Extracting Packages
pybind11-2.4.3 | 119 KB | ######################################################### | 100%
fitsio-1.1.0 | 669 KB | ######################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
So, not sure whether this is pointing to someone having a problematic dependency specification somewhere or what. I would have thought that conda could have found the eventual solution when I just asked for fitsio to be updated.
I don't know if this still ought to be an issue, since @beckermr already found a solution for me, but in case this is pointing at some problem somewhere, here is the problem I had and the solution Matt found for me.
Issue:
At Nersc, I had a conda environment with fitsio 0.9.11 installed. Trying to update to 1.1.0 (or >=1.0), I got the following error:
This looked like it was thinking that fitsio needed python 3.8, which I didn't really want. So I tried installing the 3.6 version explicitly:
Matt suggested trying to update everything, which did work straight away with no conflicts:
So, not sure whether this is pointing to someone having a problematic dependency specification somewhere or what. I would have thought that conda could have found the eventual solution when I just asked for fitsio to be updated.
Environment (
conda list
):Details about
conda
and system (conda info
):