+ 4
[Solved]UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 3: unexpected end of data
I've never seen this error before The error appeared when i tried to import an extension module that i wrote, the extension module has nothing wrong with it's code but this error keeps appearing when i try to import it I already checked both of these two links but none of them helped https://python.readthedocs.io/fr/stable/extending/building.html#c.PyInit_modulename https://stackoverflow.com/questions/25131630/doctests-fail-with-unicodedecodeerror-on-c-extension-and-python3
4 ответов
+ 5
sayan chandra here's the code
https://code.sololearn.com/c066ZmQpY72q/?ref=app
It was compiled using distutils and there was no mistakes with it
About the log of gcc, there was no fail errors(in red color)
+ 5
sayan chandra i think you didn't read the comment on the code ?
0
it says no module as py.h
- 1
whenever you ask this kind of stuff make sure you give the code/program also..