Checklist
What happened?
#549 (comment)
Maybe because PyPI doesn't exist yet for conda-forge?
_____ test_run_lock_with_pip_environment_different_names_same_deps[mamba] ______
[gw1] linux -- Python 3.8.18 /home/runner/micromamba/envs/conda-lock-dev/bin/python3.8
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd76cfbdf40>
pip_environment_different_names_same_deps = PosixPath('/home/runner/work/_temp/pytest-of-runner/pytest-0/popen-gw1/test_run_lock_with_pip_environ0/environment.yml')
conda_exe = PosixPath('/home/runner/micromamba/envs/conda-lock-dev/bin/mamba')
def test_run_lock_with_pip_environment_different_names_same_deps(
monkeypatch: "pytest.MonkeyPatch",
pip_environment_different_names_same_deps: Path,
conda_exe: str,
):
monkeypatch.chdir(pip_environment_different_names_same_deps.parent)
if is_micromamba(conda_exe):
monkeypatch.setenv("CONDA_FLAGS", "-v")
> run_lock([pip_environment_different_names_same_deps], conda_exe=conda_exe)
/home/runner/work/_temp/tests/test_conda_lock.py:1443:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/runner/work/conda-lock/conda-lock/conda_lock/conda_lock.py:1092: in run_lock
make_lock_files(
/home/runner/work/conda-lock/conda-lock/conda_lock/conda_lock.py:394: in make_lock_files
fresh_lock_content = create_lockfile_from_spec(
/home/runner/work/conda-lock/conda-lock/conda_lock/conda_lock.py:821: in create_lockfile_from_spec
deps = _solve_for_arch(
/home/runner/work/conda-lock/conda-lock/conda_lock/conda_lock.py:752: in _solve_for_arch
pip_deps = solve_pypi(
/home/runner/work/conda-lock/conda-lock/conda_lock/pypi_solver.py:355: in solve_pypi
requirements = get_requirements(
/home/runner/work/conda-lock/conda-lock/conda_lock/pypi_solver.py:229: in get_requirements
link = chooser.choose_for(op.package)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <conda_lock._vendor.poetry.installation.chooser.Chooser object at 0x7fd76ae8ba30>
package = Package('pandas', '2.1.3')
def choose_for(self, package): # type: (Package) -> Link
"""
Return the url of the selected archive for a given package.
"""
links = []
for link in self._get_links(package):
if link.is_wheel and not Wheel(link.filename).is_supported_by_environment(
self._env
):
continue
if link.ext in {".egg", ".exe", ".msi", ".rpm", ".srpm"}:
continue
links.append(link)
if not links:
> raise RuntimeError(
"Unable to find installation candidates for {}".format(package)
)
E RuntimeError: Unable to find installation candidates for pandas (2.1.3)
/home/runner/work/conda-lock/conda-lock/conda_lock/_vendor/poetry/installation/chooser.py:72: RuntimeError
----------------------------- Captured stderr call -----------------------------
Locking dependencies for ['linux-64', 'osx-64', 'osx-arm64', 'win-64']...
------------------------------ Captured log call -------------------------------
INFO conda_lock.conda_solver:conda_solver.py:352 linux-64 using specs ['python 3.9.*', 'dask-core', 'pip *']
Conda Info
No response
Conda Config
No response
Conda list
No response
Additional Context
No response
Checklist
What happened?
#549 (comment)
Maybe because PyPI doesn't exist yet for conda-forge?
Conda Info
No response
Conda Config
No response
Conda list
No response
Additional Context
No response