ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Apparently re-installing or adding the empy is not enough.
If you used another interpreter (e.g. Anaconda, virtualenv) etc. they may leave links to cache inside your catkin workspace if you accidentally used them before. This messes up the $PYTHONPATH
which was prepending python3 libs from anaconda in my case, even though I wasn't sourcing anaconda anywhere afterwards.
What made it work was the following:
/opt/ros/kinetic/setup.zsh
clean up your catkin workspace (except src)
cd ~/catkin_ws
unlink src/CMakeLists.txt
rm -rf build
rm -rf devel
rm .catkin_workspace
re-initialize the workspace with catkin_init_workspace
from inside src
2 | No.2 Revision |
Apparently re-installing or adding the empy is not enough.
If you used another interpreter (e.g. Anaconda, virtualenv) etc. they may leave links to cache inside your catkin workspace if you accidentally used them before. This messes up the $PYTHONPATH
which was prepending python3 libs from anaconda in my case, even though I wasn't sourcing anaconda anywhere afterwards.
What made it work was the following:
/opt/ros/kinetic/setup.zsh
clean up your catkin workspace (except src)
cd ~/catkin_ws
unlink src/CMakeLists.txt
rm -rf build
rm -rf devel
rm .catkin_workspace
re-initialize the workspace with catkin_init_workspace
from inside src