Dear sage team,

i wrote some module defining a class "Tensor" (just a quick hack), and
if this is in a file Tensors.spyx, then
  sage: attach Tensors.spyx
works perfectly.

Now, i changed it to a file Tensors.pyx, and created Tensors.so like
this:
> sage -cython Tensors.pyx
> gcc -c -fPIC -I/usr/local/include/python2.5/ -o Tensors.o Tensors.c
> gcc -shared -o Tensors.so Tensors.o

I thought that "attach Tensors.spyx" does essentially the same. But
when i now say
  sage: from Tensors import Tensor
i get
<type 'exceptions.ImportError'>: ./Tensors.so: undefined symbol:
PyUnicodeUCS2_DecodeUTF8

What is the reason? Why is the internal compilation of the spyx file
working but not the compilation of the pyx file?

Yours
      Simon

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to