Python trouble

Hi Sugree, a while ago I posted on assigning priorities here. Now I needed this feature urgently, so I tried using BTQueue from svn, just to be sure not to miss something. Unfortunately I updated my Python to 2.4.4 at the same time (my box is MacOSX 10.4, Python via MacPorts). Now I get the following errors (either w/ btq 0.1.4 or 0.1.3 489):
Traceback (most recent call last):
  File "/usr/local/lib/python2.4/site-packages/BitQueue/manager.py", line 1882, in mainloop
    self.cmdloop()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/local/lib/python2.4/site-packages/BitQueue/manager.py", line 1351, in onecmd
    ret = cmd.Cmd.onecmd(self,l)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/cmd.py", line 218, in onecmd
    return self.default(line)
  File "/usr/local/lib/python2.4/site-packages/BitQueue/manager.py", line 1819, in default
    res = self.manager.default(line)
  File "/usr/local/lib/python2.4/site-packages/BitQueue/xmlrpc.py", line 143, in __call__
    dict = self.__send(self.__name,(self.__id,)+args)
  File "/usr/local/lib/python2.4/site-packages/BitQueue/xmlrpc.py", line 184, in __request
    verbose=self.__verbose
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/xmlrpclib.py", line 1131, in request
    errcode, errmsg, headers = h.getreply()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/httplib.py", line 1137, in getreply
    response = self._conn.getresponse()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/httplib.py", line 866, in getresponse
    response.begin()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/httplib.py", line 336, in begin
    version, status, reason = self._read_status()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/httplib.py", line 294, in _read_status
    line = self.fp.readline()
  File "/usr/local/lib/python2.4/site-packages/BitQueue/timeoutsocket.py", line 381, in readline
    buf = self.recv(bufsize)
  File "/usr/local/lib/python2.4/site-packages/BitQueue/timeoutsocket.py", line 298, in recv
    raise Timeout("Recv timed out")
Timeout: Recv timed out
I have absolutely no idea debugging python - so please help ;-) Perhaps this is of interest: python bugs - perhaps ... I would like to stick w/ BTQ because I have similar plans like you using BTQ on Embedded Devices, but unlike you not on a "pre-build router" but on something like a Soekris or a WRAP-board (just for your info, perhaps one of these is of interest for you also). Many thanks in advance !

possible problems

There are so many possible problems that you should check them one by one.

  1. I'm not sure which mode you are running. If you are using daemon, you should try to run in scheduler mode instead. One thing I concern is that BTqueue was running or not.
  2. Local firewall or something like that. As far as I know Mac has its own internal firewall system. I'm not sure it is applied to loopback or not but it would be good to check it.
  3. Python Mac might not work really well. I'm not Mac expert but I would like to ask you to try python in fink.

Please let me know what you get.

Sugree, thank you very much

Sugree, thank you very much for your kind reply and your suggestions. I hoped that you are some kind of Pyth(on)ia that could predict from my error messages a solution ;-) The hints you gave I already checked carefully before starting spamming your forum; \1 I ran daemon mode, and BTQ was running (I checked with ps -x) \2 No, I checked before: no FW problem \3 It looks like a 2.4.4. MacPorts Python problem . . . it looks like there are currently more issues discussed on the MP mail-list. Here is what I did: I downloaded and compiled Python 2.5.1 from source (not MacPython). Step 2: compiling py-bsddb from SF by hand against my non standard path bsddb. But BTQ still complained about not finding _bsddb; symlinking my forementioned bsddb3 to a bsddb symlink did the trick. BTQ (latest svn) is up and running again ! Thanks for your input and making BTQ !

Post new comment