Certainly, such name clashes are not uncommon (e.g. cvxopt defines its
own
matrix that clashes with Sage's matrix)
IMHO if you import the needed things from the package you need, doing
re-namings when needed, as usual  (from foo import blah as fooblah)
you can avoid the problem you describe.

HTH,
Dmitrii

On May 18, 10:44 am, Pablo Winant <pablo.win...@gmail.com> wrote:
> Hello,
>
> I am still trying to use Pytave under Sage. After some work, I
> eventually managed to compile every needed library (boost, octave), but
> I went through an annoying bug.
> It is possible to use the library with 'sage -python' or 'sage
> -ipython'  but when imported at the sage command prompt it fails.
> According to pytave developper, it is due to an incompatibility between
> the templates of octave and singular, the class Array ending up being
> declared twice.
>
> For this reason, I am wondering whether it is possible to restrict the
> initial import into sage interpreter so as to avoid importing singular.
> Would something usable remain if I remove all modules depending on it (I
> don't really need pure mathematics functions anymore) ? What would be
> the right way to do it ?
>
> Best,
>
> Pablo
>
> P.S. the attempts I made are tracked 
> herehttps://bugs.launchpad.net/pytave/+bug/578767. Once it is done I would
> be more than happy to contribute doc/script on the matter.
> <https://bugs.launchpad.net/pytave/+bug/578767>
>
> --
> To post to this group, send an email to sage-devel@googlegroups.com
> To unsubscribe from this group, send an email to 
> sage-devel+unsubscr...@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/sage-devel
> URL:http://www.sagemath.org

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to