On Wednesday, 18 January 2012, Tamer Higazi <[email protected]> wrote: > Hi people! > I followed the pyramid guide to run an pyramid application as mod_wsgi > and I figure out that I have an error log. Apache tells me that the > "zope.deprecation" module can't be loaded. But the library is there: > > tamer@office /storage/modwsgi/env/lib/python2.7/site-packages $ ls -lA > | grep depre > > drwxr-xr-x 4 tamer tamer 4096 17. Jan 20:11 zope.deprecation-3.5.0- > py2.7.egg
Try setting PYTHON_EGG_CACHE to writable location in WSGI script file. import os os.environ['PYTHON_EGG_CACHE'] = '/some/path' Could be that some other required package is a compressed egg and it is failing to unpack. When this occurs sometimes it doesn't show the real error and you get a problem with higher level import like you are. Other than that, from command line Python, import zope.deprecation and print out __file__ attribute of module to make sure where it is coming from. Graham > What I figured out now is the follwing, that If I use the system > python interpreter I get exactly the same error import mesage on the > screen. > > If I use the python executable from the virtual env, it does it all > right and no error is being displayed on the screen. > > > Now the big question has it somehting todo that mod_wsgi uses the > global python interpreter?! Because, whatever I do, and I did all the > the variants, even I followed the virtualenv guide, I see always in > the apache log the same error import message. > > > Apache error_log: > http://pastebin.com/raw.php?i=KswA2ZcT > > My Apache VHOST entry > http://pastebin.com/raw.php?i=feE5KnZR > > and my pyramid.wsgi content: > > from pyramid.paster import get_app > application = get_app('/storage/modwsgi/env/myapp/ > development.ini','main') > > > Any ideas?! I am not getting smart. For any support I would kindly > thank you. > > > Tamer > > -- > 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. > > -- 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.
