-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Issues when installing pyannote.audio with torchaudio #1230
Comments
Also general questions: When I trigger I also tried using |
This issue is proably due to our map only working for @niemiaszek There was a typo in the documentation the priority is an
What errors make you remove those files? |
hey ! on non-conda-forge channels we don't assume that conda-name is the same as pypi-name so this is reason why torchaudio is installed twice. |
Cant we add pytorch to the mapping though? |
yes sure! we can extend it for all channels |
Hard to tell for me right now, as I was doing some changes in a rush, but these were mostly dependency issues. I will try to put more attention to this topic and reproduce some examples. |
Thanks for fast response. ML frameworks usually make life hard, but I'm quite impressed how easy to setup my envs are. This mapping thing is indeed important. CUDA-related libs are also a bit of edge case. I'm quite amazed that there is still no common CUDA target. My dream would be a possibility to easily setup major frameworks [torch, tensorflow, jax, mlx] with GPU/CPU support. This would require also handling cases as installing pip wheels for cuda with TF and conda packages from nvidia channel for Pytorch, ultimately ending with one CUDA installation I mentioned #261 with usage of Keras 3, which would be a fun example to play with, as Keras allows to use same codebase, switching only used backend (supports all major frameworks with MLX support on a way). I think this would be The Ultimate Benchmark, covering most user scenarios. I will fiddle with it a bit and try to set up one env with 3 frameworks, testing pip and conda combinations. |
@nichmor I've seen you are busy with other tasks, but I have a question related to this issue. I tried solving this env again on 0.23 and torchaudio got installed again with both conda and pypi version. Is there currently any workaround for this, like some manual mapping? |
Hey @niemiaszek ! |
hey @niemiaszek !
and inside of it you can have : Let me know if it helps you or you have any questions |
@nichmor I think I kinda get how this should work, but after making local mapping with Can I find the regular mapping somewhere so I can just add one record for torchaudio, that won't overwrite current mappings? |
I also noticed some interesting warnings from CLI while doing so.
This would align with the fact that both "pytorch" got installed from conda and "torch" with all requirements got installed from pypi in this env.
|
One strange thing is that after I passed I think I'm doing something wrong here |
hey @niemiaszek ! Sorry that I wasn't very explicit about mapping and how it works. After merging our mapping and adding there torchaudio I think your issue with importing should be fixed. |
@nichmor thanks for help! Sorry for late response, but I was busy with other stuff this week 😶🌫️ Everything works perfect now. I expected that some extension for mapping was needed. I was just confused how Do you think there will be a way to make it work out of the box? I've seen you already started considering easier way to patch mapping |
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
Issue description
First of all, installing pypi packages with "." in name is not possible in pixi.toml ("data did not match any variant of untagged enum PyPiRequirement"), but can be done with
pixi add
and with-
instead of.
.Second thing are the requirements for pyannote.audio. I'm building env with it for CPU only and it's fine when using:
However, adding
pyannote-audio
ends up installing torchaudio additionally from pip, as it is specified in its requirements:I think only one version of torch is installed, which is nice, but installing this torchaudio from pypi ruins installation, which was fine without pyannote.audio:
Expected behavior
Only conda CPU version of torchaudio kept in env, working import for torchaudio/pyannote.audio
The text was updated successfully, but these errors were encountered: