roscore
Traceback (most recent call last):
File "/opt/ros/noetic/bin/roscore", line 37, in <module>
from roslaunch.nodeprocess import DEFAULT_TIMEOUT_SIGINT, DEFAULT_TIMEOUT_SIGTERM
File "/opt/ros/noetic/lib/python3.12/site-packages/roslaunch/__init__.py", line 57, in <module>
from .launch import ROSLaunchRunner
File "/opt/ros/noetic/lib/python3.12/site-packages/roslaunch/launch.py", line 58, in <module>
from roslaunch.rlutil import update_terminal_name
File "/opt/ros/noetic/lib/python3.12/site-packages/roslaunch/rlutil.py", line 47, in <module>
import rosclean
File "/opt/ros/noetic/lib/python3.12/site-packages/rosclean/__init__.py", line 40, in <module>
from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils'
To Reproduce
Build an image with Ros1 noetic in Scarthgap. This will include python 3.12. This version of python deprecates distutils, which causes problems for some packages. rosclean in the above example. Simply boot the image and run roscore.
Expected behavior
We can patch these package by package, but I am puzzled as to why this has not been reported before. Has the combination of Scarthgap and Noetic been tested?
Describe the bug Incompatibility with Python 3.12
To Reproduce Build an image with Ros1 noetic in Scarthgap. This will include python 3.12. This version of python deprecates distutils, which causes problems for some packages.
rosclean
in the above example. Simply boot the image and runroscore
.Upon patching for
distutils
, we hit this error as well: https://github.com/ros/ros_comm/pull/2297Expected behavior We can patch these package by package, but I am puzzled as to why this has not been reported before. Has the combination of Scarthgap and Noetic been tested?