Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3-colcon colcon build reports an error on Ubuntu Xenial #90

Closed
paulbovbel opened this issue Jul 25, 2018 · 4 comments
Closed

python3-colcon colcon build reports an error on Ubuntu Xenial #90

paulbovbel opened this issue Jul 25, 2018 · 4 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@paulbovbel
Copy link

paulbovbel commented Jul 25, 2018

colcon build on an ubuntu:xenial container reports the following error:

ERROR:colcon.colcon_core.entry_point:Exception loading extension 'colcon_core.package_identification.python': No module named 'setuptools.config'

It looks like the system packaged setuptools doesn't include this module in xenial - this can be worked around by upgrading the system setuptools using sudo python3 -m pip install setuptools -U.

@paulbovbel paulbovbel changed the title python3-colcon fails to run on Ubuntu Xenial python3-colcon colcon build reports an error on Ubuntu Xenial Jul 25, 2018
@dirk-thomas
Copy link
Member

Can you clarify which instructions you followed for building the package. The documentation mentions that updating setuptools might be necessary.

@paulbovbel
Copy link
Author

paulbovbel commented Jul 25, 2018

Apologies - this occurs when having installed python3-colcon-common-extensions from repo.ros2.org on a fresh ubuntu xenial container.

@sloretz
Copy link
Contributor

sloretz commented Jul 25, 2018

It looks like setuptools.config was added in 30.3.0. Would changing the install_requires for setuptools to setuptools >= 30.3.0 cause it to be upgraded when colcon-core is installed via pip?

@dirk-thomas dirk-thomas self-assigned this Jul 25, 2018
@dirk-thomas dirk-thomas added review Waiting for review (Kanban column) bug Something isn't working enhancement New feature or request labels Jul 25, 2018
@dirk-thomas dirk-thomas added this to the 0.3.6 milestone Jul 25, 2018
@dirk-thomas
Copy link
Member

For Debian packages there is no way for the colcon Debian package to fix the problem / install the newer setuptools version automatically. But #91 ensures for pip installed packages that the dependency is new enough as well as prints a better error message in the Debian case where the dependency is too old.

@dirk-thomas dirk-thomas removed the review Waiting for review (Kanban column) label Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Development

No branches or pull requests

3 participants