On Fri, Apr 25, 2008 at 7:20 PM, Hector Villafuerte <[EMAIL PROTECTED]> wrote: > On Wed, Apr 2, 2008 at 6:36 AM, William Stein <[EMAIL PROTECTED]> wrote: > [...] > > > By the way, you can modify sys.path in Sage so that it's possible > > to use your existing system-wide Python modules in some cases... > [...] > > > I tried just that, since I want to use Graphviz > (http://www.graphviz.org/) through a Python binding (yapgvb). Here's > what I've tried so far... > > > sage: import yapgvb > Traceback (most recent call last): > ... > ImportError: No module named yapgvb > > sage: import sys > sage: sys.path.append('/usr/lib/python2.4/site-packages') > sage: import yapgvb > /usr/lib/python2.4/site-packages/yapgvb/__init__.py:20: > RuntimeWarning: Python C API version mismatch for module _yapgvb: This > Python has API version 1013, module _yapgvb has version 1012. > from _yapgvb import * >
I forgot to mention this... sage: version () 'SAGE Version 3.0, Release Date: 2008-04-22' [EMAIL PROTECTED]:~$ uname -a Linux sage 2.6.17-12-386 #2 Tue Dec 18 02:08:33 UTC 2007 i686 GNU/Linux And you would need to apt-get the package: [EMAIL PROTECTED]:~$ sudo apt-get install yapgvb -- Hector --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---