On 5 January 2016 at 09:59, Julien Delafontaine <
mura...@gmail.com> wrote:
> It compiles and builds without error, but when I "import myextension" from
> python I get this :
>
> cimport numpy as np
> E SystemError: Parent module '' not loaded, cannot perform relative
> import
>
> My setup.py says:
> ext_modules=[
> Extension("a/b/myextension", ["a/b/myextension.c"],
> include_dirs=[numpy.get_include()]),
> ],
>
> and I build with these commands:
>
> cython a/b/myextension.pyx
> python3 setup.py build_ext --inplace
>
> I am working with Python3 on OSX, with the latest numpy (1.10.2) and cython
> 0.23.4.
>
> What can I try to solve this problem ?