Internal Server Error 500 on my server due to DistributionNotFound who_ldap>=3.2.2

140 views Asked by At

I'm trying to run a Turbogears2 application on WSGI mod under Apache 2.4.25:

My virtualhost seems to be ok: /etc/apache2/sites-available/site.conf

<VirtualHost *:80>

        ServerName www.site.com
        #ServerAdmin "Charlie ROOT"

        # ISTC is the only application on this server, thus will be served from /
        WSGIScriptAlias / /usr/local/lib/python2.7/dist-packages/site.egg/apache/app.wsgi

        # Have apache serving static content directly (not through WSGI)
        Alias /img /usr/local/lib/python2.7/dist-packages/site.egg/ehp/public/img
        Alias /css /usr/local/lib/python2.7/dist-packages/site.egg/ehp/public/css
        Alias /js /usr/local/lib/python2.7/dist-packages/site.egg/ehp/public/js

        # Execution is "daemon mode"
        WSGIProcessGroup www.site.com
        WSGIDaemonProcess www.site.com user=www-data group=www-data threads=4 python-path=/usr/local/lib/python2.7/dist-packages

My file /etc/apache2/apache.conf seems to cointain rigth policy too :

<Directory / >
        Require all granted
</Directory>

So this give me an Internal Server Error ...

I checked Apache var/log/error.log :

mod_wsgi (pid=15064): Target WSGI script '/usr/local/lib/python2.7/dist-packages/site.egg/apache/app.wsgi' cannot be loaded as Python module

mod_wsgi (pid=15064): Exception occurred processing WSGI script '/usr/local/lib/python2.7/dist-packages/site.egg/apache/app.wsgi'.

Traceback (most recent call last):
.
................
........................................
.......................................
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 849, in resolve
         raise DistributionNotFound(req, requirers)
DistributionNotFound: The 'who_ldap>=3.2.2' distribution was not found and is required by site

I just reinstall "who_ldap-3.2.2.tar.gz" module successfully so i don't understand ... Is it a python path problem ? How to correct it ?

0

There are 0 answers