kennethreitz / maya

Datetimes for Humans™
MIT License
3.41k stars 196 forks source link

UnicodeDecodeError with pip install maya on Windows 10 #177

Closed gbvanrenswoude closed 5 years ago

gbvanrenswoude commented 5 years ago

Hi, raising this issue for awareness. Pip install on W10 raises an UnicodeDecodeError. This seems to be a more general problem with pip on W10, but maya is hit. pip install maya UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 185: invalid continuation byte

pip 19.1.1 / python 3.7

Ofcourse running the same on Linux works fine 😁

gbvanrenswoude commented 5 years ago

Workaround:

    def get_metadata(self, name):
        if not self.egg_info:
            return ""
        value = self._get(self._fn(self.egg_info, name))
        return value.decode('mbcs') if six.PY3 else value # utf_8

pip/pip/internal/__init_\.py

timofurrer commented 5 years ago

As you already figured, that's not maya related. I'm going to close this. :tada: