gabrielfalcao / HTTPretty

Intercept HTTP requests at the Python socket level. Fakes the whole socket module
https://httpretty.readthedocs.org
MIT License
2.11k stars 277 forks source link

Failed to install httpretty 0.8.3 under Py3 in env with LC_ALL=C #185

Open shakhat opened 10 years ago

shakhat commented 10 years ago

Installation of library fails in environment with LC_ALL=C. Error details: $ .venv/bin/python setup.py install Traceback (most recent call last): File "setup.py", line 86, in version=read_version(), File "setup.py", line 46, in read_version finder.visit(ast.parse(local_file('httpretty', 'init.py'))) File "setup.py", line 78, in open(os.path.join(os.path.dirname(file), *f)).read() File "/tmp/HTTPretty/.venv/lib/python3.4/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 133: ordinal not in range(128)

shakhat commented 10 years ago

Patch https://github.com/gabrielfalcao/HTTPretty/pull/183 fixes the issue