views:

143

answers:

1

Hello,

Has anybody had success installing the Mosso (cloudfiles) python module? I'm trying to install it and getting the following error.

python-cloudfiles-1.3.1]# python setup.py install
running install
running build
running build_py
running install_lib
byte-compiling /usr/lib/python2.3/site-packages/cloudfiles/container.py to container.pyc
  File "/usr/lib/python2.3/site-packages/cloudfiles/container.py", line 74
    @requires_name(InvalidContainerName)
    ^
SyntaxError: invalid syntax
byte-compiling /usr/lib/python2.3/site-packages/cloudfiles/storage_object.py to storage_object.pyc
  File "/usr/lib/python2.3/site-packages/cloudfiles/storage_object.py", line 85
    @requires_name(InvalidObjectName)
    ^
SyntaxError: invalid syntax
+5  A: 

It looks like you're running a version of Python prior to 2.4 - the syntax it's complaining about (the @ symbol, known as a "decorator") was introduced in Python 2.4.

RichieHindle
looks like you're right. I'm running 2.3.4
majestiq