Artur Daschevici
unread,Feb 15, 2012, 5:43:10 PM2/15/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pylons-discuss
This is the stacktrace i am getting:
mod_wsgi (pid=5140): Target WSGI script 'H:/aaa/testsite/apache/
handler.wsgi' cannot be loaded as Python module.
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] mod_wsgi
(pid=5140): Exception occurred processing WSGI script 'H:/aaa/testsite/
apache/handler.wsgi'.
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] Traceback (most
recent call last):
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] File "H:/aaa/
testsite/apache/handler.wsgi", line 13, in <module>
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] application
= loadapp('config:h:/aaa/testsite/development.ini')
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] File "C:\
\Python\\lib\\site-packages\\pastedeploy-1.5.0-py2.6.egg\\paste\\deploy
\\loadwsgi.py", line 247, in loadapp
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] return
loadobj(APP, uri, name=name, **kw)
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] File "C:\
\Python\\lib\\site-packages\\pastedeploy-1.5.0-py2.6.egg\\paste\\deploy
\\loadwsgi.py", line 271, in loadobj
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1]
global_conf=global_conf)
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] File "C:\
\Python\\lib\\site-packages\\pastedeploy-1.5.0-py2.6.egg\\paste\\deploy
\\loadwsgi.py", line 296, in loadcontext
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1]
global_conf=global_conf)
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] File "C:\
\Python\\lib\\site-packages\\pastedeploy-1.5.0-py2.6.egg\\paste\\deploy
\\loadwsgi.py", line 320, in _loadconfig
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] return
loader.get_context(object_type, name, global_conf)
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] File "C:\
\Python\\lib\\site-packages\\pastedeploy-1.5.0-py2.6.egg\\paste\\deploy
\\loadwsgi.py", line 454, in get_context
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] section)
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] File "C:\
\Python\\lib\\site-packages\\pastedeploy-1.5.0-py2.6.egg\\paste\\deploy
\\loadwsgi.py", line 476, in _context_from_use
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] object_type,
name=use, global_conf=global_conf)
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] File "C:\
\Python\\lib\\site-packages\\pastedeploy-1.5.0-py2.6.egg\\paste\\deploy
\\loadwsgi.py", line 406, in get_context
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1]
global_conf=global_conf)
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] File "C:\
\Python\\lib\\site-packages\\pastedeploy-1.5.0-py2.6.egg\\paste\\deploy
\\loadwsgi.py", line 296, in loadcontext
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1]
global_conf=global_conf)
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] File "C:\
\Python\\lib\\site-packages\\pastedeploy-1.5.0-py2.6.egg\\paste\\deploy
\\loadwsgi.py", line 328, in _loadegg
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] return
loader.get_context(object_type, name, global_conf)
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] File "C:\
\Python\\lib\\site-packages\\pastedeploy-1.5.0-py2.6.egg\\paste\\deploy
\\loadwsgi.py", line 620, in get_context
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] object_type,
name=name)
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] File "C:\
\Python\\lib\\site-packages\\pastedeploy-1.5.0-py2.6.egg\\paste\\deploy
\\loadwsgi.py", line 640, in find_egg_entry_point
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1]
pkg_resources.require(self.spec)
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] File "build\
\bdist.win32\\egg\\pkg_resources.py", line 654, in require
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] needed =
self.resolve(parse_requirements(requirements))
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] File "build\
\bdist.win32\\egg\\pkg_resources.py", line 552, in resolve
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1] raise
DistributionNotFound(req)
[Thu Feb 16 00:34:55 2012] [error] [client 127.0.0.1]
DistributionNotFound: testsite
My guess is that somehow the server is not loading the correct
packages as C:\\Python\\lib\\site-packages\\pastedeploy-1.5.0-py2.6.egg
\\paste\\deploy\\loadwsgi.py is the path to my global python install.
Running from the virtual env paster works.
Running the wsgi handler also works.
Reinstalled the virtual env from scratch - still didn't work. This is
the basic hello world app for testing.
Another piece of info...may help: when I installed the first time
without a virtual environment i made another test app then configured
the environment then ran it from apache and it worked. After that only
failed attempts.
Any help...ideas would be appreciated.
I am running win 7 x64. virtualenv created with py 2.6.6.