error in shared top level 'cdef' functions via 'cimport'
Bug #207542 reported by
hh9527
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cython |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
-- foo.pyx --
cdef int foo(int i):
return i
-- foo.pxd --
cdef int foo(int i)
-- bar.pyx --
from foo cimport foo
def bar():
return foo(1)
-- test.py --
from bar import bar
bar()
-- execution result of test.py --
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "bar.pyx", line 1, in bestsoft.bar
AttributeError: 'module' object has no attribute '__pyx_capi__'
Changed in cython: | |
status: | New → Incomplete |
To post a comment you must log in.
I was unable to reproduce this. Could you please provide some more details of what system you were on?