Issue9918
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2010-09-22 08:20 by ingemar, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (4) | |||
---|---|---|---|
msg117128 - (view) | Author: ingemar (ingemar) | Date: 2010-09-22 08:19 | |
I am using Kubuntu 10.4 on a no-brand box with a 64-bit CPU. I use my own download and install of Python 3.1, SIP and PyQt. The default download directory as set up by the Kubuntu install is /home/ingemar/Hämtningar, where "Hämtningar" is Swedish and corresponds to "Download". This is where the download of Python-3.1.2.tar.bz2 gets stored by default. And this is where I let Krusader store the Python-3.1.2 folder that it pulls out of the bz2. So I step into that folder and run ./configure, make, make test, -- whoops, two tests fail: ----------------------------------------------------------------------------------------------------- .... test_cmd test_cmd_line Warning: os.environ was modified by test_cmd_line test test_cmd_line failed -- Traceback (most recent call last): File "/home/ingemar/Hämtningar/Python-3.1.2/Lib/test/test_cmd_line.py", line 181, in test_large_PYTHONPATH self.assertTrue(path1.encode('ascii') in stdout) AssertionError: False is not True test_cmd_line_script test_code .... .... test_xdrlib test_xml_etree test_xml_etree_c test_xmlrpc Traceback (most recent call last): File "/home/ingemar/Hämtningar/Python-3.1.2/Lib/xmlrpc/server.py", line 448, in do_POST size_remaining = int(self.headers["content-length"]) ValueError: invalid literal for int() with base 10: 'I am broken' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ingemar/Hämtningar/Python-3.1.2/Lib/socketserver.py", line 281, in _handle_request_noblock self.process_request(request, client_address) File "/home/ingemar/Hämtningar/Python-3.1.2/Lib/socketserver.py", line 307, in process_request self.finish_request(request, client_address) File "/home/ingemar/Hämtningar/Python-3.1.2/Lib/socketserver.py", line 320, in finish_request self.RequestHandlerClass(request, client_address, self) File "/home/ingemar/Hämtningar/Python-3.1.2/Lib/socketserver.py", line 614, in __init__ self.handle() File "/home/ingemar/Hämtningar/Python-3.1.2/Lib/http/server.py", line 352, in handle self.handle_one_request() File "/home/ingemar/Hämtningar/Python-3.1.2/Lib/http/server.py", line 346, in handle_one_request method() File "/home/ingemar/Hämtningar/Python-3.1.2/Lib/xmlrpc/server.py", line 472, in do_POST self.send_header("X-traceback", traceback.format_exc()) File "/home/ingemar/Hämtningar/Python-3.1.2/Lib/http/server.py", line 410, in send_header self.wfile.write(("%s: %s\r\n" % (keyword, value)).encode('ASCII', 'strict')) UnicodeEncodeError: 'ascii' codec can't encode character '\xe4' in position 71: ordinal not in range(128) test test_xmlrpc failed -- Traceback (most recent call last): File "/home/ingemar/Hämtningar/Python-3.1.2/Lib/test/test_xmlrpc.py", line 555, in test_fail_with_info p.pow(6,8) xmlrpc.client.ProtocolError: <ProtocolError for 127.0.0.1:46081/RPC2: 500 Internal Server Error> During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ingemar/Hämtningar/Python-3.1.2/Lib/test/test_xmlrpc.py", line 562, in test_fail_with_info self.assertTrue(e.headers.get("X-traceback") is not None) AssertionError: False is not True test_xmlrpc_net test_xmlrpc_net skipped -- Use of the `network' resource not enabled test_zipfile test_zipfile64 test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run test_zipimport test_zipimport_support test_zlib 312 tests OK. 2 tests failed: test_cmd_line test_xmlrpc 22 tests skipped: test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses test_kqueue test_nis test_ossaudiodev test_pep277 test_smtpnet test_socketserver test_startfile test_timeout test_tk test_ttk_guionly test_urllib2net test_urllibnet test_winreg test_winsound test_xmlrpc_net test_zipfile64 Those skips are all expected on linux2. make: *** [test] Fel 1 ... ----------------------------------------------------------------------------------------------------- Those two test don't like the Swedish dotted character "ä" in the folder name. I renamed the folder into pure ASCII and restarted: ./configure, make, make test, sudo make install. Everything worked as expected: ..... 314 tests OK. 22 tests skipped: ..... |
|||
msg117135 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2010-09-22 13:03 | |
I'm amazed you only got two failures. Victor has been doing a lot of work in 3.2 trying to make non-ascii paths work reliably. |
|||
msg117136 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2010-09-22 13:06 | |
oh, wait, victor's work is for undecodable non-ascii characters. I think flox did the work on decodable non-ascii characters, and that may well have gone into 3.1. |
|||
msg117137 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
Date: 2010-09-22 13:13 | |
See issue7606 and issue7605: both fixed in SVN. All is needed is a new 3.1.x release :) |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:06 | admin | set | github: 54127 |
2010-09-22 13:13:41 | pitrou | set | status: open -> closed versions: + Python 3.2 nosy: + pitrou messages: + msg117137 resolution: out of date |
2010-09-22 13:06:55 | r.david.murray | set | nosy:
+ flox messages: + msg117136 |
2010-09-22 13:03:23 | r.david.murray | set | nosy:
+ r.david.murray, vstinner messages: + msg117135 |
2010-09-22 08:20:04 | ingemar | create |