vavavr00m / boto

Automatically exported from code.google.com/p/boto
1 stars 0 forks source link

python setup.py install doesn't work with python 2.4 #547

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install python 2.4
2. Unzip boto and go into the base directory.
3. python setup.py install

What is the expected output? What do you see instead?

I expect to see that the product was successfully installed.

Instead I see these errors:
Extracting boto-2.0-py2.4.egg to /usr/lib/python2.4/site-packages
File 
"/usr/lib/python2.4/site-packages/boto-2.0-py2.4.egg/boto/s3/connection.py", 
line 288
delimiter = '?' if '?' not in auth_path else '&'
^
SyntaxError: invalid syntax
File 
"/usr/lib/python2.4/site-packages/boto-2.0-py2.4.egg/boto/s3/resumable_download_
handler.py", line 142
finally:
^
SyntaxError: invalid syntax
File 
"/usr/lib/python2.4/site-packages/boto-2.0-py2.4.egg/boto/gs/resumable_upload_ha
ndler.py", line 111
finally:
^
SyntaxError: invalid syntax
File 
"/usr/lib/python2.4/site-packages/boto-2.0-py2.4.egg/boto/ec2/cloudwatch/alarm.p
y", line 99
self.threshold = float(threshold) if threshold is not None else None
^
SyntaxError: invalid syntax
File 
"/usr/lib/python2.4/site-packages/boto-2.0-py2.4.egg/boto/ec2/autoscale/group.py
", line 146
self.min_size = int(min_size) if min_size is not None else None
^
SyntaxError: invalid syntax
File 
"/usr/lib/python2.4/site-packages/boto-2.0-py2.4.egg/boto/manage/server.py", 
line 339
s.name = params.get('name') + '' if i==0 else str
^
SyntaxError: invalid syntax
File 
"/usr/lib/python2.4/site-packages/boto-2.0-py2.4.egg/boto/manage/volume.py", 
line 238
with closing(self.server.get_cmdshell()) as cmd:
^
SyntaxError: invalid syntax
File 
"/usr/lib/python2.4/site-packages/boto-2.0-py2.4.egg/boto/fps/connection.py", 
line 223
recipientTokenId if recipientTokenId is not None
^
SyntaxError: invalid syntax

Clearly the code was written with python 2.5+ in mind. It uses the ternary 
operator which doesn't exist in python 2.4 

What version of the product are you using? On what operating system?
This is the 2.0GA release

Original issue reported on code.google.com by Krisman....@gmail.com on 15 Aug 2011 at 10:08

GoogleCodeExporter commented 9 years ago
As the README file states, Python targets Python 2.5 and later.  

Original comment by Mitch.Ga...@gmail.com on 19 Sep 2011 at 10:38