On Dec 3, 2008, at 7:48 AM, David Joyner wrote:

> System wide, it works fine:
>
> [EMAIL PROTECTED]:~/sagefiles/sage-3.2.rc0$ python
> Python 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
> [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import _tkinter
>>>> import Tkinter
>
> In Sage it doesn't:
>
> [EMAIL PROTECTED]:~/sagefiles/sage-3.2.rc0$ ./sage -python
> Python 2.5.2 (r252:60911, Nov 12 2008, 08:12:38)
> [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import _tkinter
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named _tkinter
>>>>
>
> I wonder how to modify the Sage python copy of tkinter so that
> it sees the path to the system tcl/tk installation. It's probably a
> matter of adding a path somewhere or modifying an environmental
> variable.

You could also try installing tcl/tk into sage's copy of python, e.g.  
with sage -python path/to/tk/setup.py install . Trying to let the  
Sage Python see the system Python's libraries may result in binary  
incompatibilities (the versions and flags used to compile them must  
match, which they probably don't).

- Robert


--~--~---------~--~----~------------~-------~--~----~
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