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

Upgrade Arches 7.5 to use Python 3.11 #9832

Closed
chiatt opened this issue Jul 25, 2023 · 5 comments · Fixed by #10200
Closed

Upgrade Arches 7.5 to use Python 3.11 #9832

chiatt opened this issue Jul 25, 2023 · 5 comments · Fixed by #10200
Assignees

Comments

@chiatt
Copy link
Member

chiatt commented Jul 25, 2023

Currently Arches 7.5 runs on Python 3.10, however bug fixes are no longer released to that version.
(https://devguide.python.org/versions/)

The next Arches LTS (7.5) should use the corresponding Python stable release (3.11).

At least one change that will need to be made is the removal of 'rU' when reading files:
python/cpython#81511

@jacobtylerwalls
Copy link
Member

The dev dependencies use django_nose, but nose itself is no longer maintained, and will not run on Python 3.10:

  File "/Users/jwalls/arches/env310/lib/python3.10/site-packages/nose/suite.py", line 106, in _set_tests
    if isinstance(tests, collections.Callable) and not is_suite:
AttributeError: module 'collections' has no attribute 'Callable'

Should migrating from nose to pytest be done first? At least one automated migration tool exists.

@jacobtylerwalls
Copy link
Member

Ah, the nose piece is discussed in #9260 already.

@jacobtylerwalls
Copy link
Member

@chiatt If 7.6 is now scheduled to be the LTS, should we just add support for python 3.11 in 7.5 without requiring it, and then require it in 7.6? (We could set python 3.9 as the floor for 7.5)

@jacobtylerwalls jacobtylerwalls self-assigned this Oct 27, 2023
jacobtylerwalls added a commit that referenced this issue Oct 27, 2023
The `imp` module was deprecated in Python 3.4
and removed in Python 3.12.
jacobtylerwalls added a commit that referenced this issue Oct 27, 2023
The `imp` module was deprecated in Python 3.4
and removed in Python 3.12.
jacobtylerwalls added a commit that referenced this issue Oct 27, 2023
The `imp` module was deprecated in Python 3.4
and removed in Python 3.12.
@chiatt
Copy link
Member Author

chiatt commented Oct 30, 2023

@chiatt If 7.6 is now scheduled to be the LTS, should we just add support for python 3.11 in 7.5 without requiring it, and then require it in 7.6? (We could set python 3.9 as the floor for 7.5)

Yeah - that sounds like a good plan. It looks like Ubuntu 23.04 ships with Python 3.11, so that should fit nicely with Arches 7.6

@chiatt chiatt linked a pull request Nov 2, 2023 that will close this issue
3 tasks
@jacobtylerwalls
Copy link
Member

Fixed in #10200

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

Successfully merging a pull request may close this issue.

2 participants