Ok, here it is the steps I followed...
on a new web2py instance version 1.95.1 (2011-04-25 15:04:14)
installed under mod_wsgi 3.3 and Apache/2.2.3 and python 2.6
I have downloaded and installed matplotlib-1.0.0
than under the welcome application I have installed plugin_matplotlib
but visiting http://127.0.0.1:8000/welcome/plugin_matplotlib/index
this is the traceback of the error I got
Traceback (most recent call last):
File "/data/www/meteoproject_all/web2py/gluon/restricted.py", line
181, in restricted
exec ccode in environment
File
"/data/www/meteoproject_all/web2py/applications/welcome/models/plugin_matplotlib.py",
line 5, in <module>
from matplotlib.backends.backend_agg import FigureCanvasAgg as
FigureCanvas
File
"/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_agg.py",
line 31, in <module>
from matplotlib.figure import Figure
File "/usr/lib64/python2.6/site-packages/matplotlib/figure.py", line
18, in <module>
from axes import Axes, SubplotBase, subplot_class_factory
File "/usr/lib64/python2.6/site-packages/matplotlib/axes.py", line
19, in <module>
import matplotlib.collections as mcoll
File "/usr/lib64/python2.6/site-packages/matplotlib/collections.py",
line 15, in <module>
import matplotlib.cbook as cbook
AttributeError: 'module' object has no attribute 'cbook'
thank you
cheers
Manuele
On 31/05/2011 15:55, Manuele Pesenti wrote:
Hi *,
old question still without answer... installing plugin_matplotlib inside
the welcome app under a web2py installation that runs under apache using
mod_wsgi I still got this:
AttributeError: 'module' object has no attribute 'cbook'
but the solution to load matplotlib and matplotlib.cbook before every
other matplotlib import it's not a solution... what's the correct way to
resolve it?
PS: please don't suggest not to use mod_wsgi... isn't there a real
solution?
thank you very mutch
Manuele