#6 UnicodeDecodeError to open README file

닫힘
ovruni9 년 전을 오픈 · 5개의 코멘트
Omar Vega Ramos 코멘트됨, 9 년 전

Hi, gnurss generates the following error when installing:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 582: ordinal not in range(128)

Add "encoding='utf-8'" to open the README file in setup.py.

long_description=open('README', encoding='utf-8').read(),

Hi, gnurss generates the following error when installing: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 582: ordinal not in range(128) Add "encoding='utf-8'" to open the README file in setup.py. ```` long_description=open('README', encoding='utf-8').read(),````
drymer 코멘트됨, 9 년 전
소유자

I believe you used python2 to open it. This is a python3 package, which by default uses utf-8 encoding, that's why is not specified. If not, I'll investigate, since it gives no error to me.

PD: I think you are the parabola packager of my program, thanks for doing that :)

I believe you used python2 to open it. This is a python3 package, which by default uses utf-8 encoding, that's why is not specified. If not, I'll investigate, since it gives no error to me. PD: I think you are the parabola packager of my program, thanks for doing that :)
drymer 9 년 전가 Close
ovruni 9 년 전를 다시 열음
Omar Vega Ramos 코멘트됨, 9 년 전
포스터

I'm using python3 to open. In python3 if encoding is not specified the encoding used is platform dependent (whatever locale.getpreferredencoding() returns).

You can also check: http://www.diveintopython3.net/files.html

PD: Yes, I'm a Parabola hacker. Your program was uploaded as python-gnusrss

I'm using python3 to open. In python3 if encoding is not specified the encoding used is [platform dependent](https://docs.python.org/3/library/functions.html#open) (whatever [locale.getpreferredencoding()](https://docs.python.org/3/library/locale.html#locale.getpreferredencoding) returns). You can also check: [http://www.diveintopython3.net/files.html](http://www.diveintopython3.net/files.html) PD: Yes, I'm a Parabola hacker. Your program was uploaded as [python-gnusrss](https://www.parabola.nu/packages/pcr/any/python-gnusrss/)
drymer 코멘트됨, 9 년 전
소유자

I see. I read the pep-3120 and thought it was something general. Do you use the 3.4.4 version or higher? I'm just curious, I'll change it as you said to avoid problems.

I see. I read the [pep-3120](https://www.python.org/dev/peps/pep-3120/) and thought it was something general. Do you use the 3.4.4 version or higher? I'm just curious, I'll change it as you said to avoid problems.
Omar Vega Ramos 코멘트됨, 9 년 전
포스터

I'm using python-3.5.1

I'm using python-3.5.1
drymer 코멘트됨, 9 년 전
소유자

Thanks. Fixed in #1444f1c68b

Thanks. Fixed in [#1444f1c68b](https://notabug.org/drymer/gnusrss/commit/1444f1c68b3a3ace4614216648e7608eec7f1d84)
drymer 9 년 전가 Close
로그인하여 이 대화에 참여
레이블 없음
bug
마일스톤 없음
담당자 없음
참여자 2명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.