[fixed order of replies] Vineet Jain, 14.11.2010 16:30: > On Sun, Nov 14, 2010 at 10:12 AM, Stefan Behnel wrote: >> Vineet Jain, 14.11.2010 14:31: >>> Thanks. After playing with it for some time, the error went away after >>> I replaced >>> >>> cimport StructModulePxd >>> >>> with >>> >>> cimport<path.to.pxdfile.>StructModulePxd >>> >>> It seems that the compiler will not find a pxd file with a different >>> name (and no corresponding pyx file) is in the same directory as where >>> you are trying to import it. If I replace the cimport with a fully >>> qualified path then it works. >> >> Maybe you forgot to add an __init__.py file to the package that holds your >> source files? >> > No. There is __init__.py in the folder. Otherwise the fully qualified > path would not work either since it is no longer a python module.
Then I suggest you use the standard Python package layout for your code. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
