-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
I installed Python 3.10 on our Jenkins nodes and after setting up a new job to run with it, it fails at the stage of creating the virtual environment:
[plone-6.0-python-3.10] $ /srv/python3.10/bin/python3.10 /home/jenkins/shiningpanda/jobs/eabf05e7/virtualenv.py /home/jenkins/shiningpanda/jobs/eabf05e7/virtualenvs/d41d8cd9 /home/jenkins/shiningpanda/jobs/eabf05e7/virtualenv.py:25: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives import distutils.spawn /home/jenkins/shiningpanda/jobs/eabf05e7/virtualenv.py:26: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead import distutils.sysconfig /home/jenkins/shiningpanda/jobs/eabf05e7/virtualenv.py:1041: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses import imp Using base prefix '/srv/python3.10' New python executable in /home/jenkins/shiningpanda/jobs/eabf05e7/virtualenvs/d41d8cd9/bin/python3.10 Also creating executable in /home/jenkins/shiningpanda/jobs/eabf05e7/virtualenvs/d41d8cd9/bin/python Traceback (most recent call last): File "/home/jenkins/shiningpanda/jobs/eabf05e7/virtualenv.py", line 2343, in <module> main() File "/home/jenkins/shiningpanda/jobs/eabf05e7/virtualenv.py", line 703, in main create_environment(home_dir, File "/home/jenkins/shiningpanda/jobs/eabf05e7/virtualenv.py", line 925, in create_environment py_executable = os.path.abspath(install_python( File "/home/jenkins/shiningpanda/jobs/eabf05e7/virtualenv.py", line 1438, in install_python fix_local_scheme(home_dir, symlink) File "/home/jenkins/shiningpanda/jobs/eabf05e7/virtualenv.py", line 1521, in fix_local_scheme if sysconfig._get_default_scheme() == 'posix_local': AttributeError: module 'sysconfig' has no attribute '_get_default_scheme'. Did you mean: 'get_default_scheme'?
We are still running Ubuntu 18.04, might that be a problem?
We are using python 2.7, 3.6 up to 3.9 without a problem on our public jenkins instance: https://jenkins.plone.org/ The specific job that fails is the following: https://jenkins.plone.org/job/plone-6.0-python-3.10
Is there any other python plugin recommended? I see that shiningpanda has not had a release since a few years already...