ls -las /home/support/EDA_Binaries/python/2.6.5/lib/python2.6/site- packages
total 2160 4 drwxr-xr-x 3 root support 4096 2010-07-07 23:08 . 16 drwxr-xr-x 25 root support 16384 2010-07-07 22:55 .. 4 -rw-r--r-- 1 root support 287 2010-07-07 23:08 easy- install.pth 260 -rw-r--r-- 1 root support 261457 2010-07-07 23:07 Genshi-0.6- py2.6.egg 4 drwxr-xr-x 4 root support 4096 2010-07-07 23:07 Pygments-1.3.1-py2.6.egg 4 -rw-r--r-- 1 root support 119 2010-07-07 22:54 README 332 -r--r--r-- 1 root support 333447 2010-07-06 20:23 setuptools-0.6c11-py2.6.egg 4 -rw-r--r-- 1 root support 30 2010-07-07 23:07 setuptools.pth 1532 -rw-r--r-- 1 root support 1561345 2010-07-07 23:08 Trac-0.12- py2.6.egg I have no idea where pkg_resources is installed. If I run python -c "import pkg_resources", I get nothing on the stdout. So I guess it can find it. I only have the problem when running mod_wsgi. Thx for your help Graham. Eric On Jul 11, 1:16 am, Graham Dumpleton <graham.dumple...@gmail.com> wrote: > What is the output from running: > > ls -las /home/support/EDA_Binaries/python/2.6.5/lib/python2.6/site-packages > > Are all the files/directories readable to others and is pkg_resources > even installed in there? > > BTW, you shouldn't have needed to add that to sys.path using > site.addsitedir() because it things are working right it should be > there already. > > Graham > > On 11 July 2010 04:48, Eric <delage.e...@gmail.com> wrote: > > > linux-gate.so.1 => (0xffffe000) > > libpython2.6.so.1.0 => /home/support/EDA_Binaries/python/2.6.5/lib/ > > libpython2.6.so.1.0 (0xb75f9000) > > libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb75e1000) > > libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb75dc000) > > libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0xb75d8000) > > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb75b3000) > > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7464000) > > /lib/ld-linux.so.2 (0xb7793000) > > > On Jul 10, 7:44 am, Graham Dumpleton <graham.dumple...@gmail.com> > > wrote: > >> What does: > > >> ldd mod_wsgi.so > > >> output for the mod_wsgi.so installed into your Apache installation? > > >> On 10 July 2010 06:47, Eric <delage.e...@gmail.com> wrote: > > >> > Hi, > > >> > I compiled apache httpd 2.2.15, python 2.6.5, and mod_wsgi 3.2 (as > >> > well as a couple of dependencies) in non-standard locations using the > >> > following command: > > >> > For Apache HTTPD, > >> > ./configure \ > >> > --prefix=/home/support/EDA_Binaries/httpd/2.2.15-openssl-1.0.0a \ > >> > --with-included-apr \ > >> > --with-layout=Apache \ > >> > --enable-mods-shared="most ssl" \ > >> > --with-mpm=prefork \ > >> > --with-ssl=/home/support/EDA_Binaries/openssl/1.0.0a \ > >> > --with-berkeley-db=/home/support/EDA_Binaries/berkeley-db/4.4.20 \ > >> > --with-dbm=db44 > > >> > For Python, > >> > ./configure \ > >> > CPPFLAGS="-I/home/support/EDA_Binaries/sqlite/3.6.23.1/include" \ > >> > LDFLAGS="-L/home/support/EDA_Binaries/sqlite/3.6.23.1/lib" \ > >> > --prefix=/home/support/EDA_Binaries/python/2.6.5 \ > >> > --enable-shared > > >> > For mod_wsgi, > >> > ./configure \ > >> > --prefix=/home/support/EDA_Binaries/mod_wsgi/3.2-python-2.6.5 \ > >> > --with-apxs=/home/support/EDA_Binaries/httpd/2.2.15-openssl-1.0.0a/ > >> > bin/apxs \ > >> > --with-python=/home/support/EDA_Binaries/python/2.6.5/bin/ > >> > python2.6 > > >> > Everything compiled fine and I modified the httpd configuration to use > >> > trac following the instructions found on the mod_wsgi website: > > >> > WSGIScriptAlias /trac "/home/support/RD_Projects/A/TRACENV/cgi-bin/ > >> > trac.wsgi" > > >> > <Location /trac/login> > >> > AuthName "A" > >> > AuthType Basic > >> > Require valid-user > >> > </Location> > > >> > <Directory "/home/support/RD_Projects/A/TRACENV/cgi-bin"> > >> > WSGIApplicationGroup %{GLOBAL} > >> > Order deny,allow > >> > Allow from all > >> > </Directory> > > >> > The wsgi script is: > > >> > import site > >> > site.addsitedir('/home/support/EDA_Binaries/python/2.6.5/lib/python2.6/ > >> > site-packages') > > >> > import sys > >> > sys.stdout = sys.stderr > > >> > import os > >> > os.environ['TRAC_ENV'] = '/home/support/RD_Projects/Business- > >> > Unit.Algorithmic-Trading/TRACENV' > >> > os.environ['PYTHON_EGG_CACHE'] = '/home/support/RD_Projects/Business- > >> > Unit.Algorithmic-Trading/TRACENV/eggs' > > >> > import trac.web.main > >> > application = trac.web.main.dispatch_request > > >> > Unfortunately, when I point to the URL, I get an error message and I > >> > find the following in Apache logs: > > >> > mod_wsgi (pid=9940): Target WSGI script '/home/support/RD_Projects/A/ > >> > TRACENV/cgi-bin/trac.wsgi' cannot be loaded as Python module. > >> > mod_wsgi (pid=9940): Exception occurred processing WSGI script '/home/ > >> > support/RD_Projects/A/TRACENV/cgi-bin/trac.wsgi'. > >> > Traceback (most recent call last): > >> > File "/home/support/RD_Projects/A/TRACENV/cgi-bin/trac.wsgi", line 14, > >> > in <module> > >> > import trac.web.main > >> > File "build/bdist.linux-i686/egg/trac/__init__.py", line 14, in > >> > <module> > >> > ImportError: No module named pkg_resources > > >> > It looks like it cannot find the standard python modules which exist > >> > in the installation directory. Could someone help me to find what I do > >> > wrong, please? Thx. > > >> > Eric > > >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups "modwsgi" group. > >> > To post to this group, send email to modw...@googlegroups.com. > >> > To unsubscribe from this group, send email to > >> > modwsgi+unsubscr...@googlegroups.com. > >> > For more options, visit this group > >> > athttp://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 modw...@googlegroups.com. > > To unsubscribe from this group, send email to > > modwsgi+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://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 modw...@googlegroups.com. To unsubscribe from this group, send email to modwsgi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.