Skip to content
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

BUG: pyqt fails to load on fresh installation when no conda pyqt isn't installed #1005

Closed
oraby opened this issue Jul 26, 2023 · 2 comments
Closed

Comments

@oraby
Copy link

oraby commented Jul 26, 2023

Describe the issue:

After creating a conda environment, I attempted to install suite2p on a new windows system using both:
python -m pip install suite2p
and
pip install -e . after cloning this repo (commit tag: v0.13.1)

On trying to run either >seuite2p or python -m suite2p, I get this message:

Cannot move to target thread (0x2b1c97b0cf0)

qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: direct2d, minimal, offscreen, webgl, windows.

Then it returns to prompt.

After checking few stack overflow posts, and trying few things around, the fix was installing pyqt5 through conda:
conda install pyqt

My guess the source of the problem is that pip install pyqt when triggered through setup.py, doesn't install (or maybe just doesn't set correctly the environment variables) the extra required pyqt libraries, while conda install takes care of it.

Reproduce the code example:

python -m pip install suite2p
# or just: >suite2p

Error message:

Cannot move to target thread (0x2b1c97b0cf0)

qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: direct2d, minimal, offscreen, webgl, windows.

Version information:

0.13.2.dev0+g9808eca.d20230726

Context for the issue:

No response

@milesOIST
Copy link

#1010 (comment)

@chriski777
Copy link
Collaborator

This should be addressed by #1057. Please try again after installing the latest version. Feel free to reopen the issue if the problem persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants