[mod_python] python path and 3.3

Graham Dumpleton grahamd at dscpl.com.au
Thu Nov 30 20:15:00 EST 2006


Eric Brunson wrote ..
> Eric Brunson wrote:
> > I just grabbed the latest SVN snapshot and installed it and I'm having
> > a problem with importing now.
> >
> > Using the publisher handler I'm trying to get my app from 3.1.4 going,
> > but 3.3 no longer seems to want to find my lib/ subdirectory.  I've 
> > added the following to my .htaccess:
> >
> > PythonPath "['.']+sys.path"
> >
> > I can display the sys.path in an app and it includes ".", but it just
> > doesn't find a subdirectory "lib"
> >
> > Is there something new with the module loading that I should be aware
> of?
> 
> Sorry.  Got a little quick on the send...  Here's the error message:
> 
>   File "/usr/local/www/data/deviceWebGui/erictest.py", line 3, in <module>
>     from lib import HTMLBuilder
> 
> ImportError: No module named lib
> 
> 
> And lib is a subdirectory of /usr/local/www/data/deviceWebGui/ 

Ahhh, you are using a package.

I have to go out for a while, but I know what the issue will be. Please send
the other information I was after though for me and I'll explain later.

Graham


More information about the Mod_python mailing list