HTTPretty icon indicating copy to clipboard operation
HTTPretty copied to clipboard

Fails to install

Open macnibblet opened this issue 10 years ago • 5 comments

Python 3.4.0

(env)$ pip install httpretty
Downloading/unpacking httpretty
  Downloading httpretty-0.8.4.tar.gz (40kB): 40kB downloaded
  Running setup.py (path:/opt/env/build/httpretty/setup.py) egg_info for package httpretty
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/opt/env/build/httpretty/setup.py", line 86, in <module>
        version=read_version(),
      File "/opt/env/build/httpretty/setup.py", line 46, in read_version
        finder.visit(ast.parse(local_file('httpretty', '__init__.py')))
      File "/opt/env/build/httpretty/setup.py", line 78, in <lambda>
        open(os.path.join(os.path.dirname(__file__), *f)).read()
      File "/opt/env/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)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/opt/env/build/httpretty/setup.py", line 86, in <module>

    version=read_version(),

  File "/opt/env/build/httpretty/setup.py", line 46, in read_version

    finder.visit(ast.parse(local_file('httpretty', '__init__.py')))

  File "/opt/env/build/httpretty/setup.py", line 78, in <lambda>

    open(os.path.join(os.path.dirname(__file__), *f)).read()

  File "/opt/env/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)

macnibblet avatar Feb 04 '15 09:02 macnibblet

+1

citizen-stig avatar Apr 06 '15 19:04 citizen-stig

+1

christopher-abastar avatar Oct 14 '15 03:10 christopher-abastar

+1

Lobosque avatar Nov 03 '15 11:11 Lobosque

Hello,

Not sure if this helps but I managed to fix it by doing some update on the environment variables.

LANG=en_US.UTF-8 
LC_CTYPE=en_US.UTF-8

christopher-abastar avatar Nov 09 '15 04:11 christopher-abastar

The above worked fine for me Python 3.4.3 & Ubuntu 14.04

ghost avatar Nov 15 '15 16:11 ghost