Hi, all.<br><br>I'm deploying a site with Grok and mod_wsgi (3.3) but Im getting a problem that I could solve.<br><br>I'm using a wsgi script generated with collective.recipe.modwsgi and the application is working fine with paster usging the deploy.ini profile that I'm using with the wsgi script.<br>
<br>The apache configuration looks like this.<br>===============================<br> WSGIDaemonProcess merlot user=zope group=zope threads=5<br> WSGIScriptAlias / /srv/grok/merlot/Merlot/parts/wsgi/wsgi<br><br> <Directory /srv/grok/merlot/Merlot><br>
WSGIProcessGroup merlot<br> WSGIPassAuthorization On<br> WSGIApplicationGroup %{GLOBAL}<br> Order deny,allow<br> Allow from all<br> </Directory><br><br><br>Here the apache log.<br>
==================<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] mod_wsgi (pid=31324): Target WSGI script '/srv/grok/merlot/Merlot/parts/wsgi/wsgi' cannot be loaded as Python module.<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] mod_wsgi (pid=31324): Exception occurred processing WSGI script '/srv/grok/merlot/Merlot/parts/wsgi/wsgi'.<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] Traceback (most recent call last):<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/parts/wsgi/wsgi", line 160, in <module><br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] application = loadapp("config:" + configfile)<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 203, in loadapp<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] return loadobj(APP, uri, name=name, **kw)<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 223, in loadobj<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] global_conf=global_conf)<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 247, in loadcontext<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] global_conf=global_conf)<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 270, in _loadconfig<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] return loader.get_context(object_type, name, global_conf)<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 397, in get_context<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] global_additions=global_additions)<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 492, in _pipeline_app_context<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] APP, pipeline[-1], global_conf)<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 401, in get_context<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] section)<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 423, in _context_from_use<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] object_type, name=use, global_conf=global_conf)<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 353, in get_context<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] global_conf=global_conf)<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 247, in loadcontext<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] global_conf=global_conf)<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 277, in _loadegg<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] return loader.get_context(object_type, name, global_conf)<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 553, in get_context<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] object_type, name=name)<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 579, in find_egg_entry_point<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] possible.append((entry.load(), protocol, <a href="http://entry.name">entry.name</a>))<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1954, in load<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] entry = __import__(self.module_name, globals(),globals(), ['__name__'])<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/grokcore.startup-1.1-py2.6.egg/grokcore/startup/__init__.py", line 15, in <module><br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] from grokcore.startup.startup import (application_factory,<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/grokcore.startup-1.1-py2.6.egg/grokcore/startup/startup.py", line 4, in <module><br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] import zope.app.wsgi<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/zope.app.wsgi-3.9.3-py2.6.egg/zope/app/wsgi/__init__.py", line 22, in <module><br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] import zope.processlifetime<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/zope.processlifetime-1.0-py2.6.egg/zope/processlifetime/__init__.py", line 16, in <module><br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] from zope.interface import Attribute<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/zope.interface-3.6.1-py2.6-linux-x86_64.egg/zope/interface/__init__.py", line 58, in <module><br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] _wire()<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/zope.interface-3.6.1-py2.6-linux-x86_64.egg/zope/interface/interface.py", line 805, in _wire<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] classImplements(Attribute, IAttribute)<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] File "/srv/grok/merlot/Merlot/eggs/zope.interface-3.6.1-py2.6-linux-x86_64.egg/zope/interface/declarations.py", line 447, in classImplements<br>
[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] spec = implementedBy(cls)<br>[Tue Jan 25 18:17:35 2011] [error] [client x.x.x.x] TypeError: zope.interface.declarations.Implements is not a type<br><br><span id="result_box" class="short_text" lang="en"><span title="Click for alternate translations" class="hps">Thanks</span> <span title="Click for alternate translations" class="hps">in advance.</span></span><br>
<br>nueces...<br>