From: LUK S. <shu...@po...> - 2004-03-17 10:31:39
|
Jean-Baptiste Cazier wrote: > Sæl ! > > > I am trying to keep up with the versions of matplotlib by sucessively installing them. > However I have to install it on many workstations that share folders over the network > > I would like to be able to install matplotlib into such a folder to avoid installing it every time on each machine, but only once > It works fine with Numeric and other packages, but not with matplotlib: > > - I install matplotlib on my own workstation. > - I copied recursively the folder /usr/lib/python2.2/site-packages/matplotlib into /home/stat/Pygtk/matplotlib > - And then in my program I have added the location of the library to my path: > sys.path.append("/home/stat/Pygtk/matplotlib") > > But I get the error message > [lws11] ~/devel/novi $ novi.py -m map mixed.test.header.out > Traceback (most recent call last): > File "./novi.py", line 19, in ? > import matplotlib.matlab as Plot > File "/home/stat/Pygtk/matplotlib/__init__.py", line 225, in ? > defaultParams = { > File "/home/stat/Pygtk/matplotlib/__init__.py", line 154, in get_data_path > raise RuntimeError('Could not find the matplotlib data files') > RuntimeError: Could not find the matplotlib data files > > > Which other folder do I need to install or set a path to ? > > Thanks > > Kveðja > > Jean-Baptiste > Hello, You may have to set the MATPLOTLIBDATA environmental variable to where you store the data (fonts etc) if you install in a non-default location. Regards, ST |