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

encoding error when building rpm #28

Open
arunpersaud opened this issue Jan 7, 2015 · 0 comments
Open

encoding error when building rpm #28

arunpersaud opened this issue Jan 7, 2015 · 0 comments

Comments

@arunpersaud
Copy link

Hi

on the opensuse build server I get the following error when running setup.py

[   47s] Traceback (most recent call last):
[   47s]   File "setup.py", line 26, in <module>
[   47s]     long_description = f.read()
[   47s]   File "/usr/lib64/python3.4/encodings/ascii.py", line 26, in decode
[   47s]     return codecs.ascii_decode(input, self.errors)[0]
[   47s] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3249: ordinal not in range(128)
[   47s] error: Bad exit status from /var/tmp/rpm-tmp.UcThvc (%build)

the package already has a patch for this (not sure by whom), which fixes the problem, just wanted to report this upstream

patch:

-with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
+with open(os.path.join(os.path.dirname(__file__), 'README.rst'),encoding='utf-8') as f:

Arun

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

No branches or pull requests

1 participant