-
Notifications
You must be signed in to change notification settings - Fork 168
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
Pypi dependency build fails when conda dependency is needed #1834
Comments
I can reproduce this exactly. It seems weird to me that it can't access the conda environment as there @tdejager We did already activate the conda env right? |
Yes, but because we use isolated builds this does not include python dependencies. |
Right, so the only way for now would be to run:
and then run the following task, which you could put in a pixi task.
|
To give a little more background for users finding this issue. This issue is something we still have to fix. It's part of the build-isolation story.
There are multiple issues explaining this. But it would be best to track #1124 and please 👍 (upvote) the issue. I'll close this issue for now as it has become a duplicate. |
Maybe add the |
@tdejager Then you would need to add some more packages as conda package. But it is indeed a good idea! |
Thank you for this workaround, but that defeats the purpose of the lock file and even the dependencies metadata, which is the reason I want to migrate to Pixi (right now I'm pinning my dependencies in I'll wait for an option to build without isolation. Thank you for all your work and the security consideration you put into it ! |
Checks
pixi --version
.Reproducible example
Trying to install detectron2 from source, which has a build and runtime dependency on pytorch. Haven't got this problem with miniconda.
Issue description
ModuleNotFoundError: No module named 'torch'
during detectron2 build step.Expected behavior
Pypi build step should be able to resolve conda installed modules.
The text was updated successfully, but these errors were encountered: