[mod_python] python path and 3.3

Eric Brunson brunson at brunson.com
Thu Nov 30 20:02:39 EST 2006

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/ 

> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python

More information about the Mod_python mailing list