-
Notifications
You must be signed in to change notification settings - Fork 5
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
Plugin Manager shows conda as option for installation source in non-conda environment #16
Comments
CC: @ppwadhwa @goanpeca BTW, related other thing I ran into in the original PR, which isn't strictly a bug, but is a bit of an issue is that if napari was pip installed and the user installs plugin via conda, you can get the whole env rebuilt, which can mean multiple Qt involved, etc. |
Hi @psobolewskiPhD and @aganders3 thanks for raising this issue. I am working on a fix for the two things now :) Cheers! |
Regarding:
There is still the case of using napari in development mode... that is installing from the latest source. So that would need some extra logic to be handled correctly. That is installing everything from conda in a conda environment but using napari in development mode |
@goanpeca I'm not sure I follow.
and now napari doesn't start:
|
@psobolewskiPhD, sorry I was not clear, let me elaborate :) So the case you expose, yes, someone does conda create -n napari python -c conda-forge
pip install napari I have taken care of this case :) I am now referring to the use case where someone is using the conda create -n napari python -c conda-forge
git clone https://github.com/napari/napari.git
conda install ...(all napari dependencies)
pip install napari -e . --no-deps So, here we installed everything in a conda environment and all dependencies are conda packages, except napari which is installed in dev mode (using pip), so this case is special, and you should be able to install things with conda from the plugin manager, but you may also run into the issue you found. |
@goanpeca OK, yeah, I get it now, thanks for being patient with me. |
@goanpeca Should we migrate this issue to the plugin-manager repo? |
Migrated @psobolewskiPhD :) |
🐛 Bug
As noted in napari/napari#5622 but deemed out of scope, indeed when running napari from a venv-based virtualenv (and all CONDA env vars removed) the Plugin Manager still shows conda as an option for plugin source in the Installation Info dropdown:
If I try to install a plugin using conda anyway, I get
ValueError: Prefix has not been specified!
.Full stack trace
To Reproduce
Steps to reproduce the behavior:
python -m venv venv && source venv/bin/activate
)pip install 'napari[pyqt6]'
, note I had to use qt6 because I'm on an ARM Macbook)affinder
plugin, check the "Source" dropdown to see it offers both PyPI and conda.Expected behavior
I expect the Plugin Manager to not offer and not attempt to install using conda unless in a conda-based environment.
Environment
Additional context
Note I don't have an entirely conda-free computer to test on, but I would still expect the behavior to be different in the setup I have here.
Summary of prior discussion - NB @Czaki @psobolewskiPhD:
Originally posted by @psobolewskiPhD in napari/napari#5622 (comment)
The text was updated successfully, but these errors were encountered: