udacity / sdc-issue-reports

29 stars 6 forks source link

Error while building simple arm project (ROS) #1442

Closed ahmedwahdan closed 5 years ago

ahmedwahdan commented 5 years ago

I get this error while trying to build the simple_arm project

from catkin_pkg.terminal_color import *  # noqa
ImportError: No module named terminal_color

It seems there are two catkin_pkg versions

(venv) root@xxx:/home/workspace# apt list python-catkin-pkg python-catkin-pkg-modules
Listing... Done
python-catkin-pkg/xenial,xenial,now 0.4.10-100 all [installed,automatic]
python-catkin-pkg-modules/xenial,xenial,now 0.4.10-1 all [installed,automatic]
(venv) root@xxx:/home/workspace# python -c "import catkin_pkg; print(catkin_pkg.__version__)"
0.4.2
(venv) root@xxx:/home/workspace# 
ahmedwahdan commented 5 years ago

Fix: I uninstalled catkin_pkg 0.4.2 and installed catkin_pkg 0.4.10

pip uninstall catkin_pkg
pip install -U catkin_pkg==0.4.10

then run

catkin_make clean
catkin_make
mvirgo commented 5 years ago

Thanks for adding your solution :) Can you confirm whether the terminal you were using was in the original workspace, or from the Desktop (which you reach by clicking on the blue Desktop button in the bottom right? There's actually a slight difference in how these work, and the one in the actual Desktop did not appear to have the issue when I tested this out .

ahmedwahdan commented 5 years ago

The same issue exists on the Desktop.

mvirgo commented 5 years ago

Thank you! Unfortunately we are not able to reproduce this issue. Other than your above solution, I'd otherwise say users can try to refresh workspace in the bottom left menu to get a new Desktop, as it may be based on a specific machine that gets loaded.

We'll keep an eye out for any further reports of this particular issue.