Shared Installtion

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

···

--
-----------------------------
Jean-Baptiste.Cazier@...15...

Department of Statistics
deCODE genetics Sturlugata,8
570 2993 101 Reykjavík

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

It worked gret

Thanks

Jean-Baptiste

···

On Wed, 17 Mar 2004 18:33:52 +0800 LUK ShunTim <shuntim.luk@...34...> wrote:

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

--
-----------------------------
Jean-Baptiste.Cazier@...15...

Department of Statistics
deCODE genetics Sturlugata,8
570 2993 101 Reykjavík