I'm trying to run a python script through a user account, call it myuser. I want to be able to execute the dropbox.py script without logging into or su'ing into root. The program works perfectly when I am either logged in as root, or su'd into root, but I want to find a way to not have to su over to root and then run it every time I start up.
When I run it as myuser, I get the following error:
[myuser@localhost Utilities]$ python dropbox.py start Starting Dropbox... The Dropbox daemon is not installed! Run "dropbox start -i" to install the daemon
So, I run it with the -i option, as recommended and get the following:
[myuser@localhost Utilities]$ python dropbox.py start -i Starting Dropbox...Traceback (most recent call last): File "dropbox.py", line 1404, in start download() File "dropbox.py", line 280, in download import pygtk ImportError: No module named pygtk
I ran it with
strace and I get line after line that looks roughly like this:
open("/home/myuser/Downloads/pygtk.so", O_RDONLY) = -1 ENOENT (No such file or directory)
There are no differences in the .bashrc, .bash_profiles, .bash_history files of either profile. I also checked the .config folder for differences and found none.
Again, the weirdest thing is that it works fine as root, but it doesn't work when logged in as myuser. root is having no problem at all importing in the elusive pygtk package.
Is there some kind of python permission(s) or configuration I need to set somewhere to allow other users to import packages? Is there a configuration setting of some kind I am missing in the myuser account?