Fail building Foxy, ModuleNotFoundError: No module named 'setuptools.extern'
I have installed setuptools
python package:
Name: setuptools
Version: 50.3.0
Summary: Easily download, build, install, upgrade, and uninstall Python packages
Home-page: https://github.com/pypa/setuptools
Author: Python Packaging Authority
Author-email: distutils-sig@python.org
License: UNKNOWN
Location: /usr/lib/python3.8/site-packages
Requires:
Required-by: vcstool, pytest-rerunfailures, pipenv, colcon-python-setup-py, colcon-core, Sphinx, rosdistro, jsonschema
But when I run colcon build --symlink-install
Starting >>> ament_package
Starting >>> ament_lint
Starting >>> gtest_vendor
Starting >>> fastcdr
Starting >>> ament_cppcheck
Starting >>> cyclonedds
Starting >>> osrf_pycommon
Starting >>> osrf_testing_tools_cpp
Traceback (most recent call last):] [ament_package - 0.2s] [ament_lint - 0.2s] [gtest_vendor - 0.2s] ...
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'setuptools.extern'
--- stderr: ament_package
Traceback (most recent call last):
File "/home/toni/.local/lib/python
3.8/site-packages/colcon_core/executor/__init__.py", line 91, in __call__
rc = await self.task(*args, **kwargs)
File "/home/toni/.local/lib/python3.8/site-packages/colcon_core/task/__init__.py", line 93, in __call__
return await task_method(*args, **kwargs)
File "/home/toni/.local/lib/python3.8/site-packages/colcon_ros/task/ament_python/build.py", line 51, in build
setup_py_data = get_setup_data(self.context.pkg, env)
File "/home/toni/.local/lib/python3.8/site-packages/colcon_core/task/python/__init__.py", line 20, in get_setup_data
return dict(pkg.metadata[key](env))
File "/home/toni/.local/lib/python3.8/site-packages/colcon_ros/package_identification/ros.py", line 129, in getter
return get_setup_information(
File "/home/toni/.local/lib/python3.8/site-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 261, in get_setup_information
_setup_information_cache[hashable_env] = _get_setup_information(
File "/home/toni/.local/lib/python3.8/site-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 301, in _get_setup_information
result = subprocess.run(
File "/usr/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/python', '-c', "import sys;from setuptools.extern.packaging.specifiers
import SpecifierSet;from distutils.core import run_setup;dist = run_setup( 'setup.p
y', script_args=('--dry-run',), stop_after='config');skip_keys = ('cmdclass', 'distclass', 'ext_modules', 'metadata');data = { key: value for key, value in dist.__dict__.items() if ( not key.startswith('_') and not callable(value) and key not in skip_keys and key not in dist.display_option_names )};data['metadata'] = { k: v for k, v in dist.metadata.__dict__.items() if k not in ('license_files', 'provides_extras')};sys.stdout.buffer.write(rep(data).encode('utf-8'))"]' returned non-zero exit status 1.
Seems like my setuptools
it too up to date. Any ideas?
Please do not cross post: https://github.com/colcon/colcon-pyth... Especially without referencing the duplicate posts.
@Dirk Thomas why?
http://wiki.ros.org/Support#Etiquette
According to https://answers.ros.org/questions/ask/ Send all questions to ROS Answers or the appropriate mailing list, and report all issues to the issue tracker.
@achmad_fathoni: yes, but don't do both at the same time.