WebFaction
Community site: login faq

I'm trying to use a custom python script and module with wsgi but when I try accessing the site I get an import error, module does not exist. Even though the module in question is in the same directory as my script. I'm assuming this means the python interpreter isn't running in the directory I think it is. I'm unsure of what I need to do to proceed from here.

asked 20 Mar '11, 18:38

aJax86
111
accept rate: 0%


Hi,

We have some great documentation on this here:

http://docs.webfaction.com/software/python.html#importerror

Take a look over that and see if it fixes your problem.

permanent link

answered 20 Mar '11, 19:32

klynton
1.6k1210
accept rate: 41%

Your answer
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:

×337
×62
×47
×27
×15

question asked: 20 Mar '11, 18:38

question was seen: 7,746 times

last updated: 20 Mar '11, 19:32

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 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