From: Lionel R. <lro...@li...> - 2006-05-02 08:00:58
|
Hi all, some students in our organisation sent me a problem with matplotlib and mod_python, a simple script generates a plot of temp/pressure, all works fine if they run it from the command-line, but if they use it from a apache web server they receive this : ---------------------------------------------------- Mod_python error: "PythonHandler mod_python.publisher" Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "/usr/lib/python2.3/site-packages/mod_python/publisher.py", line 136, in handler result = util.apply_fs_data(object, req.form, req=req) File "/usr/lib/python2.3/site-packages/mod_python/util.py", line 361, in apply_fs_data return object(**args) File "/var/www/syrso_v2/tests/essai.py", line 11, in index AttributeError: 'module' object has no attribute 'use' --------------------------------------------------------- where the line 11 is : matplotlib.use('Agg') just after a import matplotlib! Thanks for any help -- Lionel Roubeyrie - lro...@li... LIMAIR http://www.limair.asso.fr |