<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Detlev,<br>
<meta name="qrichtext" content="1">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin: 12px 0px; text-indent: 0px;"><!--StartFragment--><small>The
debugged program raised the exception <span style="font-weight: 600;">unhandled
error</span><br>
"<span style="font-weight: 600;">(9, 'Bad file descriptor')</span>"<br>
File: <span style="font-weight: 600;">/usr/lib/python2.6/subprocess.py</span>,
Line: <span style="font-weight: 600;">1126</span></small></p>
<p style="margin: 12px 0px; text-indent: 0px;"><!--EndFragment--></p>
<br>
I confirm that this behavior is very inconvenient and was not present<br>
in previous releases 6 months ago ... eric-4.3.7 is the last working
normally.<br>
... so inconvenient that I had to move to Wing IDE as I am<br>
unable to run any application with an os fork without a crash of the<br>
application itself or a crash of eric.<br>
<br>
Serge.<br>
<br>
<br>
On 02/07/2010 10:03 PM, David Arnold wrote:
<blockquote
cite="mid:58B434E6-063F-45E8-A226-C4D68D3F71B8@suddenlink.net"
type="cite">
<pre wrap="">
Detlev,
OK. I tried selecting the parent process and that gave another popup with this error:
The debugged program raised the exception unhandled error
"(9, 'Bad file descriptor')"
File: /Library/Frameworks/Python.framework/Versions/6.0.0/lib/python2.6/subprocess.py, Line: 1126
Break here?
When I select the child process, nothing happens, not matplotlib figure window is available.
When I run it from the command line in a terminal window, it works fine.
Here is my code again:
import matplotlib as mpl
import matplotlib.pyplot as plt
mpl.rcParams['text.usetex']=True
import numpy as np
x=np.arange(0, 5, 0.01)
y=[np.sin(2*np.pi*xx)*np.exp(-xx) for xx in x]
plt.plot(x, y)
plt.show()
On Feb 7, 2010, at 2:31 AM, detlev wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Samstag, 6. Februar 2010, David Arnold wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I'm trying this:
import matplotlib as mpl
import matplotlib.pyplot as plt
mpl.rcParams['text.usetex']=True
import numpy as np
x=np.arange(0, 5, 0.01)
y=[np.sin(2*np.pi*xx)*np.exp(-xx) for xx in x]
plt.plot(x, y)
plt.show()
Running in Eric4 a popup asks me to select a fork branch to follow. I don't
understand this.
</pre>
</blockquote>
<pre wrap="">
That just means, that eric detectedan os.fork() call and asks you, which path
to follow. Just select parent or child.
</pre>
<blockquote type="cite">
<pre wrap="">
However, running the file from the terminal works just fine.
D.
_______________________________________________
Eric mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Eric@riverbankcomputing.com">Eric@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/eric">http://www.riverbankcomputing.com/mailman/listinfo/eric</a>
</pre>
</blockquote>
<pre wrap="">
Regards,
Detlev
--
Detlev Offenbach
<a class="moz-txt-link-abbreviated" href="mailto:detlev@die-offenbachs.de">detlev@die-offenbachs.de</a>
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
Eric mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Eric@riverbankcomputing.com">Eric@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/eric">http://www.riverbankcomputing.com/mailman/listinfo/eric</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Criticism is something we can avoid easily by saying nothing, doing nothing, and being nothing
-- Aristotle
--------------------------
Serge Montagnac
<a class="moz-txt-link-freetext" href="http://www.obs-psr.com">http://www.obs-psr.com</a>
<a class="moz-txt-link-abbreviated" href="mailto:obs-psr@orange.fr">obs-psr@orange.fr</a>
--------------------------
</pre>
</body>
</html>