"import boto" -> sintax error

43 views
Skip to first unread message

Massimo Canonico

unread,
May 28, 2012, 7:31:48 AM5/28/12
to boto-...@googlegroups.com
Hi,
today it comes up this new weird error. I did not change anything in my
machine, and until last week, I was able to run boto under python.

Here the sintax error that I got just typing "import boto":

[mex@shrek nimbus-cloud-client-021]$ python
Python 2.7.1 (r271:86832, Apr 12 2011, 16:15:16)
[GCC 4.6.0 20110331 (Red Hat 4.6.0-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import boto
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "boto.py", line 28
k.set_contents_from_filename(<path to image file>)
^
SyntaxError: invalid syntax


Here the boto version installed:
[root@shrek ~]# rpm -qa | grep boto
python-boto-2.3.0-1.fc18.noarch

I have no idea what is going on here. And you?

Cheers,
Massimo


Mitchell Garnaat

unread,
May 28, 2012, 9:17:14 AM5/28/12
to boto-...@googlegroups.com
Hi -

The stacktrace doesn't really make any sense to me.  There is no boto.py file in the boto distribution.  Do you have a local file called boto.py somewhere in your Python path?

Mitch




--
You received this message because you are subscribed to the Google Groups "boto-users" group.
To post to this group, send email to boto-...@googlegroups.com.
To unsubscribe from this group, send email to boto-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/boto-users?hl=en.


Massimo Canonico

unread,
May 28, 2012, 9:19:54 AM5/28/12
to boto-...@googlegroups.com
Oh boy!

I had a file called boto.py with the instructions list in the current directory.

Sorry, I have wasted your time with such a stupid error :(

M
Mitch

To unsubscribe from this group, send email to boto-users+...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/boto-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "boto-users" group.
To post to this group, send email to boto-...@googlegroups.com.
To unsubscribe from this group, send email to boto-users+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages