Closed sandhujasmine closed 1 month ago
You're using the landsat project, right? What does conda info
return on each of these systems?
It is indeed the landsat project.
The different versions of conda appears to be the culprit. Thank you @AlbertDeFusco
I hadn't updated my conda versions and I see now that anaconda-project lock
would use the base conda installation's API to do the solve, hence the difference, is that correct?
I updated conda to the latest on OSX, regenerated the lock file and it now passes on the CI linux instances, which is what was causing the odd failures for me previously.
Does it make sense to include a conda
as a dependency in this env file: https://github.com/holoviz-topics/examples/blob/main/envs/environment.yml#L10 along with anaconda-project? Or would that lead to more issues and confusion? Or maybe document some troubleshooting tips to ensure conda version is the latest. End user should ideally use the same conda version that is being run on the CI system.
Interesting. 🤔 What version of conda was causing the problem on osx? Were you using an M1 or intel miniconda?
Aah - I'm sorry, I should've run conda info
before trying things out.
I do have the installers I used on OSX and the HP Linux system so I'll share the conda version from those
Miniconda3 py310_23.1.0-1
Miniconda3 py310_22.11.1-1
On my linux-64 that built the previous lock file that worked on all 3 systems:
(examples-gallery-manage) jasmine@pop-os:~/projects/examples/landsat$ conda info
active environment : examples-gallery-manage
active env location : /home/jasmine/miniconda3/envs/examples-gallery-manage
shell level : 2
user config file : /home/jasmine/.condarc
populated config files : /home/jasmine/.condarc
conda version : 22.9.0
conda-build version : not installed
python version : 3.9.13.final.0
virtual packages : __linux=6.0.6=0
__glibc=2.35=0
__unix=0=0
__archspec=1=x86_64
base environment : /home/jasmine/miniconda3 (writable)
conda av data dir : /home/jasmine/miniconda3/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/linux-64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /home/jasmine/miniconda3/pkgs
/home/jasmine/.conda/pkgs
envs directories : /home/jasmine/miniconda3/envs
/home/jasmine/.conda/envs
platform : linux-64
user-agent : conda/22.9.0 requests/2.31.0 CPython/3.9.13 Linux/6.0.6-76060006-generic pop/22.04 glibc/2.35
UID:GID : 1000:1000
netrc file : None
offline mode : False
While the lock file that I generated on OSX w/ conda version 23.5.0 is able to create the env on linux-64 without an issue. I'm surprised to get slightly different packages when I use the same version of conda (see conda info output below) to generate lock file on the HP linux-64 machine vs OSX-M1.
Output of diff -y anaconda-project-lock-osx-latest-conda.yml anaconda-project-lock.yml
:
diff_osx-m1_hp-linux-64.txt
Closing as I'm pretty sure it was due to https://github.com/holoviz-topics/examples/issues/348
This appears to be an issue with anaconda-project but logging it here since if effects this repo. Setting up the
examples-gallery-manage
environment per the docs gets version consistent version of anaconda-project on osx, and linux-64:I generated a lock file on OSX, and two Linux boxes with 3 different results - specs below:
Lock file generated on OSX: anaconda-project-lock-osx.yml.txt
Lock file generated on HP Linux: anaconda-project-lock-hp-linux.yml.txt
Lock file generated on linux laptop: anaconda-project-lock-linux.yml.txt
Prepare env on HP linux-64 using osx lock file from (1); similar to CI failures
``` $ anaconda-project prepare Collect all metadata (repodata.json): ...working... done Solving environment: ...working... failed LibMambaUnsatisfiableError: Encountered problems while solving: - nothing provides __osx needed by ipykernel-6.23.1-pyh736e0ef_0 - nothing provides __osx needed by terminado-0.17.1-pyhd1c38e8_0 - nothing provides __osx needed by ipython-8.14.0-pyhd1c38e8_0 - nothing provides __osx needed by ipykernel-6.23.1-pyh736e0ef_0 - nothing provides __osx needed by terminado-0.17.1-pyhd1c38e8_0 - nothing provides __osx needed by ipython-8.14.0-pyhd1c38e8_0 missing requirement to run this project: The project needs a Conda environment containing all required packages. '/home/jsandhu/examples/landsat/envs/default' doesn't look like it contains a Conda environment yet. (Use Ctrl+C to quit.) Value for DATA: ```Prepare env on OSX using HP lock file from (2)
``` % anaconda-project prepare conda-forge/osx-arm64 Using cache conda-forge/noarch Using cache Collect all metadata (repodata.json): ...working... done Solving environment: ...working... failed LibMambaUnsatisfiableError: Encountered problems while solving: - nothing provides __linux needed by ipykernel-6.23.1-pyh210e3f2_0 - nothing provides __linux needed by ipython-8.14.0-pyh41d4057_0 - nothing provides __linux needed by send2trash-1.8.2-pyh41d4057_0 - nothing provides __linux needed by terminado-0.17.1-pyh41d4057_0 - nothing provides __linux needed by ipykernel-6.23.1-pyh210e3f2_0 - nothing provides __linux needed by ipython-8.14.0-pyh41d4057_0 - nothing provides __linux needed by send2trash-1.8.2-pyh41d4057_0 - nothing provides __linux needed by terminado-0.17.1-pyh41d4057_0 missing requirement to run this project: The project needs a Conda environment containing all required packages. '/Users/jasmine/projects/examples/landsat/envs/default' doesn't look like it contains a Conda environment yet. (Use Ctrl+C to quit.) Value for DATA: ```