Re: [sage-support] tkinter on Leap 15.1

2020-01-08 Thread 'Ricksme' via sage-support


On Wednesday, 8 January 2020 13:47:17 UTC, slelievre wrote:
>
>
>
> Le mardi 7 janvier 2020 10:15:08 UTC+1, dim...@gmail.com 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?
If testing is required, both import lines could be followed by a test

import _tkinter
import tkinter
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 sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/ec62f2d9-f676-4ec9-a624-01b4c5990366%40googlegroups.com.


Re: [sage-support] tkinter on Leap 15.1

2020-01-08 Thread 'Ricksme' via sage-support


On Wednesday, 8 January 2020 13:47:17 UTC, slelievre wrote:
>
>
>
> Le mardi 7 janvier 2020 10:15:08 UTC+1, dim...@gmail.com 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 sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/aba13fb8-62f8-4ce5-8f34-0e30fc7a4162%40googlegroups.com.


Re: [sage-support] tkinter on Leap 15.1

2020-01-08 Thread 'Ricksme' via sage-support


On Wednesday, 8 January 2020 13:47:17 UTC, slelievre wrote:
>
>
>
> Le mardi 7 janvier 2020 10:15:08 UTC+1, dim...@gmail.com 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.
>

import _tkinter works for both 2 and 3.
import Tkinter for python 2  OR import tkinter for python 3

I haven't checked whether there is code within the sage-9.0 installation 
that uses this import statement. If there is, presumably the correct 
version of import tkinter is employed.

Rick

-- 
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 sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/5f1d7887-f97f-4611-8c50-bccc8ab79b94%40googlegroups.com.


Re: [sage-support] tkinter on Leap 15.1

2020-01-08 Thread slelievre


Le mardi 7 janvier 2020 10:15:08 UTC+1, dim...@gmail.com 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.

-- 
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 sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/381ea0fa-eb98-4cd5-8d30-d533a91c2f60%40googlegroups.com.


Re: [sage-support] tkinter on Leap 15.1

2020-01-07 Thread dimpase
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.

So it seems you might be on your own at this point, sorry. Please keep us
informed on your progress, so that we can update the guide, if needed.

Thanks
Dmitrii

-- 
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 sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/20200107091503.GB9126%40hilbert.


signature.asc
Description: PGP signature


[sage-support] tkinter on Leap 15.1

2020-01-07 Thread 'Ricksme' via sage-support
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?

-- 
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 sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/564d9c31-b33f-42cc-8128-afb9eea22554%40googlegroups.com.