-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Locking fails when pypi package depends on package being installed via conda #236
Comments
No, the pip resolver will probably always fail (like 95% sure, but without a stack trace its hard to guess) I would recommend that you get |
I am a bit confused, if |
I think I'm having similar problem, but in my case things get solved just fine, but installation fails as windows and macos specific packages get pulled into name: test
channels:
- https://conda.anaconda.org/conda-forge
dependencies:
- python=3.10
- pip=22.3
- jupyterlab=3
- pip:
- jupyterlab-code-formatter In the above - dependencies: {}
hash:
sha256: 01b6400dd79212f50a2f01af1c65b781290ff39610853db99bf03962eb9a615f
manager: pip
name: pywinpty
platform: linux-64
source: null
url: https://files.pythonhosted.org/packages/22/77/59645ee028f410ef1d582fc2923d2cb61016ed38e6ae5022f405227ca2ad/pywinpty-2.0.9.tar.gz
version: 2.0.9 this package is not needed and can not be installed on linux. I believe this is pulled in by I would assume that dependency traversal when looking at pip packages would just stop as soon as dependency available on conda is found, but it looks like tree traversal continues. Separate issue is that pip platform guards are not respected by the looks of it. Simply deleting those pypi entries from lock file manually works fine, and then environment can be built and functions fine |
Alternatively and option like "do not attempt to solve pip, but still install what's listed with an assumption that human solved those" would be nice to have for situations like this. I kind of global |
Making the pip dependencies robust would be extremely difficult since there are so many ambiguous edge cases. But I think meaningful progress could be made in this direction. For the particular |
thanks, inconsistent use of |
Yes, me too! I wish I could do something about it, but I'm not sure what. |
You could document the underscore/hyphen name aliases in https://github.com/conda-incubator/grayskull/blame/main/grayskull/strategy/config.yaml 😉 |
Hello, I'm attempting to lock the following environment.
The dependencies are, simplified, something like this:
conda-lock
is failing attempting to handle it, seemingly because pybedlitev0.0.2
isn't on pip due to having a conda-dependency. And apparentlyconda-lock
doesn't register thatpybedlite
>= 0.0.1
is already being installed via conda.Is there a work-around I'm missing that could possibly fix this?
The text was updated successfully, but these errors were encountered: