ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2015-01-21 03:32:04 -0500 | received badge | ● Notable Question (source) |
2015-01-21 03:32:04 -0500 | received badge | ● Famous Question (source) |
2015-01-21 03:32:04 -0500 | received badge | ● Popular Question (source) |
2013-08-04 18:32:41 -0500 | received badge | ● Self-Learner (source) |
2013-08-04 18:32:41 -0500 | received badge | ● Teacher (source) |
2013-08-04 18:29:18 -0500 | answered a question | Running a python script with sudo in Groovy Got it, didn't see that there was a different PYTHONPATH for root, just had to export the roslib path to that as well. |
2013-08-02 09:48:32 -0500 | asked a question | Running a python script with sudo in Groovy Hi all, I have groovy running and the "hello world" working fine. I am writing a python script that needs to directly write to a memory address (e.g. set 0x1234 high). I have to run this script with root permissions, sudo ./scripts/mymemmoryscript.py. I get the following error: Traceback (most recent call last): File "mymemmoryscript.py", line 9, in <module> import roslib; roslib.load_manifest('beginner_tutorials') ImportError: No module named roslib I notice the same with the tutorial file talker.py: ./scripts/talker.py - runs fine sudo ./scripts/talker.py - gets the error above Is there a way to sudo run python scripts int the ROS Groovy enviroment? I tried looking through the wiki for help but couldn't find answer. Thanks in advance, DD |