Using SSH to install Dropbox
# December 23, 2012 at 9:32 pm
I just want to document the error I’m getting.
FINISHED –2012-12-23 19:18:20–
Downloaded: 1 files, 108K in 0.06s (1.65 MB/s)
firstname.lastname@example.org [~]# chmod 755 ~/bin/dropbox.py
email@example.com [~]# ~/bin/dropbox.py help
File “/home/user/bin/dropbox.py”, line 159
with open(pidfile, “r”) as f:
SyntaxError: invalid syntax
This is what the tutorial states:
`update to Python 2.6 and it will go away. Or better try python2.6 rather than your plain command python as you may already have it installed.`
`NOTE: For CentOS users, use either the EPEL or IUS repo to install the python26.
RPM. The package installs Python 2.6 in parallel to the distribution default version. This way YUM will not be effected by the newer version. Once installed update the hash-bang line to refer to /usr/bin/python26 or /usr/bin/python2.6.`# December 24, 2012 at 2:41 pm
This is what I received from my hosting provider:
`Futhermore, I believe Dropbox uses a daemon and needs to be running at all times, which wouldn’t work in a shared hosting environment either. You’d be better off on a VPS if this is something you wanted to run, however I can’t promise that it’s going to run, even on a VPS due to the python versions. It will break some of cPanel’s functionality by upgrading python.`
I’m not sure that is true because Webfaction (a shared hosting provider) allows you to do this. Although, I think they have an upgraded version of Python.
I believe the command I used which received that error above is allowing my files to sync to Dropbox.
This is the tutorial: http://www.dropboxwiki.com/Text_Based_Linux_Install
You must be logged in to reply to this topic.