ImportError: No module named os
When running Python 2.7 with Apache 2.2 and modwsgi 3.3. Make sure Apache is loading the correct version of modwsgi. I ran in to the following error, which wasted about 15 minutes of my life before realizing the one character typo.
[client 192.168.0.10] mod_wsgi (pid=5800): Exception occurred processing WSGI script 'D:/www/myapp.wsgi'.
Traceback (most recent call last):
File "D:/www/myapp.wsgi", line 1, in <module>
ImportError: No module named os
That puzzling error was the result of the following line in the httpd.conf.
LoadModule wsgi_module "@WWWROOT@/modules/mod_wsgi-win32-ap22py26-3.3.so"
See it? The line should be.
LoadModule wsgi_module "@WWWROOT@/modules/mod_wsgi-win32-ap22py27-3.3.so"


