-
Notifications
You must be signed in to change notification settings - Fork 24
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
NSRangeException on macOS with PyQt6 #229
Comments
Thanks for reporting this problem. I don't have MacOS and have never used conda, so it might be difficult to reproduce the problem. There are some things you could try which might help isolate the cause. Can you run Photini in a normal Python venv rather then using conda? |
I've installed micromamba on my Linux box, installed Photini and PyQt6 and it runs OK.
|
Aha! A bit of searching leads me to this: pyqtgraph/pyqtgraph#2896 PS This probably won't work. PyQt6 is badly packaged and insists on installing subpackages from 6.6 when you try installing older "top" packages. |
The solution is to downgrade each subpackage individually:
Repeat until |
@jim-easterbrook you might want to use |
Fair point, but I just want to establish that it is the PyQt version that is the problem. If any other version can be installed and Photini works with it then we can proceed from there. |
@jim-easterbrook thanks for the quick response, and good that you found the upstream issue! I just tried PyQT 6.5.0 and it works. |
@victorlin If you can spare the time and effort it would be useful to find out which component(s) of PyQt6 has the problem with v6.6.1 by downgrading each component in turn to v6.6.0 and trying Photini. Then I could specifically exclude v6.6.1 of that component when installing on MacOS. |
@jim-easterbrook Sure thing. I did the opposite: start with a working state with everything on version 6.5.0 and check what causes it to break.
I would recommend avoiding versions >=6.6.0 for all PyQt-related packages. |
Note that it installs
Installing
I'm assuming 6.6.2 will fix this bug. |
Hopefully this will deal with bug #229.
I just configured Photini with PyQt6 in a conda environment but am not able to click on any of the tabs. This is what happens:
Console output of setup and stack trace
I'm using macOS 14.1.2 on a M1 Mac mini.
Side note: I first tried using PySide6 but got a segmentation fault before the window was able to appear.
The text was updated successfully, but these errors were encountered: