Mosso Python Module

Has anyone had time to install the Mosso python module (cloudfiles)? I am trying to install it and get 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

      

+1


a source to share


1 answer


It looks like you are using a version of Python before 2.4 - the syntax it complains about (the @ symbol known as the "decorator") was introduced in Python 2.4.



+5


a source







All Articles