From: stuartornum <st...@mu...> - 2008-08-18 15:14:59
|
Hi, Im getting the error: <type 'exceptions.RuntimeError'>: Failed to create /$dirstring$/common/.matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data The problem is I do not have write access to the MatPlotLib module sourse, so I cannot change the MPLCONFIGDIR variable, where ever it is..! So my question is can I set MPLCONFIGDIR to say "/home/user/dirs/" in my script somewhere, so that I know the that directory has read/write access. Thank you for your time. Regards -- View this message in context: http://www.nabble.com/Set-MPLCONFIGDIR-to-something-different-tp19033822p19033822.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Jeff W. <js...@fa...> - 2008-08-18 15:21:10
|
stuartornum wrote: > Hi, > > Im getting the error: > > <type 'exceptions.RuntimeError'>: Failed to create > /$dirstring$/common/.matplotlib; consider setting MPLCONFIGDIR to a writable > directory for matplotlib configuration data > > The problem is I do not have write access to the MatPlotLib module sourse, > so I cannot change the MPLCONFIGDIR variable, where ever it is..! > > So my question is can I set MPLCONFIGDIR to say "/home/user/dirs/" in my > script somewhere, so that I know the that directory has read/write access. > > Thank you for your time. > > Regards > Stuart: Why are you setting the MPLCONFIGDIR environment variable? By default, the configuration file goes in $HOME/.matplotlib, which is usually just fine. Typically $MPLCONFIGDIR is used to override this in special situations, for example when running matplotlib in a web application. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |
From: stuartornum <st...@mu...> - 2008-08-18 15:25:53
|
Hi Jeff, Sorry I should have explained more. I am running a web app also I currently working for a very large organisation so the infrastructure is quite different to your average home / signle server setup. Thank you. -- View this message in context: http://www.nabble.com/Set-MPLCONFIGDIR-to-something-different-tp19033822p19034026.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Brent P. <bpe...@gm...> - 2008-08-18 19:55:05
|
On Mon, Aug 18, 2008 at 8:25 AM, stuartornum <st...@mu...> wrote: > > Hi Jeff, > > Sorry I should have explained more. I am running a web app also I currently > working for a very large organisation so the infrastructure is quite > different to your average home / signle server setup. > > Thank you. > -- > View this message in context: http://www.nabble.com/Set-MPLCONFIGDIR-to-something-different-tp19033822p19034026.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > i think before importing matplotlib, you can do: os.environ['HOME'] = "/some/path" |
From: Jeff W. <js...@fa...> - 2008-08-18 15:59:50
|
stuartornum wrote: > Hi Jeff, > > Sorry I should have explained more. I am running a web app also I currently > working for a very large organisation so the infrastructure is quite > different to your average home / signle server setup. > > Thank you. > Stuart: I don't think setting it in your script will have any effect. If MPLCONFIGDIR is unset, it should still work, since mpl will look in the web server's home directory. If you want to set MPLCONFIGDIR, it has to be done in the web server environment to have any effect. However, I'm certainly no expert on running mpl in web apps. Have you tried searching the list archives for "MPLCONFIGDIR", or "web app"? -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |
From: Warren W. <war...@gm...> - 2008-08-18 20:42:23
|
I meant to send this to the list, not just to Brent... ---------- Forwarded message ---------- From: Warren Weckesser <war...@gm...> Date: Mon, Aug 18, 2008 at 4:03 PM Subject: Re: [Matplotlib-users] Set MPLCONFIGDIR to something different To: Brent Pedersen <bpe...@gm...> Hi, On Mon, Aug 18, 2008 at 3:55 PM, Brent Pedersen <bpe...@gm...> wrote: > On Mon, Aug 18, 2008 at 8:25 AM, stuartornum <st...@mu...> wrote: > > > > Hi Jeff, > > > > Sorry I should have explained more. I am running a web app also I > currently > > working for a very large organisation so the infrastructure is quite > > different to your average home / signle server setup. > > > > Thank you.<https://lists.sourceforge.net/lists/listinfo/matplotlib-users> > > > > i think before importing matplotlib, you can do: > os.environ['HOME'] = "/some/path" > > I do that on my server, e.g. my python CGI scripts do os.environ['HOME'] = '/var/www/tmp' before importing anything from matplotlib. Seems to work fine. This is explained in a FAQ or doc or tutorial somewhere. Warren |
From: Lisa T. <lt...@uc...> - 2008-08-18 22:26:39
|
I've installed the Enthought Python Distribution for Mac OS on my MacOS 10.4 Intel machine. when i try to install basemap-0.99.1 I get this error: gcc: unrecognized option '-no-cpp-precomp' cc1: error: unrecognized command line option "-mno-fused-madd" cc1: error: unrecognized command line option "-arch" cc1: error: unrecognized command line option "-arch" cc1: error: unrecognized command line option "-Wno-long-double" error: Command "gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Isrc -I/Library/ Frameworks/Python.framework/Versions/4.0.30001/lib/python2.5/site- packages/numpy-1.1.1.0001-py2.5-macosx-10.3-fat.egg/numpy/core/ include -I/Library/Frameworks/Python.framework/Versions/4.0.30001/ include/python2.5 -c src/PJ_gn_sinu.c -o build/temp.macosx-10.3- i386-2.5/src/PJ_gn_sinu.o" failed with exit status 1 Any ideas? lisa tauxe |