Open davide125 opened 1 year ago
Right now, we don't support 3.11. Possibly in the release after the next one we will.
@davide125, what is the status of this issue? Right now, we have a CI running on Ubuntu with Python 3.11 without errors.
This is still failing in the same way with 6.0.4 on Fedora Linux 38, which ships with Python 3.11.7. I can't test on more recent versions as Fedora switched to 3.12 and that's not supported yet (https://github.com/Mathics3/mathics-core/issues/932).
The merge that addresses this issue went in May 24, 2023. It is not in any of the 6.x branches. It is only in current master which will be in the upcoming 7.0 release.
To see this addressed, you'd have to build from current master sources, not any previously-released sources.
After the upcoming 7.0 release, (which drops Python 3.6 support) we'll start to address Python 3.12 (and probably drop Python 3.7 support).
Description
When building the latest stable release (5.0.2) on Fedora,
test_strings.py::test_string_split
fails withre.error: global flags not at the start of the expression at position 1
.How to Reproduce
On a system with mock installed:
After it fails, you can use
mock -r fedora-rawhide-x86_64 --shell --enable-network
to get an interactive shell inside the build environment to troubleshoot (usednf install
to get any additional packages you might need).Output Given
Expected behavior
The test should not fail
Your Environment
I can repro this reliably on Fedora Rawhide, which currently ships with Python 3.11.1 and Cython 0.29.32 (though I've verified this fails in the same way with and without Cython).
Workarounds
Disabling the test with
--deselect=test/test_strings.py::test_string_split
works, but that just papers over the problemPriority
It's blocking the inclusion of Mathics in Fedora.
Additional context
This came up during the Fedora package review for Mathics.