lxml can't find encodings on Mac OS X
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Python : (2, 5, 1, 'final', 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)
Mac OS X version:
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.5.5
BuildVersion: 9F33
lxml can't find cp1252 encoding:
$ python
Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from lxml import etree
>>> etree.HTMLParse
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "parser.pxi", line 1401, in lxml.etree.
File "parser.pxi", line 721, in lxml.etree.
LookupError: unknown encoding: 'cp1252'
>>> ^D
But it's available on iconv:
$ iconv -l | grep -i cp1252
CP1252 MS-ANSI WINDOWS-1252
Changed in lxml: | |
status: | In Progress → Triaged |
Is this using the binary build from PyPI?
Does the same problem occur when you request upper case "CP1252"?
Stefan