Open doronbehar opened 3 weeks ago
Dear DoronI have no experience with NixOS. A small test with python 12.3 on windows shows no problems. I am afraid I cannot help you with this. RegardsHansOp 5 jun 2024 om 18:44 heeft Doron Behar @.***> het volgende geschreven: Hello! Thanks for sharing this package, it is superb! I've been using it on NixOS successfully with Python 3.11. However, with Python 3.12 I'm getting a segmentation fault when I try to import curvefitgui! This is very peculiar. Here's the backtrace:
(gdb) bt
from /nix/store/hv1k1197y7wx4h9p3m9rii91s2xfll00-python3-3.12.3-env/lib/python3.12/site-packages/PyQt5/QtCore.abi3.so
from /nix/store/hv1k1197y7wx4h9p3m9rii91s2xfll00-python3-3.12.3-env/lib/python3.12/site-packages/PyQt5/QtCore.abi3.so
from /nix/store/hv1k1197y7wx4h9p3m9rii91s2xfll00-python3-3.12.3-env/lib/python3.12/site-packages/PyQt5/QtCore.abi3.so
I checked that import PyQt5.sip and import PyQt5 don't crash Python.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks for the reply @moosepy . This is indeed mysterious. After thinking about it I too suspected it is related to something fishy we are doing in our distribution. I am curious though if it'd fail on a different Linux distribution (with (Python 3.12)). Noting here that it'd be nice to check it. Thanks again :)
Hey @moosepy ! I encountered a very similar error with pyqtgraph
which (can) also use PyQt5 and Python312... With pyqtgraph
, it was trivial and recommended to switch to PyQt6 or PySide6 and avoid this issue, but with curvefitgui
, you import PyQt5
directly, which makes it a bit harder.
I managed to perform some changes that transition to PyQt6, and these are also compatible with PySide6. PR is in https://github.com/moosepy/curvefitgui/pull/3 .
Hello! Thanks for sharing this package, it is superb!
I've been using it on NixOS successfully with Python 3.11. However, with Python 3.12 I'm getting a segmentation fault when I try to
import curvefitgui
! This is very peculiar. Here's the backtrace:I checked that
import PyQt5.sip
andimport PyQt5
don't crash Python.