<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I figured out the problem:</div><div><br></div><div>In DebugServer.__init__(), the self.listen(hostAddress) fails (returns false). Also self.isListening() returns false. If I replace it with just self.listen(), it works. hostAddress.toString() returns <span class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: Courier; ">PyQt4.QtCore.QString(u'FE80:0:0:0:0:0:0:1')<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; ">. I also checked self.errorString() after it failed and it returns <span class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: Courier; ">PyQt4.QtCore.QString(u'The address is not available')<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; ">. It seems that hostAddress is somehow wrong. I checked the preferences of Eric and under General debugger settings, Network interface, "Only selected interface" is activated there and the lo0-interface is selected (that it the loopback-device under MacOSX). When I just switch to "All network interfaces" there, it also works. It seems that Eric takes somehow the wrong hostAddress out of it.</span></span></span></span></div><div><br></div><div>For now, it is not that important to bind Eric only on the loopback-device, I am mot of the time in a secure network anyway. But do you have idea how to fix that in future?</div><div><br></div><div>Regards,</div><div>Albert</div><div><br></div><div><br><div><div>Am 13.09.2008 um 15:43 schrieb Detlev Offenbach:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,<br><br>I don't have any Mac OS X around here, so eric4 is untested (at least by me) <br>on that platform. However, I will assist you in debugging the problem.<br><br>1) Please check in the debug client, which address and port it is given by the <br>debug server. Insert a print statement in the main() method and print <br>sys.argv.<br><br>2) You may change the debug server to passive mode using the configuration <br>dialog and connect the client manually tp port 42424 (the default).<br><br>3) If your system is using only IPv6, the call in line 960 may fail because <br>DebugAddress is assigned the localhost IP 127.0.0.1 (IPv4). It is defined on <br>line 11 in DebugProtocol.py. If you're using IPv6, try changing it to "::1".<br><br>Regards,<br>Detlev<br><br>On Samstag, 13. September 2008, Albert Zeyer wrote:<br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I am new to Eric but I like the IDE as far as I have explored it. I<br></blockquote><blockquote type="cite">though have some problems.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">My environment: Eric 4.2.1 (r2426) on MacOSX with Python 2.5.1.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The problem: The debugger stopped working. (I think it has worked at<br></blockquote><blockquote type="cite">the very beginning, at least I cannot remember that I have seen the<br></blockquote><blockquote type="cite">error message there.) The first thing after I start the IDE is the<br></blockquote><blockquote type="cite">following message in the Log-viewer:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Traceback (most recent call last):<br></blockquote><blockquote type="cite">File "/Library/Python/2.5/site-packages/eric4/DebugClients/Python/<br></blockquote><blockquote type="cite">DebugClient.py", line 38, in <module><br></blockquote><blockquote type="cite">debugClient.main()<br></blockquote><blockquote type="cite">File "/Library/Python/2.5/site-packages/eric4/DebugClients/Python/<br></blockquote><blockquote type="cite">DebugClientBase.py", line 1858, in main<br></blockquote><blockquote type="cite">self.connectDebugger(port, remoteAddress, redirect)<br></blockquote><blockquote type="cite">File "/Library/Python/2.5/site-packages/eric4/DebugClients/Python/<br></blockquote><blockquote type="cite">DebugClientBase.py", line 960, in connectDebugger<br></blockquote><blockquote type="cite">sock.connect((DebugAddress,port))<br></blockquote><blockquote type="cite">File "<string>", line 1, in connect<br></blockquote><blockquote type="cite">socket.error: (49, "Can't assign requested address")<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I also get the same message in the Shell:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">StdErr: Traceback (most recent call last):<br></blockquote><blockquote type="cite"> File "/Library/Python/2.5/site-packages/eric4/DebugClients/Python/<br></blockquote><blockquote type="cite">DebugClient.py", line 38, in <module><br></blockquote><blockquote type="cite"> debugClient.main()<br></blockquote><blockquote type="cite"> File "/Library/Python/2.5/site-packages/eric4/DebugClients/Python/<br></blockquote><blockquote type="cite">DebugClientBase.py", line 1858, in main<br></blockquote><blockquote type="cite"> self.connectDebugger(port, remoteAddress, redirect)<br></blockquote><blockquote type="cite"> File "/Library/Python/2.5/site-packages/eric4/DebugClients/Python/<br></blockquote><blockquote type="cite">DebugClientBase.py", line 960, in connectDebugger<br></blockquote><blockquote type="cite"> sock.connect((DebugAddress,port))<br></blockquote><blockquote type="cite"> File "<string>", line 1, in connect<br></blockquote><blockquote type="cite">socket.error: (49, "Can't assign requested address")<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This comes right after the start. But also when I try to debug any<br></blockquote><blockquote type="cite">script, I get this message again and the debugger also seems not to<br></blockquote><blockquote type="cite">work.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I browsed a bit through the code of Eric4 to understand the debugging<br></blockquote><blockquote type="cite">system. It seems that the IDE is starting a debug-server (the<br></blockquote><blockquote type="cite">DebugServer class) which is built into the IDE and then it starts an<br></blockquote><blockquote type="cite">external Python tool, the DebugClient, which connects over a TCP port<br></blockquote><blockquote type="cite">to the DebugServer. The DebugServer provides all debugging functions<br></blockquote><blockquote type="cite">and the DebugClient controls that.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I wondered now a bit about the message from DebugClient. "Can't assign<br></blockquote><blockquote type="cite">requested address" normally only appears if you used a invalid port<br></blockquote><blockquote type="cite">number, like 0. On all other ports, it should give the message<br></blockquote><blockquote type="cite">"Connection refused". I also tried that myself:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Macintosh:~ az$ python /Library/Python/2.5/site-packages/eric4/<br></blockquote><blockquote type="cite">DebugClients/Python/DebugClient.py 1<br></blockquote><blockquote type="cite">Traceback (most recent call last):<br></blockquote><blockquote type="cite"> File "/Library/Python/2.5/site-packages/eric4/DebugClients/Python/<br></blockquote><blockquote type="cite">DebugClient.py", line 38, in <module><br></blockquote><blockquote type="cite"> debugClient.main()<br></blockquote><blockquote type="cite"> File "/Library/Python/2.5/site-packages/eric4/DebugClients/Python/<br></blockquote><blockquote type="cite">DebugClientBase.py", line 1858, in main<br></blockquote><blockquote type="cite"> self.connectDebugger(port, remoteAddress, redirect)<br></blockquote><blockquote type="cite"> File "/Library/Python/2.5/site-packages/eric4/DebugClients/Python/<br></blockquote><blockquote type="cite">DebugClientBase.py", line 960, in connectDebugger<br></blockquote><blockquote type="cite"> sock.connect((DebugAddress,port))<br></blockquote><blockquote type="cite"> File "<string>", line 1, in connect<br></blockquote><blockquote type="cite">socket.error: (61, 'Connection refused')<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">And:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Macintosh:~ az$ python /Library/Python/2.5/site-packages/eric4/<br></blockquote><blockquote type="cite">DebugClients/Python/DebugClient.py 0<br></blockquote><blockquote type="cite">Traceback (most recent call last):<br></blockquote><blockquote type="cite"> File "/Library/Python/2.5/site-packages/eric4/DebugClients/Python/<br></blockquote><blockquote type="cite">DebugClient.py", line 38, in <module><br></blockquote><blockquote type="cite"> debugClient.main()<br></blockquote><blockquote type="cite"> File "/Library/Python/2.5/site-packages/eric4/DebugClients/Python/<br></blockquote><blockquote type="cite">DebugClientBase.py", line 1858, in main<br></blockquote><blockquote type="cite"> self.connectDebugger(port, remoteAddress, redirect)<br></blockquote><blockquote type="cite"> File "/Library/Python/2.5/site-packages/eric4/DebugClients/Python/<br></blockquote><blockquote type="cite">DebugClientBase.py", line 960, in connectDebugger<br></blockquote><blockquote type="cite"> sock.connect((DebugAddress,port))<br></blockquote><blockquote type="cite"> File "<string>", line 1, in connect<br></blockquote><blockquote type="cite">socket.error: (49, "Can't assign requested address")<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Then, to go further, I tried to figure out on which port the server<br></blockquote><blockquote type="cite">was listening. I browsed through the code and it seems that the server<br></blockquote><blockquote type="cite">just uses a random port (it does not specify that). I thought I<br></blockquote><blockquote type="cite">perhaps try out to connect to that port manually with the DebugClient.<br></blockquote><blockquote type="cite">But it seems that the server was not correctly started, because Python<br></blockquote><blockquote type="cite">has not opened any port:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Macintosh:~ az$ lsof -i -P | grep -i python<br></blockquote><blockquote type="cite">Python 24119 az 8u IPv6 0x3e524bc 0t0 TCP *:* (CLOSED)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Any suggestions?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks,<br></blockquote><blockquote type="cite">Albert<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Eric mailing list<br></blockquote><blockquote type="cite"><a href="mailto:Eric@riverbankcomputing.com">Eric@riverbankcomputing.com</a><br></blockquote><blockquote type="cite"><a href="http://www.riverbankcomputing.com/mailman/listinfo/eric">http://www.riverbankcomputing.com/mailman/listinfo/eric</a><br></blockquote><br><br><br>-- <br>Detlev Offenbach<br><a href="mailto:detlev@die-offenbachs.de">detlev@die-offenbachs.de</a><br></div></blockquote></div><br></div></body></html>