Comment 18 for bug 195772

Revision history for this message
wegfwe432 (tr76) wrote :

Thank you very much for your responses.

I installed Rolf's python-matplotlib-data and python-matplotlib-doc packages and Benjamin's gutsy python-matplotlib. However, now I'm getting the following errors when I try to run Matplotlib scripts:

me@my-computer:~$ python really_simple.py
Traceback (most recent call last):
  File "really_simple.py", line 1, in <module>
    from pylab import *
  File "/usr/lib/python2.5/site-packages/pylab.py", line 1, in <module>
    from matplotlib.pylab import *
  File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 639, in <module>
    rcParams = rc_params()
  File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 562, in rc_params
    fname = matplotlib_fname()
  File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 517, in matplotlib_fname
    path = get_data_path() # guaranteed to exist or raise
  File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 207, in wrapper
    ret = func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 447, in _get_data_path_cached
    defaultParams['datapath'][0] = _get_data_path()
  File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 443, in _get_data_path
    raise RuntimeError('Could not find the matplotlib data files')
RuntimeError: Could not find the matplotlib data files

The script that I'm running is:

from pylab import *
plot([1,2,3])
savefig('test')

Does anyone see where the problem is?

Thanks.