Summary: | dev-lang/python-3.1.2-r4 fails to build in some locales (e.g. lt_LT.UTF-8) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | blackdream <blackdream1890> |
Component: | [OLD] Development | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cedric.godin, chalucha, it, joakim, l33tmmx, lifeissecret, Martin.Jansa, mfulz, oli.huber, pierreyves.aillet, PishiSyda, stefan.tell, v_2e, xaviermiller |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://bugs.python.org/issue7384 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | builg.log |
Description
blackdream
2010-07-13 04:50:03 UTC
Created attachment 238547 [details]
builg.log
emerge -pqv =dev-lang/python-3.1.2-r4 [ebuild U ] dev-lang/python-3.1.2-r4 [3.1.2-r3] USE="gdbm ncurses readline sqlite* ssl threads (wide-unicode) xml -build -doc -examples -ipv6 -tk -wininst" *** Bug 328045 has been marked as a duplicate of this bug. *** File "./setup.py", line 160, in build_extensions missing = self.detect_modules() File "./setup.py", line 567, in detect_modules for ln in fp: File "/var/tmp/portage/dev-lang/python-3.1.2-r4/work/Python-3.1.2/Lib/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 1: ordinal not in range(128) make: *** [sharedmods] Ошибка 1 * ERROR: dev-lang/python-3.1.2-r4 failed: * emake failed i have the same issue. on ~amd64 arch, dev-lang/python-3.1.2-r3 is ok but dev-lang/python-3.1.2-r4 fails with the ascii codec error same error here on ~amd64 python-3.1.2-r3 working fine where python-3.1.2-r4 has the ascii error. (In reply to comment #0) > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 1: ordinal > not in range(128) ascii.py caused many emerge problems. http://bugs.gentoo.org/show_bug.cgi?id=322545#c43 https://code.fluendo.com/flumotion/trac/ticket/1443#comment:7 as most locales have utf-8 charmap, so it seems utf_8.py should be preffered to ascii.py as codec. gentoo ~ # ls /usr/lib64/python3.1/encodings/utf*8* /usr/lib64/python3.1/encodings/utf_8.py /usr/lib64/python3.1/encodings/utf_8_sig.py /usr/lib64/python3.1/encodings/utf_8.pyc /usr/lib64/python3.1/encodings/utf_8_sig.pyc /usr/lib64/python3.1/encodings/utf_8.pyo /usr/lib64/python3.1/encodings/utf_8_sig.pyo gentoo ~ # ls /usr/lib64/python2.6/encodings/utf*8* /usr/lib64/python2.6/encodings/utf_8.py /usr/lib64/python2.6/encodings/utf_8_sig.py /usr/lib64/python2.6/encodings/utf_8.pyc /usr/lib64/python2.6/encodings/utf_8_sig.pyc /usr/lib64/python2.6/encodings/utf_8.pyo /usr/lib64/python2.6/encodings/utf_8_sig.pyo gentoo ~ # (In reply to comment #7) > (In reply to comment #0) > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 1: ordinal > > not in range(128) > > ascii.py caused many emerge problems. > http://bugs.gentoo.org/show_bug.cgi?id=322545#c43 > https://code.fluendo.com/flumotion/trac/ticket/1443#comment:7 > > as most locales have utf-8 charmap, so it seems utf_8.py should be preffered to > ascii.py as codec. > > gentoo ~ # ls /usr/lib64/python3.1/encodings/utf*8* > /usr/lib64/python3.1/encodings/utf_8.py > /usr/lib64/python3.1/encodings/utf_8_sig.py > /usr/lib64/python3.1/encodings/utf_8.pyc > /usr/lib64/python3.1/encodings/utf_8_sig.pyc > /usr/lib64/python3.1/encodings/utf_8.pyo > /usr/lib64/python3.1/encodings/utf_8_sig.pyo > gentoo ~ # ls /usr/lib64/python2.6/encodings/utf*8* > /usr/lib64/python2.6/encodings/utf_8.py > /usr/lib64/python2.6/encodings/utf_8_sig.py > /usr/lib64/python2.6/encodings/utf_8.pyc > /usr/lib64/python2.6/encodings/utf_8_sig.pyc > /usr/lib64/python2.6/encodings/utf_8.pyo > /usr/lib64/python2.6/encodings/utf_8_sig.pyo > gentoo ~ # > How can I solve it? I can merge it with MAKEOPTS="-j1" LANG=en_US.UTF-8 (In reply to comment #9) > I can merge it with MAKEOPTS="-j1" LANG=en_US.UTF-8 > Thx u so much! It works.^_^ (In reply to comment #10) > (In reply to comment #9) > > I can merge it with MAKEOPTS="-j1" LANG=en_US.UTF-8 > > > > Thx u so much! It works.^_^ > but it doesn't for LANG=ru_RU.UTF-8 :( (In reply to comment #11) > (In reply to comment #10) > > (In reply to comment #9) > > > I can merge it with MAKEOPTS="-j1" LANG=en_US.UTF-8 > > > > > > > Thx u so much! It works.^_^ > > > > but it doesn't for LANG=ru_RU.UTF-8 :( > u type "MAKEOPTS="-j1" LANG=ru_RU.UTF-8 emerge -1av dev-lang/python-3.1.2-r4" or "MAKEOPTS="-j1" LANG=en_US.UTF-8 emerge -1av =dev-lang/python-3.1.2-r4 "? (In reply to comment #12) > > u type "MAKEOPTS="-j1" LANG=ru_RU.UTF-8 emerge -1av dev-lang/python-3.1.2-r4" > > or > > "MAKEOPTS="-j1" LANG=en_US.UTF-8 emerge -1av =dev-lang/python-3.1.2-r4 "? > my bad, sorry, tried with LANG=ru_RU.UTF-8. LANG=en_US.UTF-8 works fine The problem is not with parallel make! Works OK form me by disabling locale : LC_ALL=C emerge -1 =python-3.1.2-r4 I have added LC_ALL="C". |