View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001208 | libextractor | Python API (including binding code) | public | 2007-05-22 11:47 | 2007-12-08 17:29 |
| Reporter | romainc | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | unable to reproduce | ||
| Product Version | 0.5.18 | ||||
| Summary | 0001208: Segfault with python2.5 on unicode filename with unicode character | ||||
| Description | With python 2.4, no problem : Python 2.4.4 (#2, Apr 26 2007, 00:02:45) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import libextractor Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named libextractor >>> import extractor >>> extract = extractor.Extractor() >>> extract.extract('/tmp/igua | ||||
| Additional Information | The file is the description is an empty file, but the reaction is the same on non-empty file. A workaround is to use the 'encode' method : python2.5 Python 2.5.1 (r251:54863, Apr 25 2007, 22:53:30) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import extractor >>> extract = extractor.Extractor() >>> extract.extract(u'/tmp/iguau'.encode('utf-8')) [] Thanks for libextractor ! | ||||
| Tags | No tags attached. | ||||
|
|
About the python2.5 examples it seems my ' |
|
|
Here is what I get with python2.5 from Debian unstable: grothoff@elma:~/svn/Extractor-python$ python2.5 Python 2.5 (release25-maint, Dec 9 2006, 14:35:53) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import extractor >>> extract = extractor.Extractor() >>> extract.extract('/tmp/foo') [] >>> extract.extract('/tmp/foo') [] >>> grothoff@elma:~/svn/Extractor-python$ python2.5 Python 2.5 (release25-maint, Dec 9 2006, 14:35:53) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import extractor >>> extract = extractor.Extractor() >>> extract.extract('/tmp/ |
|
|
~$ uname -a Linux valeu 2.6.18-4-686 #1 SMP Wed May 9 23:03:12 UTC 2007 i686 GNU/Linux ~$ $LANG bash: fr_FR.UTF-8: command not found ~$ python2.5 Python 2.5.1 (r251:54863, Apr 25 2007, 22:53:30) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import extractor >>> extract = extractor.Extractor() >>> type('/tmp/ |
|
|
Here some trace with pydb : >>> import pydb >>> import extractor >>> extract = extractor.Extractor() >>> pydb.runcall(extract.extract, u'/tmp/igua |
|
|
I still think this is a python bug. Have you talked to any Python developers about this? |
|
|
Closing: No feedback in a while and this seems to (have been?) a Python issue anyway. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2007-05-22 11:47 | romainc | New Issue | |
| 2007-05-22 12:02 | romainc | Note Added: 0002974 | |
| 2007-05-28 14:35 | Christian Grothoff | Note Added: 0002987 | |
| 2007-05-28 14:36 | Christian Grothoff | Status | new => feedback |
| 2007-05-29 01:16 | romainc | Note Added: 0002989 | |
| 2007-06-29 03:26 | romainc | Note Added: 0003070 | |
| 2007-08-30 16:49 | Christian Grothoff | Note Added: 0003152 | |
| 2007-12-08 17:29 | Christian Grothoff | Note Added: 0003236 | |
| 2007-12-08 17:29 | Christian Grothoff | Status | feedback => closed |
| 2007-12-08 17:29 | Christian Grothoff | Resolution | open => unable to reproduce |