Yesterday, I emailed Graham (Dumpleton) about a problem I've been
having with matplotlib, django and mod_wsgi.  He suggested that the
issue was that my Python installation was built using the 64 bit
GNU C/C++ compiler, but that my system only has runtime libraries for
the 32 bit GNU C/C++ compiler installed.  I went back and checked it,
and discovered that I do, in fact, have the runtime libraries for the
64 bit GNU C/C++ compiler installed.

One oddity:  My sysadmin has installed software in weird places
(because he is afraid of letting a user have any control over his or
her system).  So, I am running my apache server in test mode as myself
(not root, not apache).  I have been meticulous about setting my PATH
and LD_LIBRARY_PATH environment variables (e.g. /usr/lib64 as well /
home/install-gcc-4.4.2/usr/local/lib64 is on LD_LIBRARY_PATH).  I am
wondering, however, if it is necessary to use mod_env to explicitly
set these paths in httpd.conf.  Perhaps apache is not inheriting my
environment?

The full text of the error reads:

[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130] mod_wsgi
(pid=15075): Exception occurred processing WSGI script '/home/www/
margins_profiler/margins_profiler.wsgi'.
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130] Traceback
(most recent call last):
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/Python-2.6.4/install/lib/python2.6/site-packages/django/core/
handlers/wsgi.py", line 241, in __call__
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]     response
= self.get_response(request)
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/Python-2.6.4/install/lib/python2.6/site-packages/django/core/
handlers/base.py", line 73, in get_response
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]     response
= middleware_method(request)
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/Python-2.6.4/install/lib/python2.6/site-packages/django/
middleware/common.py", line 56, in process_request
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]     if (not
_is_valid_path(request.path_info) and
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/Python-2.6.4/install/lib/python2.6/site-packages/django/
middleware/common.py", line 142, in _is_valid_path
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]
urlresolvers.resolve(path)
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/Python-2.6.4/install/lib/python2.6/site-packages/django/core/
urlresolvers.py", line 303, in resolve
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]     return
get_resolver(urlconf).resolve(path)
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/Python-2.6.4/install/lib/python2.6/site-packages/django/core/
urlresolvers.py", line 216, in resolve
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]     for
pattern in self.url_patterns:
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/Python-2.6.4/install/lib/python2.6/site-packages/django/core/
urlresolvers.py", line 245, in _get_url_patterns
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]     patterns
= getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/Python-2.6.4/install/lib/python2.6/site-packages/django/core/
urlresolvers.py", line 240, in _get_urlconf_module
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]
self._urlconf_module = import_module(self.urlconf_name)
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/Python-2.6.4/install/lib/python2.6/site-packages/django/utils/
importlib.py", line 35, in import_module
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]
__import__(name)
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/www/margins_profiler/margins_profiler/urls.py", line 6, in
<module>
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]     from
margins.forms import *
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/www/margins_profiler/margins_profiler/margins/forms.py", line 14,
in <module>
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]     from
napier import *
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/www/margins_profiler/margins_profiler/margins/napier.py", line 7,
in <module>
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]     import
matplotlib.pyplot as plt
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/Python-2.6.4/install/lib/python2.6/site-packages/matplotlib/
pyplot.py", line 6, in <module>
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]     from
matplotlib.figure import Figure, figaspect
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/Python-2.6.4/install/lib/python2.6/site-packages/matplotlib/
figure.py", line 16, in <module>
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]     import
artist
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/Python-2.6.4/install/lib/python2.6/site-packages/matplotlib/
artist.py", line 5, in <module>
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]     from
transforms import Bbox, IdentityTransform, TransformedBbox,
TransformedPath
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]   File "/
home/Python-2.6.4/install/lib/python2.6/site-packages/matplotlib/
transforms.py", line 34, in <module>
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]     from
matplotlib._path import affine_transform
[Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130]
ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not
found (required by /home/Python-2.6.4/install/lib/python2.6/site-
packages/matplotlib/_path.so)

Has anyone else run into a similar error?  Any advice would be
welcome!

Thanks,

Joann

-- 
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.

Reply via email to