Did this work in a former version of Cython? This may be an issue with the way the __init__ stuff was merge in. A short-term workaround would be to just use relative imports (i.e. "from translatable cimport Translatable" for now.

- Robert

On Jun 30, 2008, at 8:12 AM, Peter Todd wrote:

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


[EMAIL PROTECTED]:~/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
[EMAIL PROTECTED]:~/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'[:[EMAIL PROTECTED] <bug.tar.gz>_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to