For reference, the issue for the change in sys.path ordering is: http://code.google.com/p/modwsgi/issues/detail?id=112
When you use WSGIPythonPath or python-path option, any newly added directories were added to the end of sys.path. After the change, sys.path is analysed and newly added directories are shifted in order as a block from end of sys.path to beginning of sys.path. The point in doing this is to ensure that newly added directories take precedence over Python standard module directories and site-packages directory. If this is not done, and you don't make main Apache/mod_wsgi use a virgin virtual environment using WSGIPythonHome, when using per application/user virtual environments with WSGIPythonPath and python-path, then the user specific modules can't override main ones. Note that on Windows WSGIPythonHome doesn't exist and so this was always a problem there as you could point at virgin virtual environment. End result of this may be that if in your new directories added you have modules with same names as standard modules, they will now override them. This could be a problem, but then you should be avoiding name space collisions by not naming modules same as standard ones. BTW, this reordering doesn't apply when you cal site.addsitedir() in the WSGI script file itself. Also, don't post a dribble of messages containing random thoughts as you work through it. The important thing at this moment is for you to dump the value of sys.path into error log and validate that it does at least have all directories you expect it to for script that is failing. Also, ensure you also dump out mod_wsgi.process_group and mod_wsgi.application_group from WSGI environ dictionary and validate that they are actually correct for where you think code should be executing and for which WSGIPythonPath or python-path option has been defined. Graham 2008/11/3 gert <[EMAIL PROTECTED]>: > > http://91.121.53.159/appwsgi/www/upload2/upload.htm > > [Mon Nov 03 04:09:13 2008] [info] Init: Seeding PRNG with 0 bytes of > entropy > [Mon Nov 03 04:09:13 2008] [info] Init: Generating temporary RSA > private keys (512/1024 bits) > [Mon Nov 03 04:09:14 2008] [info] Init: Generating temporary DH > parameters (512/1024 bits) > [Mon Nov 03 04:09:14 2008] [info] Init: Initializing (virtual) servers > for SSL > [Mon Nov 03 04:09:14 2008] [info] mod_ssl/2.2.9 compiled against > Server: Apache/2.2.9, Library: OpenSSL/0.9.8g > [Mon Nov 03 04:09:14 2008] [info] mod_wsgi: Initializing Python. > [Mon Nov 03 04:09:14 2008] [info] mod_wsgi (pid=6865): Attach > interpreter ''. > [Mon Nov 03 04:09:14 2008] [info] mod_wsgi (pid=6865): Adding '/srv/ > www/appwsgi/www/lib' to path. > [Mon Nov 03 04:09:14 2008] [info] mod_wsgi (pid=6867): Attach > interpreter ''. > [Mon Nov 03 04:09:14 2008] [info] mod_wsgi (pid=6867): Adding '/srv/ > www/appwsgi/www/lib' to path. > [Mon Nov 03 04:09:14 2008] [info] mod_wsgi (pid=6868): Attach > interpreter ''. > [Mon Nov 03 04:09:14 2008] [info] mod_wsgi (pid=6868): Adding '/srv/ > www/appwsgi/www/lib' to path. > [Mon Nov 03 04:09:14 2008] [info] mod_wsgi (pid=6869): Attach > interpreter ''. > [Mon Nov 03 04:09:14 2008] [info] mod_wsgi (pid=6869): Adding '/srv/ > www/appwsgi/www/lib' to path. > [Mon Nov 03 04:09:14 2008] [info] mod_wsgi (pid=6870): Attach > interpreter ''. > [Mon Nov 03 04:09:14 2008] [info] mod_wsgi (pid=6870): Adding '/srv/ > www/appwsgi/www/lib' to path. > [Mon Nov 03 04:09:14 2008] [notice] Apache/2.2.9 (Ubuntu) mod_ssl/ > 2.2.9 OpenSSL/0.9.8g mod_wsgi/3.0-TRUNK Python/2.5.2 configured -- > resuming normal operations > [Mon Nov 03 04:09:14 2008] [info] Server built: Sep 19 2008 13:43:21 > [Mon Nov 03 04:10:49 2008] [info] mod_wsgi (pid=7119): Attach > interpreter ''. > [Mon Nov 03 04:10:49 2008] [info] mod_wsgi (pid=7119): Adding '/srv/ > www/appwsgi/www/lib' to path. > [Mon Nov 03 04:11:01 2008] [info] mod_wsgi (pid=7176): Attach > interpreter ''. > [Mon Nov 03 04:11:01 2008] [info] mod_wsgi (pid=7176): Adding '/srv/ > www/appwsgi/www/lib' to path. > [Mon Nov 03 04:11:05 2008] [info] [client 80.200.208.100] mod_wsgi > (pid=6868, process='', application=''): Loading WSGI script '/srv/www/ > appwsgi/www/upload2/upload.py'. > [Mon Nov 03 04:11:06 2008] [info] mod_wsgi (pid=7204): Attach > interpreter ''. > [Mon Nov 03 04:11:06 2008] [info] mod_wsgi (pid=7204): Adding '/srv/ > www/appwsgi/www/lib' to path. > [Mon Nov 03 04:11:16 2008] [error] [client 81.211.123.66] client sent > HTTP/1.1 request without hostname (see RFC2616 section 14.23): / > w00tw00t.at.ISC.SANS.DFind:) > [Mon Nov 03 04:12:59 2008] [info] [client 80.200.208.100] mod_wsgi > (pid=6870, process='', application=''): Loading WSGI script '/srv/www/ > appwsgi/www/upload2/upload.py'. > [Mon Nov 03 04:13:10 2008] [info] [client 80.200.208.100] mod_wsgi > (pid=7119, process='', application=''): Loading WSGI script '/srv/www/ > appwsgi/www/upload2/upload.py'. > > this looks normal its from a other server with a older trunk version > but i don't know the number anymore because i did a wget and deleted > the files > anyway i am looking into it which version that does not work > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
