ascii - Error trying to install argh-0.24.1 Python 3.2 -


i'm trying install argh-0.24.1 via pip on mac os x mavericks i'm getting ascii decode error. here traceback:

eos87@local ~> pip install argh         downloading/unpacking argh   downloading argh-0.24.1.tar.gz   running setup.py egg_info package argh     traceback (most recent call last):       file "<string>", line 16, in <module>       file "/users/eos87/.virtualenvs/myenv/lib/python3.2/encodings/ascii.py", line 26, in decode         return codecs.ascii_decode(input, self.errors)[0]     unicodedecodeerror: 'ascii' codec can't decode byte 0xc2 in position 55: ordinal not in range(128)     complete output command python setup.py egg_info:     traceback (most recent call last):    file "<string>", line 16, in <module>    file "/users/eos87/.virtualenvs/myenv/lib/python3.2/encodings/ascii.py", line 26, in decode      return codecs.ascii_decode(input, self.errors)[0]  unicodedecodeerror: 'ascii' codec can't decode byte 0xc2 in position 55: ordinal not in range(128)  ---------------------------------------- cleaning up... command python setup.py egg_info failed error code 1 in /users/eos87/.virtualenvs/myenv/build/argh storing complete log in /users/eos87/.pip/pip.log 

any ideas?

after quick search this link provided me first clue why trouble arising.

it seems terminal enforcing incompatible locale upon pip installation.

to fix edit ~/.bash_profile:

~: nano ~/.bash_profile 

then add these lines:

# setting new utf-8 terminal support in lion export lc_ctype=en_us.utf-8 export lc_all=en_us.utf-8 

note: if file doesn't exist, create it.

now close terminal, open again, , retry installation.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -