[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-12-13 Thread R. David Murray
R. David Murray added the comment: Ezio, the original problem this ticket was opened for appears to be solved, so I'm going to close it. If you still want to work on the thread exception issue, please open a new ticket referencing this one. -- nosy: +r.david.murray resolution: -> fixe

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-09-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Ok, this means that the exception is raised after the finally, when the thread is exiting. Now, at this point the process is exiting and therefore we have trouble printing the exception. (this is probably also the cause of the exception in the first

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-09-12 Thread Ezio Melotti
Ezio Melotti added the comment: I fixed the machine and tried the file that you uploaded, but nothing changed. This is what I used (traceback.print_exc() prints to stderr, so the traceback should be visible): $ while ./python Lib/test/regrtest.py -v test_docxmlrpc.py; do :; done > /dev/null U

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-08-27 Thread Ezio Melotti
Ezio Melotti added the comment: Not yet, the machine I was using to work on this is currently broken and I couldn't test the new test_docxmlrpc yet. Once I've fixed the machine and tried it I'll let you know. -- ___ Python tracker

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-08-24 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Any news on this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: No, sorry. You have just introduced the race condition by putting a print after the evt.set(). Setting the event causes the main thread to exit python and so anything after that line will likely not work. In fact, this is probably the reason why we

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Ah, so this is an interpreter shutdown issue, it seems. Something is causing this thread to not exit until the application exits and that can cause all sorts of weird race conditions. I wonder why that is happening. There must be an issue with test_v

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-22 Thread Ezio Melotti
Ezio Melotti added the comment: I tried to remove the first two prints (I reverted the file and the only difference with the original was the print after evt.set() (that here didn't print anything)) and I got something better: $ ./python Lib/test/regrtest.py -v test_docxmlrpc test_docxmlrpc tes

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-22 Thread Ezio Melotti
Ezio Melotti added the comment: I tried that too, with no results. However using advanced debugging techniques I found something new. I added 3 prints in the finally, one before serv.server_close(), one after, and the last at the end, after evt.set(). The first two works, the third one sometime

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I can't reproduce this, no. I only have access to a windows machine and you appear to have a custom build (no zlib). I need your help to get the error message, so you need to try harder. (there are probably at least two problems, one causing an exe

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-21 Thread Ezio Melotti
Ezio Melotti added the comment: Same message in the terminal and nothing in the file. Can you reproduce it if you run the test several times? Some times I have to run "./python Lib/test/regrtest.py -v test_docxmlrpc" 15-20 or even more times before the message appears. --

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Well, I think the only way to move forward with this is to try to figure out what the actual error is. Something is wrong in printing it out to stderr, and it would be helpful to understand why it is not being output. Perhaps this is some buffering

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-21 Thread Ezio Melotti
Ezio Melotti added the comment: sys.stderr looks ok, I tried what you said and I also tried to put some "assert sys.stderr == sys.__stderr__" here and there and nothing changed. I commented out the tests one by one and I found out that the first test alone (test_valid_get_response) is enough to

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I found one problem in test_docxmlrpc.py, a missing "import socket" at the top (for the socket.timeout exception handler). Please add that, and see what happens. But there seems to be a problem with the error handing in your build. probably, sys.stde

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-19 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks, now all the tests pass. However I had intermittent failures (with a really useful error message) on test_docxmlrpc: $ ./python Lib/test/regrtest.py -v test_docxmlrpc test_docxmlrpc test_autolink_dotted_methods (test.test_docxmlrpc.DocXMLRPCHTTPGETServer)

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: submitted revision 74098 and revision 74099 which should fix your issue. Oh, and revision 74100 and revision 74101 as well (insufficient testing on my part, tsk. tsk.) -- ___ Python tracker

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Kristján, zlib is only built when the required development headers (.h files for the zlib library) are available. -- nosy: +pitrou ___ Python tracker __

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-18 Thread Ezio Melotti
Ezio Melotti added the comment: I don't know why it's not installed here, but I didn't remove it intentionally. "here" is a Linux machine with Ubuntu 8.04.3 (hardy) LTS. One reason might be that I just have a limited number of program installed and zlib is probably a dependency of some popular p

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-18 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I thought zlib was a builtin module? Why isn't it available? -- ___ Python tracker ___ ___

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-16 Thread Ezio Melotti
New submission from Ezio Melotti : I'm working on #6026 and I noticed that the patch for #6267 introduced an "import gzip" in Lib/xmlrpclib.py in r73638. gzip tries to import zlib, and if it's not available the import fails. This led to 3 new tests failures in the trunk: test_xmlrpc, test_docxmlr