pefile: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 208687: ordinal not in range(128)
Hello; I am ok with, while building and installing pefile via Python2.7. I got No errors.
Problem starts while building Python3.4: `Building source… Sandbox enabled build… running build running build_py creating build creating build/lib copying pefile.py -> build/lib copying peutils.py -> build/lib creating build/lib/ordlookup copying ordlookup/init.py -> build/lib/ordlookup copying ordlookup/oleaut32.py -> build/lib/ordlookup copying ordlookup/ws2_32.py -> build/lib/ordlookup warning: build_py: byte-compiling is disabled, skipping.
DEBUG: return value for “python setup.py build” is 0 ---->build with python2.7, no errors Traceback (most recent call last): File “setup.py”, line 57, in <module> pefile_version = _read_attr(‘version’) File “setup.py”, line 39, in _read_attr match = re.search(regex, f.read()) File “/usr/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 0xe2 in position 208687: ordinal not in range(128) DEBUG: return value for “python3.4 setup.py build” is 1 —>error` I can’t fix this unicode error unfortunately. I am using linux.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (4 by maintainers)
Commits related to this issue
- Merge pull request #111 from AndCycle/fix-issue-105 simple fix for issue #105 — committed to erocarrera/pefile by erocarrera 8 years ago
https://github.com/erocarrera/pefile/blob/master/pefile.py#L5308
# The default is 512. If the SectionAlignment is less than the architecture’s page
ok, python actually complain about this line, which have a
’
in it, and she doesn’t like it.