Describe the bug
See PEP-0632 Python 3.12 dropped distutils.
Steps to Reproduce
Steps to reproduce the behavior:
python --version
Python 3.12.3
pip install robotframework-reportportal robotframework
post_report
Traceback (most recent call last):
File "/.pyenv/versions/bugreport/bin/post_report", line 5, in <module>
from robotframework_reportportal.post_report import main
File "/.pyenv/versions/3.12.3/envs/bugreport/lib/python3.12/site-packages/robotframework_reportportal/post_report.py", line 50, in <module>
from robotframework_reportportal.result_visitor import RobotResultsVisitor
File "/.pyenv/versions/3.12.3/envs/bugreport/lib/python3.12/site-packages/robotframework_reportportal/result_visitor.py", line 22, in <module>
from . import listener
File "/.pyenv/versions/3.12.3/envs/bugreport/lib/python3.12/site-packages/robotframework_reportportal/listener.py", line 29, in <module>
from .service import RobotService
File "/.pyenv/versions/3.12.3/envs/bugreport/lib/python3.12/site-packages/robotframework_reportportal/service.py", line 31, in <module>
from .variables import Variables
File "/.pyenv/versions/3.12.3/envs/bugreport/lib/python3.12/site-packages/robotframework_reportportal/variables.py", line 16, in <module>
from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils'
Expected behavior
Either dependency to distutils is removed or a dependency to setuptools is added since that ships distutils and command runs without problems.
Describe the bug See PEP-0632 Python 3.12 dropped distutils.
Steps to Reproduce Steps to reproduce the behavior:
Expected behavior Either dependency to
distutils
is removed or a dependency tosetuptools
is added since that shipsdistutils
and command runs without problems.Actual behavior See stack trace above.
Package versions
Additional context Installing
setuptools
fixes the issue currently in 3.12.x as suggested in https://stackoverflow.com/a/77233866 or https://stackoverflow.com/a/77284076