Matplotlib and WSGI/mod_python not working on Apache.

Posted by Luiz C. on Stack Overflow See other posts from Stack Overflow or by Luiz C.
Published on 2010-04-01T15:07:49Z Indexed on 2010/04/10 4:43 UTC
Read the original article Hit count: 410

Filed under:
|
|
|

Everything works as supposed to on the Django development server. In Apache, the django app also works except when matplotlib is used. Here's the error I get:

No module named multiarray.

Exception Type: ImportError 
Exception Value: No module named multiarray 
Exception Location: /usr/share/pyshared/numpy/core/numerictypes.py in <module>, line 81 
Python Executable: /usr/bin/python 
Python Version: 2.6.4 

From the python shell, both statements work: import numpy.core.multiarray and import multiarray. Any ideas? Thanks

As I'm looking over the numpy files, I found the multiarray module, which has an extension of 'so'. My guess, is that mod_python is not reading these files.

© Stack Overflow or respective owner

Related posts about django

Related posts about mod-python