[Cython] .pxd's that depend on other .pxd's
Robert Bradshaw
robertwb at math.washington.edu
Wed Jul 2 06:49:41 CEST 2008
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:
>
>
> 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
> <bug.tar.gz>_______________________________________________
> Cython-dev mailing list
> Cython-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/cython-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://codespeak.net/pipermail/cython-dev/attachments/20080701/b5c81024/attachment.pgp
More information about the Cython-dev
mailing list