Page 1 of 1

[Plugin] - Windows matplolib issue

Posted: Fri Jul 04, 2008 4:59 pm
by souedet
Hello Denis,

I had a new issue while launching anatomist (stable version) on windows (computer is400043) but only with my own account (ns215310).
You can see the error message enclosed. It occurs when the matplotlib configuration directory is detected on a windows drive which is not writable (in my case it tries H: which is a network drive \\abbies\i2bm)
Do you think we must set a MPLCONFIGDIR variable in the anatomist.bat file ?

Have nice week-end
Nico

Re: [Plugin] - Windows matplolib issue

Posted: Fri Jul 04, 2008 5:10 pm
by souedet
My HOMEDRIVE is set to H: and HOMEPATH is to \ . Do you know if it is the default on windows account (It is quite amazing because this directory is not writable) ? I checked in the environment variables and I did not found these 2 variables (they must be set by the automatic script launched at loggin).

A workaround to this issue is to set a HOME variable to a writable directory.

Re: [Plugin] - Windows matplolib issue

Posted: Sat Jul 05, 2008 3:56 pm
by riviere
Hi,
I don't really know the official way to detect home directories on windows. In our libs (brainvisa, anatomist, c++ libs) we have some code to set this up that seems to work in "most" cases (I don't say "all" cases, actually I don't know if it always work). I know Python itself has homedir functions that are buggy at least with python 2.4 on windows (maybe they are used by matplotlib, hence your problems).
However I don't understand exactly what doesn't work after all: here H: is a samba-connected newtork drive, but doesn't actually hold your homedir, which is on another drive/server. So the variables HOMEDRIVE and HOMEDIR are wrong. The problem seems to be rather on the network/account setup on the server side. Call your sysadmin... :)
Setting MPLCONFIGDIR could be a solution, but... what should we set in it ?

Denis