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.



On Wed, Dec 3, 2008 at 10:43 AM, Adam Webb <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Do you have tcl-devel and tk-devel installed? I would expect that
> these are also needed when python is being built.
>
> Adam
>
> On Dec 3, 2:50 pm, "David Joyner" <[EMAIL PROTECTED]> wrote:
>> Hi:
>>
>> I wonder if anyone here knows how to get sage's python to recognize
>> tcl/tk? In other words, I would like
>> sage: import _tkinter
>> and
>> sage: import Tkinter
>> to work and not raise an ImportError.
>>
>> BTW, tcl/tk 8,4 is installed:
>>
>> [EMAIL PROTECTED]:~/sagefiles/sage-3.2.rc0$ whereis tcl
>> tcl: /usr/lib/tcl8.4 /usr/lib64/tcl8.4 /usr/include/tcl8.4
>>
>> - David Joyner
> >
>

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