Activity log for bug #757673

Date Who What changed Old value New value Message
2011-04-11 15:48:46 Andreas Preikschat bug added bug
2011-04-11 15:48:46 Andreas Preikschat attachment added Test Script https://bugs.launchpad.net/bugs/757673/+attachment/2017686/+files/test.py
2011-04-11 15:49:15 Andreas Preikschat description Hello, Prehistory: Recently there was a bug filed in our project (Bug #744337), where somebody had problem so export some songs. I tried to reproduce this, which I finally could. It seems that, lxml cannot save a xml file to directory which contains characters like "ĉûüë" and other. However, I was not able to reproduce this on my Linux Box, but on windows. I'll attach a small script to reproduce this. The requested information (windows XP): Python : sys.version_info(major=2, minor=7, micro=0, releaselevel='final', serial=0) lxml.etree : (2, 3, -99, 0) libxml used : (2, 7, 7) libxml compiled : (2, 7, 7) libxslt used : (1, 1, 26) libxslt compiled : (1, 1, 26) Cheers (If you need further information, please ask for them!) Hello, Prehistory: Recently there was a bug filed in our project (Bug #744337), where somebody had problem so export some songs. I tried to reproduce this, which I finally could. It seems that, lxml cannot save a xml file to directory which contains characters like "ĉûüë" and other. However, I was not able to reproduce this on my Linux Box, but on windows. I'll attach a small script to reproduce this. The requested information (windows XP): Python : sys.version_info(major=2, minor=7, micro=0, releaselevel='final', serial=0) lxml.etree : (2, 3, -99, 0) libxml used : (2, 7, 7) libxml compiled : (2, 7, 7) libxslt used : (1, 1, 26) libxslt compiled : (1, 1, 26) Cheers (If you need further information, please ask for them!)
2011-04-11 16:12:31 Andreas Preikschat description Hello, Prehistory: Recently there was a bug filed in our project (Bug #744337), where somebody had problem so export some songs. I tried to reproduce this, which I finally could. It seems that, lxml cannot save a xml file to directory which contains characters like "ĉûüë" and other. However, I was not able to reproduce this on my Linux Box, but on windows. I'll attach a small script to reproduce this. The requested information (windows XP): Python : sys.version_info(major=2, minor=7, micro=0, releaselevel='final', serial=0) lxml.etree : (2, 3, -99, 0) libxml used : (2, 7, 7) libxml compiled : (2, 7, 7) libxslt used : (1, 1, 26) libxslt compiled : (1, 1, 26) Cheers (If you need further information, please ask for them!) Hello, Prehistory: Recently there was a bug filed in our project (Bug #744337), where somebody had problem so export some songs. I tried to reproduce this, which I finally could. It seems that, lxml cannot save a xml file to directory which contains characters like "ĉûüë" and other. Traceback (most recent call last): File "Z:\test.py", line 31, in <module> save_to_file(xml) File "Z:\test.py", line 26, in save_to_file encoding=u'utf-8', xml_declaration=True, pretty_print=True) File "lxml.etree.pyx", line 1850, in lxml.etree._ElementTree.write (src/lxml/lxml.etree.c:44526) File "serializer.pxi", line 455, in lxml.etree._tofilelike (src/lxml/lxml.etree.c:90047) IOError: [Errno 2] No such file or directory However, I was not able to reproduce this on my Linux Box, but on windows. I'll attach a small script to reproduce this. The requested information (windows XP): Python : sys.version_info(major=2, minor=7, micro=0, releaselevel='final', serial=0) lxml.etree : (2, 3, -99, 0) libxml used : (2, 7, 7) libxml compiled : (2, 7, 7) libxslt used : (1, 1, 26) libxslt compiled : (1, 1, 26) Cheers (If you need further information, please ask for them!)
2011-04-12 09:43:02 Andreas Preikschat description Hello, Prehistory: Recently there was a bug filed in our project (Bug #744337), where somebody had problem so export some songs. I tried to reproduce this, which I finally could. It seems that, lxml cannot save a xml file to directory which contains characters like "ĉûüë" and other. Traceback (most recent call last): File "Z:\test.py", line 31, in <module> save_to_file(xml) File "Z:\test.py", line 26, in save_to_file encoding=u'utf-8', xml_declaration=True, pretty_print=True) File "lxml.etree.pyx", line 1850, in lxml.etree._ElementTree.write (src/lxml/lxml.etree.c:44526) File "serializer.pxi", line 455, in lxml.etree._tofilelike (src/lxml/lxml.etree.c:90047) IOError: [Errno 2] No such file or directory However, I was not able to reproduce this on my Linux Box, but on windows. I'll attach a small script to reproduce this. The requested information (windows XP): Python : sys.version_info(major=2, minor=7, micro=0, releaselevel='final', serial=0) lxml.etree : (2, 3, -99, 0) libxml used : (2, 7, 7) libxml compiled : (2, 7, 7) libxslt used : (1, 1, 26) libxslt compiled : (1, 1, 26) Cheers (If you need further information, please ask for them!) Hello, Prehistory: Recently there was a bug filed in our project (Bug #744337), where somebody had problem so export some songs. I tried to reproduce this, which I finally could: It seems that, lxml cannot save a xml file to directory which contains characters like "ĉûüë" (see test script). But opening a file and passing the file object in my_tree.write() works. Traceback (most recent call last):   File "Z:\test.py", line 31, in <module>     save_to_file(xml)   File "Z:\test.py", line 26, in save_to_file     encoding=u'utf-8', xml_declaration=True, pretty_print=True)   File "lxml.etree.pyx", line 1850, in lxml.etree._ElementTree.write (src/lxml/lxml.etree.c:44526)   File "serializer.pxi", line 455, in lxml.etree._tofilelike (src/lxml/lxml.etree.c:90047) IOError: [Errno 2] No such file or directory However, I was not able to reproduce this on my Linux Box, but on windows. I'll attach a small script to reproduce this. The requested information (windows XP): Python : sys.version_info(major=2, minor=7, micro=0, releaselevel='final', serial=0) lxml.etree : (2, 3, -99, 0) libxml used : (2, 7, 7) libxml compiled : (2, 7, 7) libxslt used : (1, 1, 26) libxslt compiled : (1, 1, 26) Cheers (If you need further information, please ask for them!)
2019-08-11 07:08:08 scoder lxml: status New Invalid