Hi,
I am experiencing some issues deploying a web.py app on Apache 2.2
using mod_wsgi. I have a straight-up wsgi app working right now for
testing, so ostensibly the issue is not mod_wsgi and that it's not
web.py (the internal development server works on that machine). Here's
the pertinent parts of my httpd.conf:
...
WSGIScriptAlias /app /home/webadmin/webpy/code.py
<Directory /ds/webadmin/wsgi-scripts>
Order allow,deny
Allow from all
</Directory>
<Directory /ds/webadmin/webpy>
Order allow,deny
Allow from all
</Directory>
...
Here's my error log:
[Fri Dec 10 11:56:39 2010] [error] warning: Python C API version
mismatch for module time: This Python has API version 1013, module
time has version 1012.
[Fri Dec 10 11:56:39 2010] [error] warning: Python C API version
mismatch for module collections: This Python has API version 1013,
module collections has version 1012.
[Fri Dec 10 11:56:39 2010] [error] warning: Python C API version
mismatch for module itertools: This Python has API version 1013,
module itertools has version 1012.
[Fri Dec 10 11:56:39 2010] [error] warning: Python C API version
mismatch for module select: This Python has API version 1013, module
select has version 1012.
[Fri Dec 10 11:56:39 2010] [error] warning: Python C API version
mismatch for module fcntl: This Python has API version 1013, module
fcntl has version 1012.
[Fri Dec 10 11:56:39 2010] [error] warning: Python C API version
mismatch for module struct: This Python has API version 1013, module
struct has version 1012.
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135] mod_wsgi
(pid=5087): Target WSGI script '/home/webadmin/webpy/code.py' cannot
be loaded as Python module.
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135] mod_wsgi
(pid=5087): Exception occurred processing WSGI script '/home/webadmin/
webpy/code.py'.
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135] Traceback
(most recent call last):
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135] File "/
home/webadmin/webpy/code.py", line 5, in <module>
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135] import
web
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135] File "/
home/webadmin/webpy/web.py-0.34/web/__init__.py", line 14, in <module>
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135] import
utils, db, net, wsgi, http, webapi, httpserver, debugerror
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135] File "/
home/webadmin/webpy/web.py-0.34/web/utils.py", line 36, in <module>
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135] import
subprocess
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135] File "/
usr/lib/python2.4/subprocess.py", line 378, in <module>
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135] import
pickle
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135] File "/
usr/lib/python2.4/pickle.py", line 36, in <module>
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135] import
warnings
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135] File "/
usr/lib/python2.4/warnings.py", line 258, in <module>
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135]
simplefilter("ignore", category=OverflowWarning, append=1)
[Fri Dec 10 11:56:39 2010] [error] [client 192.168.143.135] <type
'exceptions.NameError'>: name 'OverflowWarning' is not defined
If I fire up the python shell, I can import web with no problems so
I'm a little perplexed by this. I'm using Python 2.4.3, mod_wsgi 2.5
and webpy .3.
Any help would be greatly appreciated.
Thanks,
Mark
--
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en.