Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
'cannot find cimported module' with subfolder #1718
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
xatian commentedMay 27, 2017
•
edited
I basically got these files:
src/header.pxd
src/main.pyx
setup.py
Now if I run this I get this output:
The warning makes no sense to me since importing the module and calling myFunc works fine.
If I put main.pyx and header.pxd in the same directory as setup.py the warning goes away.
What am I missing here?
If I add a empty __init__.py - file to the src-directory the warning goes away but then I cannot import any global module in main.pxy ... So when I add the init-file and change main.pxy to this
I get this this error when importing the module: