error 2.Compile the code

Asked by shihangwei

 2.Compile the code
         sudo python setup.py install
  i got this
"
 File "setup.py", line 34
    with open("ChangeLog", "w") as changelog_file:
            ^
SyntaxError: invalid syntax

"
and my python is python2.4

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
gholt
Solved:
Last query:
Last reply:
Revision history for this message
Best gholt (gholt) said :
#1

http://swift.openstack.org/getting_started.html

Swift requires Python 2.6. There's a bug to someday make it work with 2.5 https://bugs.launchpad.net/swift/+bug/611007 but it is unlikely it will ever be made to run under 2.4 or earlier.

Revision history for this message
shihangwei (shihangwei) said :
#2

i update python to 2.6.5 and i'm OK now.

thanks,gholt.

Revision history for this message
shihangwei (shihangwei) said :
#3

Thanks gholt, that solved my question.