PCFreak Logo (c) Der PCFreak

dropbox.py – Missing parentheses in call to ‚print‘

I got this error when trying to run dropbox.py (Dropbox command-line interface):

  File „./dropbox.py“, line 323
    print ex
           ^
SyntaxError: Missing parentheses in call to ‚print‘

A quick look at the source of dropbox.py shows

#!/usr/bin/python

as Shebang. So I verified which version of python this is on my system:

/usr/bin/python –version

and I got

Python 3.4.2

dropbox.py is designed for python2. So I just ran it with python2 and it worked

/usr/bin/python2 ./dropbox.py

or you could of course change the Shebang to #!/usr/bin/python2.