Re: [Matplotlib-users] Importing pylab in python CGI script causes immediate failure

2010-06-01 Thread Mark Boorer
Hi Sandro, Thanks for the tip. In checking the HTTP logs, I found that the apache user couldn't create a ".matplotlib" directory (as it had no home dir) so i used the environment variable MPLCONFIGDIR to point to somewhere meaningful, then I found that to "import pylab" I needed a DISPLAY variabl

Re: [Matplotlib-users] Importing pylab in python CGI script causes immediate failure

2010-05-31 Thread Sandro Tosi
Hello Mark, On Tue, Jun 1, 2010 at 08:17, Mark Boorer wrote: > And I have no idea why :( > I'm fairly new to HTML, and I can't seem to see any meaningful errors in > Firebug. Anyone have any experience with an error like this? This is not HTML, it's a CGi, so a script executed server-side; to kn

[Matplotlib-users] Importing pylab in python CGI script causes immediate failure

2010-05-31 Thread Mark Boorer
Hi, I'm having a problem when importing pylab in a python CGI script to generate some dynamic graphs for a web page. As soon as I import pylab, my script will fail, and I have no idea why. As an example, i can have 1x1 black png file, loaded from a script like thus: #!/usr/bin/env python # blac

Re: [Matplotlib-users] Importing pylab causes exception - any ideas?

2010-04-14 Thread Friedrich Romstedt
2010/4/14 Jon Moore : > Hi, > > Find attched log.txt generated when trying to run your script.  Any > thoughts? Sounds like a typo to me. Please give the new version of crashtest.py a try, it prints stack tracebacks for each import statement into the file, so we *should* be able to track it down

Re: [Matplotlib-users] Importing pylab causes exception - any ideas?

2010-04-14 Thread Jon Moore
Hi, Find attched log.txt generated when trying to run your script. Any thoughts? Regards Jon Friedrich Romstedt wrote: 2010/3/12 Jon Moore : I tried getting a colleague of mine to carryout your email but without any joy. Trying the import commands you suggested my colleague reported .

Re: [Matplotlib-users] Importing pylab causes exception - any ideas?

2010-03-02 Thread Friedrich Romstedt
Bringing this to the list and not to Jon alone ... 2010/3/1 Jon Moore : > I'm using the Python(x,y) distribution which comes with matplotlib for > Windows. My OS is Windows XP with all updates and service packs on an > AMD Athlon 2600+ PC with ATI Radeon 9600 graiphics card. > > Python will work f

[Matplotlib-users] Importing pylab causes exception - any ideas?

2010-03-01 Thread Jon Moore
Hi, Sorry to repost but I'm tearing my hair out with this one I'm using the Python(x,y) distribution which comes with matplotlib for Windows. My OS is Windows XP with all updates and service packs on an AMD Athlon 2600+ PC with ATI Radeon 9600 graiphics card. Python will work fine for anythi

[Matplotlib-users] Importing pylab causes exception

2010-02-23 Thread Jon Moore
Hi, I'm using the Python(x,y) distribution which comes with matplotlib for Windows. My OS is Windows XP with all updates and service packs on an AMD Athlon 2600+ PC with ATI Radeon 9600 graiphics card. Python will work fine for anything that doesn't import the pylab component (I can import matplo

Re: [Matplotlib-users] importing pylab??

2008-09-24 Thread Saber Mbarek
> locale -a locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_COLLATE to default locale: No such file or directory C POSIX Yes I think there is missing package, so i will look

Re: [Matplotlib-users] importing pylab??

2008-09-24 Thread Michael Droettboom
[EMAIL PROTECTED] is perfectly valid and works fine with Python 2.5.2 on my machine, so it would appear it's not a Python shortcoming. I suspect this is related to these lines: Saber Mbarek wrote: > locale: Cannot set LC_CTYPE to default locale: No such file or directory > locale: Cannot set LC_

Re: [Matplotlib-users] importing pylab??

2008-09-24 Thread Saber Mbarek
hier is the output of locale: locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory [EMAIL PROTECTED] LANGUAGE=de_DE:de:en_GB:en LC_

Re: [Matplotlib-users] importing pylab??

2008-09-24 Thread Michael Droettboom
It seems you have your locale set to something that Python doesn't support. Can you send the output of "locale" to this list? For example, I have: > locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" L

[Matplotlib-users] importing pylab??

2008-09-24 Thread Saber Mbarek
Hi, I installed scipy a few days ago on my laptop (with os linux debian), but while importing the pylab module from the python-matplotlib (version 0.98.1-1) I got the following error: - Pyt