encoding error when building rpm
- Dominant language
- Python
- Stars
- 167
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
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
[ 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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.