Ask Your Question

No module named setuptools.config

asked 2018-07-05 10:27:35 -0600

Hello, I tried to follow the instructions to install ROS2 using colcon and I get the following error (even though the build continue and pass):

[0.639s] ERROR:colcon.colcon_core.entry_point:Exception loading extension 'colcon_core.package_identification.python': No module named 'setuptools.config' Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/colcon_core/", line 98, in load_entry_points extension_type = load_entry_point(entry_point) File "/usr/lib/python3/dist-packages/colcon_core/", line 140, in load_entry_point return entry_point.load() File "/usr/lib/python3/dist-packages/pkg_resources/", line 2229, in load return self.resolve() File "/usr/lib/python3/dist-packages/pkg_resources/", line 2235, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib/python3/dist-packages/colcon_core/package_identification/", line 10, in <module> from setuptools.config import read_configuration ImportError: No module named 'setuptools.config'

With the following command:

colcon build --symlink-install

I am running on Ubuntu 16.04 and followed this link Do I need to specify something to remove this error ? Thanks

edit retag flag offensive close merge delete



What version of setuptools do you have installed? python3 -m pip freeze --all | grep setuptools

Dirk Thomas gravatar image Dirk Thomas  ( 2018-07-05 12:39:41 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-07-06 03:24:05 -0600

Ah! Yes I guess it was too old as explained in My version was setuptools==20.7.0 and after the "sudo -H python3 -m pip install -U setuptools" it is now setuptools==39.2.0. thanks !

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-07-05 10:27:35 -0600

Seen: 976 times

Last updated: Jul 05 '18