login community faq

I'm trying to use the boto module in my Django 1.3 app with Python 2.7 which I installed with pip. When I make a request to the server, I get the error message Caught ImportError while rendering: No module named boto. I think it may be related to Python versions, but I really can't figure out why this is happening.

Output of pip freeze:

Django==1.3
Markdown==2.0.3
MySQL-python==1.2.3
PIL==1.1.7
boto==2.0b4
docutils==0.7
egenix-mx-base==3.1.3
numpy==1.5.0
psycopg2==2.3.2
pycrypto==2.3
reportlab==2.4
wsgiref==0.1.2

Output:

$ pip-2.7 install boto
Requirement already satisfied (use --upgrade to upgrade): boto in ./lib/python2.7
Cleaning up...
$ pip-2.7 install -U boto
Downloading/unpacking boto
   . . .
Successfully installed boto
Cleaning up...

still the same error

asked Apr 09 '11 at 16:22

blake8086's gravatar image

blake8086
12

edited Apr 09 '11 at 17:02

Did you specify the python version when you installed boto with pip? The default python version is 2.4, so you will need to do the command "pip-2.7 install boto" to install for python 2.7.

(Apr 09 '11 at 16:34) timg ♦♦ timg's gravatar image

I did not originally specify it, but it doesn't seem to make a difference. (see my edit above)

(Apr 09 '11 at 17:03) blake8086 blake8086's gravatar image

Once you installed boto did you restart your apache?

(Apr 09 '11 at 18:06) timg ♦♦ timg's gravatar image

Yes, I restart it after every attempt to fix this.

(Apr 09 '11 at 18:53) blake8086 blake8086's gravatar image

In your installed_apps - how are adding boto? It should be 'boto',

(Apr 09 '11 at 19:09) timg ♦♦ timg's gravatar image

That's what I'm doing

(Apr 09 '11 at 19:29) blake8086 blake8086's gravatar image

If you cannot figure out the problem, please open a support ticket and we can take a look at your code.

(Apr 09 '11 at 19:39) timg ♦♦ timg's gravatar image
showing 5 of 7 show all
Be the first one to answer this question!
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×643
×229
×149
×20
×1

Asked: Apr 09 '11 at 16:22

Seen: 1,389 times

Last updated: Apr 09 '11 at 19:39

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited