ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

For anyone else running into this problem. My solution was PATH based.

It seems that the script is adding its own directory to the search path which contains the same folder structure that the module is searching for, but not the right contents.

The simplest solution for me is to remove that path from the search:

sys.path.remove(os.path.dirname(__file__))

There is probably a better solution somewhere deeper in the ROS code, but for now I'm just glad everything is running!

For anyone else running into this problem. My solution was PATH based.. The module search paths were not identical.

It seems that the script is adding its own directory to the search path which contains the same folder structure that the module is searching for, but not the right contents.

The simplest solution for me is to remove that path from the search:

sys.path.remove(os.path.dirname(__file__))

There is probably a better solution somewhere deeper in the ROS code, but for now I'm just glad everything is running!