Cython before version 0.28 required the the .pyx file and the resulting module extension name be the same. In the case where they're not the same, no init function is generated:
Traceback (most recent call last):
File "test_rencode.py", line 29, in <module>
from rencode import _rencode as rencode
ImportError: dynamic module does not define init function (init_rencode)
The trivial fix is to rename rencode.pyx to _rencode.pyx and make the corresponding change in setup.py.
Cython before version 0.28 required the the .pyx file and the resulting module extension name be the same. In the case where they're not the same, no
init
function is generated:The trivial fix is to rename
rencode.pyx
to_rencode.pyx
and make the corresponding change insetup.py
.