On Wednesday, 8 January 2020 13:47:17 UTC, slelievre wrote:
>
>
>
> Le mardi 7 janvier 2020 10:15:08 UTC+1, [email protected] a écrit :
>>
>> On Mon, Jan 06, 2020 at 05:54:02PM -0800, 'Ricksme' via sage-support 
>> wrote: 
>> > I am about to build sage 9.0 on opensuse Leap 15.1 and notice that 
>> import 
>> > Tkinter works in python 2.7.14 but that import tkinter is required for 
>> > python 3.6.9 (Leap 15.1 installation). The sage 9.0 installation guide 
>> > specifies the (uppercase T) Tkinter which applies to python 2 in my 
>> > installation but sage 9.0 is built with python 3. Is this going to be 
>> an 
>> > issue and does someone know about this? 
>>
>> That Tkinter -> tkinter change at py2 -> py3 could have been something 
>> we overlooked, as probably noone involved in Sage releases has any idea 
>> about tkinter. 
>>
>
> We should indeed adapt that section of the "install from source" page at
>
> https://doc.sagemath.org/html/en/installation/source.html
>
> I guess that to check support for Tk interface it's enough to try
>
>     import _tkinter
>
> In Python 2, import Tkinter will import _tkinter.
> In Python 3, import tkinter will import _tkinter.
>
> I think the one line is adequate to check for support; problem solved.

Is testing the installation  out of context for the installation document?
Testing could be done by importing the second line and running:
tkinter._test()

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/aba13fb8-62f8-4ce5-8f34-0e30fc7a4162%40googlegroups.com.

Reply via email to