WebFaction
Community site: login faq

hi guys,

I'm stuck with the problem of trying to import my module.

My customUsers folder is at ~/lib/python2.6/customUsers. I got the error message Could not import parents.consent_parents.views. Error was: No module named customUsers.models

But upon inspecting the pythonpath given by the debug page, it is clearly within the pythonpath -

['/home/carrier24sg/webapps/django/lib/python2.6', '/home/carrier24sg/lib/python2.6/django_registration-0.7-py2.6.egg', '/home/carrier24sg/lib/python2.6/django_evolution-0.6.2-py2.6.egg', '/home/carrier24sg/lib/python2.6/Django-1.2.4-py2.6.egg', '/home/carrier24sg/lib/python2.6/South-0.7.3-py2.6.egg', '/home/carrier24sg/lib/python2.6', '/24312PYTHONPATH', ...]

Can anyone shed some light?

asked 20 Mar '11, 23:29

amateur
1111416
accept rate: 0%

edited 20 Mar '11, 23:31

Hi,

/home/carrier24sg/lib/python2.6 is definitely on the path, however that doesn't automatically mean that the stuff here: ~/lib/python2.6/customUsers will be, note those are 2 different paths. Can you put the customUsers fodler in /home/carrier24sg/lib/python2.6 instead of where it is now.

(20 Mar '11, 23:37) klynton

solved. my apologies. Somewhere in my code is still referencing the old location when i refactor my module.

(21 Mar '11, 00:07) amateur

Hi,

Got it, thanks for letting me know you got it fixed.

(21 Mar '11, 00:09) klynton
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:

×909

question asked: 20 Mar '11, 23:29

question was seen: 3,197 times

last updated: 21 Mar '11, 00:09

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