Closed shaunabanana closed 3 months ago
See https://answers.ros.org/question/362883/fail-building-foxy-modulenotfounderror-no-module-named-setuptoolsextern/ - basically setuptools is new.
Thank you very much for the quick response!
After changing line 251 of [site-packages of ros env]/colcon_python_setup_py/package_identification/python_setup_py.py
from
'from setuptools.extern.packaging.specifiers import SpecifierSet',
to
'from packaging.specifiers import SpecifierSet',
the package indeed compiles as normal.
I'll close this issue for now.
Solution to issue cannot be found in the documentation.
Issue
Hi! I noticed an issue building Python packages that wasn't present when I first tried about one or two month ago. Any help would be greatly appreciated! :)
Issue Building Python packages raises
ModuleNotFoundError: No module named 'setuptools.extern'
.Steps to reproduce:
<workspace>/src
usingros2 pkg create --build-type ament_python demo
.colcon build
in the workspace.System:
Full error logs:
Installed packages
Environment info