Alex Rivera | Logout

Unable to install boto in python3

Asked 2012-04-05T09:35:20.620
10

I am trying to install boto from the source code / pypi, but I am unable to install it using python 3.2. Why is it failing?

c:\boto>..\Python32\python.exe setup.py install
Traceback (most recent call last):
  File "setup.py", line 35, in <module>
    from boto import __version__
  File "c:\boto\boto\__init__.py", line 26, in <mod
ule>
    from boto.pyami.config import Config, BotoConfigLocations
  File "c:\boto\boto\pyami\config.py", line 185
    print s.getvalue()
          ^
SyntaxError: invalid syntax
Edit
Report

1 Answer

13
print s.getvalue()

is Python 2 syntax. From the README:

If you are interested in trying out boto with Python 3.x, check out the neo branch. This is under active development and the goal is a version of boto that works in Python 2.6, 2.7, and 3.x. Not everything is working just yet but many things are and it's worth a look if you are an active Python 3.x user.

answered 2012-04-05T09:50:22.913

Your Answer