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

Python >= 3.12 not supported for server #26

Open
AaronBandt opened this issue Oct 18, 2024 · 0 comments
Open

Python >= 3.12 not supported for server #26

AaronBandt opened this issue Oct 18, 2024 · 0 comments

Comments

@AaronBandt
Copy link
Collaborator

AaronBandt commented Oct 18, 2024

Attempting to spin up arsenal in python >= 3.12 results in an exception:

(arsenalweb) |02:47 PM|abandt@Aarons-MacBook-Pro:~/venvs/arsenalweb> pserve --reload conf/*.ini
Traceback (most recent call last):
  File "/Users/abandt/venvs/arsenalweb/bin/pserve", line 5, in <module>
    from pyramid.scripts.pserve import main
  File "/Users/abandt/venvs/arsenalweb/lib/python3.13/site-packages/pyramid/scripts/pserve.py", line 21, in <module>
    from pyramid.path import AssetResolver
  File "/Users/abandt/venvs/arsenalweb/lib/python3.13/site-packages/pyramid/path.py", line 3, in <module>
    import pkg_resources
  File "/Users/abandt/venvs/arsenalweb/lib/python3.13/site-packages/pkg_resources/__init__.py", line 90, in <module>
    import packaging.markers
  File "/Users/abandt/venvs/arsenalweb/lib/python3.13/site-packages/packaging/markers.py", line 25, in <module>
    from .specifiers import InvalidSpecifier, Specifier
  File "/Users/abandt/venvs/arsenalweb/lib/python3.13/site-packages/packaging/specifiers.py", line 14, in <module>
    from .utils import canonicalize_version
  File "/Users/abandt/venvs/arsenalweb/lib/python3.13/site-packages/packaging/utils.py", line 9, in <module>
    from .tags import Tag, parse_tag
  File "/Users/abandt/venvs/arsenalweb/lib/python3.13/site-packages/packaging/tags.py", line 7, in <module>
    import distutils.util
ModuleNotFoundError: No module named 'distutils'

This is due to the following:

gh-95299: Do not pre-install setuptools in virtual environments created with venv. This means that distutils, setuptools, pkg_resources, and easy_install will no longer available by default; to access these run pip install setuptools in the activated virtual environment.

https://docs.python.org/3.12/whatsnew/3.12.html

Packages will likely need to be updated to support python >= 3.12.

AC

  • Server updated to support latest version of python
@AaronBandt AaronBandt changed the title Python >= 3.12 not supported Python >= 3.12 not supported for server Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant