Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ascii decode error by making sure file is read is utf-8 #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jcbrand
Copy link

@jcbrand jcbrand commented Feb 20, 2019

Fixes the following problem:

Traceback (most recent call last):
  File "/tmp/tmpjox0rjsr", line 14, in <module>
    exec(compile(f.read(), '/home/xmpp/src/hexagonit.recipe.cmmi/setup.py', 'exec'))
  File "/home/xmpp/src/hexagonit.recipe.cmmi/setup.py", line 25, in <module>
    + '\n' +
  File "/home/xmpp/src/hexagonit.recipe.cmmi/setup.py", line 9, in read
    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
  File "/usr/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 0xc3 in position 16938: ordinal not in range(128)
While:
  Installing.
  Processing develop directory '/home/xmpp/src/hexagonit.recipe.cmmi'.

CC @dokai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant