Python-spe-users digest, Vol 1 #63 - 1 msg
python-spe-users-request-tdrK/[email protected] Mon, 16 Jan 2006 12:00:17 +0100
| Newsgroups | gmane.comp.python.spe.user |
|---|---|
| Message-ID | <[email protected]> |
Send Python-spe-users mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://lists.berlios.de/mailman/listinfo/python-spe-users or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of Python-spe-users digest..." _______________________________________________ http://pythonide.stani.be http://pythonide.stani.be/manual/html/manual.html http://pythonide.stani.be/blog/sm_donate _______________________________________________ Today's Topics: 1. Re: troubles with SPE (SPE Stani's Python Editor) --__--__-- Message: 1 Date: Sun, 15 Jan 2006 20:37:23 +0100 From: "SPE Stani's Python Editor" <[email protected]> To: python-spe-users-tdrK/[email protected] Subject: Re: [spe-users] troubles with SPE Reply-To: [email protected] ------=_Part_20979_30870992.1137353843742 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 12/30/05, [email protected] <[email protected] > wrote: > > http://pythonide.stani.be > http://pythonide.stani.be/manual/html/manual.html > http://pythonide.stani.be/blog/sm_donate > -- > > > Folks, > I'm a brand new user of SPE (at least, a wannaba one). My work relies > heavily > on matplotlib. In particular, I draw a lot of pictures, using the wxGTK > backend. However, I have problems running scripts in spe, or using spe > interactively. Here are some basic specs, first: > > [GCC 3.4.3 20041125 (Gentoo 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)] on an AMD6= 4 > machine > SPE v0.8.1.c . > wxpython-2.6.1.0 +gtk +gtk2 +opengl +unicode > wxGTK-2.6.1 -debug -doc -gnome +gtk2 -joystick +odbc +opengl +sdl +unicod= e > +wxgtk1 > matplotlib 0.82 > > When opening SPE, I get that message in bash: > >>> (python:9817): Gdk-CRITICAL **: gdk_draw_drawable: assertion `src != =3D > NULL' > failed > > But the window loads fine. I also see this messages. I have no idea if they are important. Then, I create a new file, copy-paste the tutorial code and try to run (by > pressing F9, or Shift+F9, or ctrl+shift+F9). I don't get any feedback in > the > shell window (and yes, I have selected the 'redirect output to shell'. I > got > the following message from bash, though: > > >>> sh: -c: line 0: unexpected EOF while looking for matching `'' > >>> sh: -c: line 1: syntax error: unexpected end of file This option (F9 etc..) lets you run code in an external terminal, not insid= e SPE. If you want to execute in the shell, use the Edit>Execute in shell, as you did later. Executing the code in shell loads the script OK, but doesn't recognze the > 'displayConstants' and 'doSum' functions (eg, I get that: > >>> File "<input>", line 1, in ? > >>> NameError: name 'doSum' is not defined > ). > The class is loaded properly, though, and I can access the hello() method= . The latest version of SPE 0.8.1.d fixed some issues with executing in the shell. At last, I had the following: > >>> from pylab import * > >>> x=3Darange(10) > >>> plot(x,x) > > which works when executed in shell, but > >>> show() > crashes spe. (the wxgtk window is created, it seems, but then it crashes)= . DO THIS NEVER!!! You can not run another gui framework in SPE. You have to run it externally. If you want to do some introspection use, run with winpd= b and then you can attach the debugger at any moment to check up program flow or variables. I am repeating the manual here :-( I guess it's not SPE-cific pb, but more of a wxGTK one. I have no idea how > to > fix them, nore even where to start. I guess I answered your questions. Stani <http://pythonide.stani.be/manual/html/manual.html> ------=_Part_20979_30870992.1137353843742 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 12/30/05, <b class=3D"gmail_sendername"><a href=3D"mailto:pgmdevlist@mai= lcan.com" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,eve= nt,this)">[email protected]</a></b> <<a href=3D"mailto:pgmdevlist@m= ailcan.com" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,e= vent,this)"> [email protected]</a> > wrote:<div><span class=3D"gmail_quote"></span><blockquote class=3D"gma= il_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0= pt 0pt 0.8ex; padding-left: 1ex;"><a href=3D"http://pythonide.stani.be" tar= get=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,this)"> http://pythonide.stani.be</a><br><a href=3D"http://pythonide.stani.be/manua= l/html/manual.html" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(= window,event,this)"> http://pythonide.stani.be/manual/html/manual.html</a><br><a href=3D"http://= pythonide.stani.be/blog/sm_donate" target=3D"_blank" onclick=3D"return top.= js.OpenExtLink(window,event,this)">http://pythonide.stani.be/blog/sm_donate= </a> <br>--<br><br><br>Folks,<br>I'm a brand new user of SPE (at least, a wannab= a one). My work relies heavily <br>on matplotlib. In particular, I draw a lot of pictures, using the wxGTK= <br>backend. However, I have problems running scripts in spe, or using spe<= br>interactively. Here are some basic specs, first:<br><br>[GCC 3.4.3 20041= 125 (Gentoo=20 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)] on an AMD64<br>machine<br>SPE v0.8.1.c .= <br>wxpython-2.6.1.0 +gtk +gtk2 +opengl +unicode<br>wxGTK-2.6.1 -debug -doc= -gnome +gtk2 -joystick +odbc +opengl +sdl +unicode<br>+wxgtk1<br>matplotli= b=20 0.82<br><br>When opening SPE, I get that message in bash:<br>>>> (= python:9817): Gdk-CRITICAL **: gdk_draw_drawable: assertion `src !=3D NULL'= <br>failed<br><br>But the window loads fine.</blockquote><div><br> I also see this messages. I have no idea if they are important. <br> </div><br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid= rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Then, I= create a new file, copy-paste the tutorial code and try to run (by <br>pressing F9, or Shift+F9, or ctrl+shift+F9). I don't get any feedback i= n the<br>shell window (and yes, I have selected the 'redirect output to she= ll'. I got<br>the following message from bash, though:<br><br>>>> = sh: -c: line 0: unexpected EOF while looking for matching `'' <br>>>> sh: -c: line 1: syntax error: unexpected end of file</bloc= kquote><div><br> This option (F9 etc..) lets you run code in an external terminal, not inside SPE. If you want to execute in the shell, use the Edit>Execute in shell, as you did later.<br> </div><br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid= rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Executi= ng the code in shell loads the script OK, but doesn't recognze the<br>'disp= layConstants' and 'doSum' functions (eg, I get that: <br>>>> File "<input>", line 1, in ? <br>>>> NameError: name 'doSum' is not defined<br>).<br>The class = is loaded properly, though, and I can access the hello() method.</blockquot= e><div><br> The latest version of SPE 0.8.1.d fixed some issues with executing in= the shell. <br> </div><br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid= rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">At last= , I had the following:<br>>>> from pylab import *<br>>>> = x=3Darange(10) <br>>>> plot(x,x)<br><br>which works when executed in shell, but<b= r>>>> show()<br>crashes spe. (the wxgtk window is created, it seem= s, but then it crashes).</blockquote><div><br> DO THIS NEVER!!! You can not run another gui framework in SPE. You have to run it externally. If you want to do some introspection use, run with winpdb and then you can attach the debugger at any moment to check up program flow or variables. I am repeating the manual here :-(<br> </div><br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid= rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I guess= it's not SPE-cific pb, but more of a wxGTK one. I have no idea how to <br>fix them, nore even where to start.</blockquote><div><br> I guess I answered your questions.<br> <br> Stani</div></div><a href=3D"http://pythonide.stani.be/manual/html/manual.ht= ml" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,thi= s)"></a> ------=_Part_20979_30870992.1137353843742-- --__--__-- _______________________________________________ Python-spe-users mailing list [email protected] http://lists.berlios.de/mailman/listinfo/python-spe-users End of Python-spe-users Digest