error source /opt/ros/foxy/setup.bash

asked 2020-12-13 17:57:04 -0600

guiljaune gravatar image

working on a virtual machine running Ubuntu 20.04 and trying to work with Foxy, I am not able to source the setup.bash.

$ pip3 install -U argcomplete
Requirement already up-to-date: argcomplete in ./.local/lib/python3.8/site-packages (1.12.2)

$ source /opt/ros/foxy/setup.bash
Traceback (most recent call last):
  File "/home/guiljaune/.local/bin/register-python-argcomplete", line 55, in <module>
    argcomplete.autocomplete(parser)
AttributeError: module 'argcomplete' has no attribute 'autocomplete'
edit retag flag offensive close merge delete

Comments

register-python-argcomplete is the Python script that Foxy calls to register its various components with argcomplete. In this case, it is looking like there is something wrong with that script. It kind of smells like there is a mis-matched version of argcomplete installed; one from the system, and one from pip. If you uninstall the pip version, and install the apt package (python3-argcomplete), does it work?

clalancette gravatar image clalancette  ( 2020-12-18 13:07:10 -0600 )edit