-
Notifications
You must be signed in to change notification settings - Fork 621
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
qutip 4.7.3 QobjEvo test failures on Python 3.12 #2293
Comments
@Ericgig It would be good if this was fixed in 4.7.4. |
We don't currently test or build for 3.12 on the |
Cython 0.29 is not compatible with python 3.12. Adding cython3 to 4.7.X is not a quick fix and we already choose not to do it. The best we can do is to run as if cython was not installed at runtime on 3.12 and release 5.0.0 soon. |
If the issue is Cython support for 3.12, let's just leave it for now as you suggest. |
In any case, these tests still fail with HEAD on the qutip-4.7.X branch (7a883d3) |
I disabled cython support on python 3.12 with this patch:
|
Should be fixed with the 4.7.5 release. |
Bug Description
Building qutip 4.7.3 for Debian unstable, all tests are passing with python 3.11. But a dozen tests using qobjevo fail with python 3.12:
#1084 notes that a major overhaul of qobjevo has been done for qutip v5. Perhaps the issue is fixed. On the hand it could be an issue with python 3.12 that still needs to be addressed in v5, so I though I should mention in.
Code to Reproduce the Bug
python3.12 -c "import qutip.testing; qutip.testing.run(pytest_options=[['-k', 'mesolve_td or test_varying_coefficient_hamiltonian_2ls or testMEDecayAsStrList or test_array_str or test_qobjevo or test_04 or test_06_4_compare_state_and_unitary_list_str or testPropHOStrTd']])"
Code Output
Expected Behaviour
Tests should pass with python3.12.
Your Environment
Additional Context
cython3-legacy 0.29.36-3
The text was updated successfully, but these errors were encountered: