My pull request fails during tox -e pylint on a foreign module during the tests by Travis. How do others sumit their PR without getting this error.
Error Message by Travis Build #41977:
Downloading pyhydroquebec-2.2.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-zll6itqa/pyhydroquebec/setup.py", line 3, in <module>
from pip.req import parse_requirements
ImportError: No module named 'pip.req'
---------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-zll6itqa/pyhydroquebec/
When I locally execute tox -e pylint the error is different from the one above, but also not related to changes.
Collecting lyft_rides==0.2 (from -r /home/jpk/dev/home-assistant/requirements_all.txt (line 508))
Using cached lyft_rides-0.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-_wff4mqc/lyft-rides/setup.py", line 11, in <module>
readme = f.read()
File "/home/jpk/dev/home-assistant/.tox/pylint/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 810: ordinal not in range(128)
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-_wff4mqc/lyft-rides/
Possible solution:
I added two more lines to my /etc/locale.conf to fix the above error:
LANGUAGE=en_US.UTF-8
LC_ALL=en_US.UTF-8
Initially I only had “LANG” set.