From: Jean-Baptiste C. <Jea...@de...> - 2004-03-17 08:42:50
|
S=E6l ! I am trying to keep up with the versions of matplotlib by sucessively inst= alling them.=20 However I have to install it on many workstations that share folders over t= he network I would like to be able to install matplotlib into such a folder to avoid i= nstalling 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/matplo= tlib into /home/stat/Pygtk/matplotlib - And then in my program I have added the location of the library to my pa= th: 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 =3D { 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=F0ja Jean-Baptiste --=20 ----------------------------- Jea...@de... Department of Statistics deCODE genetics Sturlugata,8 570 2993 101 Reykjav=EDk |
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 |
From: Jean-Baptiste C. <Jea...@de...> - 2004-03-17 16:12:55
|
It worked gret Thanks Jean-Baptiste On Wed, 17 Mar 2004 18:33:52 +0800 LUK ShunTim <shu...@po...> wrote: > Jean-Baptiste Cazier wrote: > > S=E6l ! > >=20 > >=20 > > I am trying to keep up with the versions of matplotlib by sucessively = installing them.=20 > > However I have to install it on many workstations that share folders ov= er the network > >=20 > > I would like to be able to install matplotlib into such a folder to avo= id installing it every time on each machine, but only once > > It works fine with Numeric and other packages, but not with matplotlib: > >=20 > > - I install matplotlib on my own workstation. > > - I copied recursively the folder /usr/lib/python2.2/site-packages/ma= tplotlib into /home/stat/Pygtk/matplotlib > > - And then in my program I have added the location of the library to m= y path: > > sys.path.append("/home/stat/Pygtk/matplotlib") > >=20 > > 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 =3D { > > 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 > >=20 > >=20 > > Which other folder do I need to install or set a path to ? > >=20 > > Thanks > >=20 > > Kve=F0ja > >=20 > > Jean-Baptiste > >=20 >=20 > Hello, >=20 > You may have to set the MATPLOTLIBDATA environmental variable to where=20 > you store the data (fonts etc) if you install in a non-default location. >=20 > Regards, > ST --=20 ----------------------------- Jea...@de... Department of Statistics deCODE genetics Sturlugata,8 570 2993 101 Reykjav=EDk |