log4mongo / log4mongo-python

python logging handler for mongo database
http://log4mongo.org
Other
111 stars 37 forks source link

Error when installing log4mongo when LANG is not en_US.UTF-8 #20

Closed drorasaf closed 8 years ago

drorasaf commented 8 years ago

How to reproduce:

export LANG=""
pip install log4mongo

Error Log:
Collecting log4mongo
  Downloading log4mongo-1.5.0.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-build-pys6bi5t/log4mongo/setup.py", line 20, in <module>
        long_description=read('README.rst'),
      File "/tmp/pip-build-pys6bi5t/log4mongo/setup.py", line 13, in read
        return open(os.path.join(os.path.dirname(__file__), fname)).read()
      File "/home/dror/anaconda3/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 2557: ordinal not in range(128)

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-pys6bi5t/log4mongo/
oz123 commented 8 years ago

Hi Thanks for the report!