ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
This sounds like an issue with a MacPorts setup. On OS X, it is often necessary to run the python_select tool to use the version of Python managed by MacPorts instead.
The simplest test of your setup is:
$ python
>>> import PIL
rosrun does not alter your PYTHONPATH, and there are no modifications necessary in ROS to use a system-installed Python library. rosrun is nothing more than a convenience tool for locating executables and running them. You can verify by manually running the script instead w/o rosrun.