You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Locking dependencies for ['osx-64']...
INFO:conda_lock.conda_solver:osx-64 using specs ['conda-lock', 'pip *']
Traceback (most recent call last):
File "~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs/test/bin/conda-lock", line 10, in <module>
sys.exit(main())
File "~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs/test/lib/python3.10/site-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs/test/lib/python3.10/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs/test/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs/test/lib/python3.10/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs/test/lib/python3.10/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs/test/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs/test/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 1353, in lock
lock_func(
File "~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs/test/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 1083, in run_lock
make_lock_files(
File "~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs/test/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 408, in make_lock_files
lock_content = lock_content | create_lockfile_from_spec(
File "~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs/test/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 801, in create_lockfile_from_spec
deps = _solve_for_arch(
File "~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs/test/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 737, in _solve_for_arch
pip_deps = solve_pypi(
File "~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs/test/lib/python3.10/site-packages/conda_lock/pypi_solver.py", line 290, in solve_pypi
link = chooser.choose_for(op.package)
File "~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs/test/lib/python3.10/site-packages/conda_lock/_vendor/poetry/installation/chooser.py", line 72, in choose_for
raise RuntimeError(
RuntimeError: Unable to find installation candidates for ortools (9.6.2534)
If I remove 'conda-forge', then I get an error message identical to #396
Conda Info
active environment :test
active env location :~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs/test
shell level : 1
user config file :~/.condarc
populated config files :~/.conda/condarc
conda version : 22.9.0
conda-build version : not installed
python version : 3.10.8.final.0
virtual packages : __osx=10.16=0
__unix=0=0
__archspec=1=x86_64
base environment :~/.pyenv/versions/miniconda3-3.10-22.11.1-1 (writable)
conda av data dir :~/.pyenv/versions/miniconda3-3.10-22.11.1-1/etc/conda
conda av metadata url : None
channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch
package cache :~/.pyenv/versions/miniconda3-3.10-22.11.1-1/pkgs
~/.conda/pkgs
envs directories :~/.pyenv/versions/miniconda3-3.10-22.11.1-1/envs
~/.conda/envs
platform : osx-64
user-agent : conda/22.9.0 requests/2.28.1 CPython/3.10.8 Darwin/22.4.0 OSX/10.16
UID:GID : 502:20
netrc file :~/.netrc
offline mode : False
Username has been redacted by replacing /Users/username with ~
Miniconda 22.11.1 is installed using pyenv, then downgraded to 22.9 (22.9 is not in the pyenv installable list). I've also tried this with the latest Miniconda installed by Homebrew and get the same error.
The text was updated successfully, but these errors were encountered:
Do you have an installation of Mamba? If so, could you please try mamba --version and see if the version of Conda it finds is also 22.9? (One hypothesis is that conda-lock is calling Mamba which uses some other version of Conda.)
@maresb I do not use Mamba. In both test cases I did a clean install of Miniconda, then create the environment from the environment.yml file. which mamba does not find anything in the search path.
I ran into the same issue and spent some time in the debugger.
Finally I found the source of this issue which origins here since only macosx_10_9_x86_64 is considered.
If you change the line to *(f"macosx_10_{version}_x86_64" for version in range(16, 3, -1)), it will find the packages.
Thanks a lot for putting in the debugger time to track this down, it's much appreciated!!!
I don't understand this part of the code so well. It was masterminded by @jvansanten. Perhaps he has some idea about how we should maintain this section?
Checklist
What happened?
This environment.yml fails to resolve with conda-lock.
Conda env create
is successful on an Intel Mac.If I remove 'conda-forge', then I get an error message identical to #396
Conda Info
Conda Config
Conda list
Additional Context
Username has been redacted by replacing /Users/username with ~
Miniconda 22.11.1 is installed using pyenv, then downgraded to 22.9 (22.9 is not in the pyenv installable list). I've also tried this with the latest Miniconda installed by Homebrew and get the same error.
The text was updated successfully, but these errors were encountered: