Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Bug in absolute import handling in python 2.7 #2638
I think this is the same issue: https://grokbase.com/t/gg/cython-users/1417hszq2d/pxd-import-problem-when-modules-added-to-package
I have code in a .pyx file in my package PDSim (https://github.com/ibell/pdsim) that reads:
which yields the error (though somehow not terminal):
in which the folder flow in my package has the contents:
Why does it not find this module?
I can "fix" the issue with the replacement of
which is pretty verbose, and smells like a bug. The parallel python import is
which works fine.
This case might need special-casing in the path search. I guess it tries to look for a cimportable