error in shared top level 'cdef' functions via 'cimport'

Bug #207542 reported by hh9527
2
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__'

Revision history for this message
robertwb (robertwb) wrote :

I was unable to reproduce this. Could you please provide some more details of what system you were on?

robertwb (robertwb)
Changed in cython:
status: New → Incomplete
Revision history for this message
hh9527 (hh9527) wrote :

windows xp sp2
python 2.5.2
cython 0.9.6.12

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.