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
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
Asked by DroidDave on 2013-08-02 09:48:32 UTC
Answers
Got it, didn't see that there was a different PYTHONPATH for root, just had to export the roslib path to that as well.
Asked by DroidDave on 2013-08-04 18:29:18 UTC
Comments