[Solved]UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 3: unexpected end of data | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

6th Aug 2019, 12:25 PM
WARLORD
WARLORD - avatar
4 Answers
+ 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)
7th Aug 2019, 2:37 PM
WARLORD
WARLORD - avatar
+ 5
sayan chandra i think you didn't read the comment on the code ?
7th Aug 2019, 2:52 PM
WARLORD
WARLORD - avatar
0
it says no module as py.h
7th Aug 2019, 2:39 PM
sayan chandra
sayan chandra - avatar
- 1
whenever you ask this kind of stuff make sure you give the code/program also..
6th Aug 2019, 2:00 PM
sayan chandra
sayan chandra - avatar