[Cython] .pxd's that depend on other .pxd's

Peter Todd pete at petertodd.org
Mon Jun 30 17:12:02 CEST 2008


Using the attached tarball I get this error message with Cython 0.9.8:


pete at tilt:~/t/bug$ cython Tuke/id.pyx 

Error converting Pyrex file to C:
------------------------------------------------------------
...
from Tuke.translatable cimport Translatable
^
------------------------------------------------------------

/home/pete/t/bug/Tuke/id.pyx:1:0: 'Tuke.translatable.pxd' not found

Error converting Pyrex file to C:
------------------------------------------------------------
...
from Tuke.translatable cimport Translatable
                              ^
------------------------------------------------------------

/home/pete/t/bug/Tuke/id.pyx:1:31: Name 'Translatable' not declared in module 'Tuke.translatable'

Error converting Pyrex file to C:
------------------------------------------------------------
...
from Tuke.translatable cimport Translatable

cdef class Id(Translatable):
    ^
------------------------------------------------------------

/home/pete/t/bug/Tuke/id.pyx:3:5: 'Translatable' is not declared
pete at tilt:~/t/bug$ 

Is this correct behavior? The files are pretty simple, I just want the class in
id.pyx to be a sub-class of something in translatable.pxd

-- 
http://petertodd.org 'peter'[:-1]@petertodd.org 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.tar.gz
Type: application/octet-stream
Size: 339 bytes
Desc: not available
Url : http://codespeak.net/pipermail/cython-dev/attachments/20080630/c7c8d646/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://codespeak.net/pipermail/cython-dev/attachments/20080630/c7c8d646/attachment.pgp 


More information about the Cython-dev mailing list