WebFaction
Community site: login 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 09 Apr '11, 16:22

blake8086
113
accept rate: 0%

edited 09 Apr '11, 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.

(09 Apr '11, 16:34) timg ♦♦

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

(09 Apr '11, 17:03) blake8086

Once you installed boto did you restart your apache?

(09 Apr '11, 18:06) timg ♦♦

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

(09 Apr '11, 18:53) blake8086

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

(09 Apr '11, 19:09) timg ♦♦

That's what I'm doing

(09 Apr '11, 19:29) blake8086

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

(09 Apr '11, 19:39) timg ♦♦
showing 5 of 7 show 2 more comments
Be the first one to answer this question!
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×901
×337
×222
×53
×1

question asked: 09 Apr '11, 16:22

question was seen: 5,506 times

last updated: 09 Apr '11, 19:39

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM