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
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 python2. 5/site- packages/ pylab.py" , line 1, in <module> python2. 5/site- packages/ matplotlib/ __init_ _.py", line 639, in <module> python2. 5/site- packages/ matplotlib/ __init_ _.py", line 562, in rc_params python2. 5/site- packages/ matplotlib/ __init_ _.py", line 517, in matplotlib_fname python2. 5/site- packages/ matplotlib/ __init_ _.py", line 207, in wrapper python2. 5/site- packages/ matplotlib/ __init_ _.py", line 447, in _get_data_ path_cached ms['datapath' ][0] = _get_data_path() python2. 5/site- packages/ matplotlib/ __init_ _.py", line 443, in _get_data_path
Traceback (most recent call last):
File "really_simple.py", line 1, in <module>
from pylab import *
File "/usr/lib/
from matplotlib.pylab import *
File "/usr/lib/
rcParams = rc_params()
File "/usr/lib/
fname = matplotlib_fname()
File "/usr/lib/
path = get_data_path() # guaranteed to exist or raise
File "/usr/lib/
ret = func(*args, **kwargs)
File "/usr/lib/
defaultPara
File "/usr/lib/
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.