Comments (3)
This issue came up in #133. There is an upstream conda test tests/test_create.py::IntegrationTests::test_conda_pip_interop_conda_editable_package
which fails.
This issue can be reproduced via
docker run --rm -it \
-v /home/costrouc/p/conda/conda:/opt/conda-src \
-v /home/costrouc/p/conda/conda-libmamba-solver:/opt/conda-libmamba-solver-src \
-e TEST_SPLITS=3 \
-e TEST_GROUP=1 \
-e CONDA_SOLVER=libmamba \
ghcr.io/conda/conda-ci:main-linux-python3.10-conda-forge \
bash
Then running
source /opt/conda-libmamba-solver/dev/bashrc_linux.sh
cd /opt/conda-src
pytest tests/test_create.py::IntegrationTests::test_conda_pip_interop_conda_editable_package
Getting the following error
________ IntegrationTests.test_conda_pip_interop_conda_editable_package ________
Traceback (most recent call last):
File "/opt/conda-src/tests/test_create.py", line 1688, in test_conda_pip_interop_conda_editable_package
stdout, stderr, _ = run_command(Commands.INSTALL, prefix, "urllib3=1.20", "--dry-run")
File "/opt/conda-src/conda/testing/integration.py", line 287, in run_command
result = do_call(args, p)
File "/opt/conda-src/conda/cli/conda_argparse.py", line 92, in do_call
return getattr(module, func_name)(args, parser)
File "/opt/conda-src/conda/notices/core.py", line 121, in wrapper
return func(*args, **kwargs)
File "/opt/conda-src/conda/cli/main_install.py", line 20, in execute
install(args, parser, 'install')
File "/opt/conda-src/conda/cli/install.py", line 264, in install
unlink_link_transaction = solver.solve_for_transaction(
File "/opt/conda-src/conda/core/solve.py", line 130, in solve_for_transaction
unlink_precs, link_precs = self.solve_for_diff(update_modifier, deps_modifier,
File "/opt/conda-src/conda/core/solve.py", line 182, in solve_for_diff
raise RuntimeError("Cannot unlink unmanageable packages:%s"
RuntimeError: Cannot unlink unmanageable packages:
- <develop>/pypi::urllib3-1.19.1-dev_0
Detailed logs here
Diving into the exact test which fails here
# should raise an error
with pytest.raises(PackagesNotFoundError):
# TODO: This raises PackagesNotFoundError, but the error should really explain
# that we can't install urllib3 because it's already installed and
# unmanageable. The error should suggest trying to use pip to uninstall it.
stdout, stderr, _ = run_command(Commands.INSTALL, prefix, "urllib3=1.20", "--dry-run")
The expect conda behaviour here assuming pip interop
which is not an officially supported feature is to remove the urllib3=1.20 spec from being requested by the user since it is controlled by pip. Correctly an error is being thrown but it is not the one that conda expects. It looks as though libmamba-solver does attempt to recommend updating the pip version using conda-forge but conda catches this as an error after the final solve. See https://github.com/conda/conda/blob/main/conda/core/solve.py#L175-L184. Leaving this detailed issue so that in the future if pip interop is more explored we have a good starting point.
from conda-libmamba-solver.
The deselected tests will be handled a pytest plugin, available in dev/
.
from conda-libmamba-solver.
I'll close this issue because the pytest collection plugin has the same info in code and more up-to-date. Otherwise we would periodically need to update this issue and that's prone to errors.
from conda-libmamba-solver.
Related Issues (20)
- Scheduled tests failed HOT 1
- libmamba solver doesn't match when uninstalling with wildcard HOT 2
- Scheduled tests failed HOT 1
- [DX] Update `bashrc.sh` to be compatible with libmamba v2
- Scheduled tests failed HOT 1
- conda `fetch_latest_path` interface may still read repodata into memory HOT 2
- PluginError: Error while loading conda plugins from entrypoints: libarchive.so.19: cannot open shared object file: No such file or directory HOT 1
- `conda update --all` is not idempotent HOT 1
- Scheduled tests failed HOT 1
- `conda update --all` is not idempotent HOT 7
- Support for build_number in MatchSpec HOT 6
- PackagesNotFoundError listing more than missing package HOT 8
- Installing packages in different order gives totally different versions HOT 4
- Scheduled tests failed
- Error "No module named pip" with Python2.7 HOT 4
- libmamba picks a build for the wrong Python version
- i have issue installing tensorflow-gpu
- i have issue with WSL HOT 1
- CondaValueError: You have chosen a non-default solver backend (libmamba) but it was not recognized. Choose one of: classic HOT 1
- Conda update flips between two versions of the same package from the same channel HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conda-libmamba-solver.