Matplotlib and WSGI/mod_python not working on Apache?

On Win32 I solved a similar problem (not being able to load pyd modules through ISAPI_WSGI (IIS)) by downgrading from py2.6.5 to py2.5. It seems like this might be a Python bug that has been re-introduced. See for example this discussion.

I think you're right. I have everything working on a windows machine with python 2.5. However, Ubuntu comes with python 2.6 and makes it very very hard to downgrade to python 2.5.On top of that, you can't install mod_python if your current python version is 2.5. – Luiz C. 2.5.0 at 16:58.

Problem solved. Here's what I did. First of all, before I was getting the import error: "No module named multiarray."

I was getting an error like this: ": Failed to create /some/dir/. Matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data" By adding the pyshared folder to the PythonPath variable, this error went away and I got the import error. So here's how I fixed it: Removed the pyshared folder from the PythonPath variable.

Before importing the matplotlib module, add these lines: import os os. Environ'HOME'='/some/writable/dir' Next, before import matplotlib. Pyplot or pylab, add these lines: import matplotlib matplotlib.

Use('Agg') # 'Agg' or whatever your backend is. This is documented here. That's is!

It's working on python2.5 for me now. But I believe it'll work on 2.6 as well.

On a linux system os. Environ'MPLCONFIGDIR'='/tmp' also works. – erikvw Oct 5 at 16:50.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions