[Distutils] Encoding error installing my own package from PyPI

Lele Gaifax lele at metapensiero.it
Fri Dec 13 18:40:26 CET 2013


Daniel Holth <dholth at gmail.com> writes:

> On Thu, Dec 12, 2013 at 6:02 PM, Éric Araujo <merwok at netwok.org> wrote:
>> Distutils is not fully aware of unicode.  Something to try: open your files
>> like you do and get their contents as unicode, but encode the result to
>> UTF-8 bytes before passing it to the setup function.
>>
>> I thinks this is worth reporting to bugs.python.org, if it isn’t already.

> This is a pip bug. Could Python 3.3 be doing something different or is
> your default encoding for open() different than the typical pip
> developer's?
>
> https://github.com/pypa/pip/issues/1298

FTR, no, Éric suggestion didn't work, it just failed very earlier in the
process, at sdist time.

After a few other iterations, I was able to find the culprit: as said, I was
trying to install it into a fresh Python 3.3.3 environment, within a
virtual machine which system locales weren't properly configured for
some reason; after a "dpkg-reconfigure locales" and setting the LANG
environment variable, everything went smooth!

I don't know if #1298 is related to the same problem (will report my
experience there, anyway).

Thanks a lot,
ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.



More information about the Distutils-SIG mailing list