Re: Python and Tkinter

2014-04-02 Thread Lenore Horner

On Apr 2, 2014, at 17:13, Ryan Schmidt  wrote:

> 
> On Apr 2, 2014, at 05:16, Lenore Horner  wrote:
> 
>>> If you want to stick with MacPorts, then IDLE is already included with the 
>>> python27 port, and tkinter is in the py27-tkinter port. If they don’t work, 
>>> please report the bugs to us.
>> 
>> It is included in the port, but is known not to work  because IDLE depends 
>> in py27-tkinter which depends on python.  See 
>> https://trac.macports.org/ticket/38746
>> https://trac.macports.org/ticket/42191
>> This defect was also discussed on this list back in January.
> 
> So wait: does installing py27-tkinter make IDLE work, or is it still broken?
> If the latter, does rebuilding python27 then make IDLE work, since tkinter 
> would then be installed at the time IDLE is built?
> 
All I had to do was install py27-tkinter and then IDLE works.  
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Python and Tkinter

2014-04-02 Thread Ryan Schmidt

On Apr 2, 2014, at 05:16, Lenore Horner  wrote:

>> If you want to stick with MacPorts, then IDLE is already included with the 
>> python27 port, and tkinter is in the py27-tkinter port. If they don’t work, 
>> please report the bugs to us.
> 
> It is included in the port, but is known not to work  because IDLE depends in 
> py27-tkinter which depends on python.  See 
> https://trac.macports.org/ticket/38746
> https://trac.macports.org/ticket/42191
> This defect was also discussed on this list back in January.

So wait: does installing py27-tkinter make IDLE work, or is it still broken?
If the latter, does rebuilding python27 then make IDLE work, since tkinter 
would then be installed at the time IDLE is built?

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Python and Tkinter

2014-04-02 Thread ugajin


Curious too, as the lib-tk diretory installed here: 
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk

 I note larryv@ posted in reply "…I think you need to install py27-tkinter 
also."and that this seemed to work for johnsankey@, so I may try this, but as 
the Tkinter library is already installed, it seems an odd approach. If I can be 
patient I will wait a further response.

I tried a fresh port of python27, which seems only to have added a coppy of 
IDLE.app and Python Launcher.app in the Applications > MacPorts directory. 
Still no response from IDLE, and no Tkinter either.

I have temporarily returned the default setting to OSX python v2.6.1 Tkinter 
seems to be installed for this version, but no IDLE. 

Many thanks.

-A

 

-Original Message-
From: Lenore Horner 
To: MacPorts Users 
Sent: Wed, 2 Apr 2014 11:41
Subject: Re: Python and Tkinter


> If you want to stick with MacPorts, then IDLE is already included with the 
python27 port, and tkinter is in the py27-tkinter port. If they don’t work, 
please report the bugs to us.

It is included in the port, but is known not to work  because IDLE depends in 
py27-tkinter which depends on python.  See 
https://trac.macports.org/ticket/38746
https://trac.macports.org/ticket/42191
This defect was also discussed on this list back in January.

Lenore Horner

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users

 
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Fwd: Python and Tkinter

2014-04-02 Thread ugajin

 

 Ooops, I think should have included this here!



 

-Original Message-
From: uga...@talktalk.net
To: ryandes...@macports.org
Sent: Wed, 2 Apr 2014 10:55
Subject: Re: Python and Tkinter


 Thanks for the reply. I would like to stay with Macports but, Tkinter does not 
run, this is the traceback:

>>> import Tkinter
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py",
 line 39, in 
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter
>>> 

It is unclear what steps need to be taken by me, to configure Python, but as 
you say it is included. I found it here in fact: 
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk

IDLE.app also fails to run.

Yes, I believe I was invited to run python 2.7 as default. I am unable to 
report this as a bug as I do not know my login password. However, I hope this 
will be sufficient. 

In the meantime; what to do?

 

 Thanks

-A


-Original Message-
From: Ryan Schmidt 
To: uga...@talktalk.net
CC: MacPorts Users 
Sent: Wed, 2 Apr 2014 3:40
Subject: Re: Python and Tkinter



On Apr 1, 2014, at 19:15, uga...@talktalk.net wrote:

> I run OSX v10.6.8 (Snow Leopard) and I have a few versions of Python 
installed. The latest version is 2.7.6 installed itself along with (I beleive) 
a 
Macport installation of Fontforge. Being a Macport installation it is not 
located in the usual System > Library > . . . location. Nonetheless, if I run 
Terminal in interactive Python mode, this is the (default) version launched.

Presumably because at some time you requested for that to happen, by running:

sudo port select python python27

If you want to return to the OS X version of python being default, you would 
run:

sudo port select python none


> I do not seem to be able to launch IDLE, but more importantly to me, is that 
> I 
wish to install TKinter. I have downloaded the installer from ActiveState but I 
have not run it (at the time of writing). This is what the Read Me file states:
>   • ActiveTcl 8.5.15.1.297588 installs
>   • Tcl as a framework in 
> "/Library/Frameworks/Tcl.framework/Versions/8.5".
>   • Tk as a framework in 
> "/Library/Frameworks/Tk.framework/Versions/8.5".
>   • the packages in "/Library/Tcl/".
>   • Symbolic links and stubs are created in "/usr/local/bin" for 
> launching 
tclsh, and wish from the command line.
>   • Symbolic links are created in "/Applications/Utilities" for launching 
> wish 
from the Finder, Panel, etc.
>   • The ActiveTcl documentation is installed in the Tcl framework, but a 
symbolic link is created in "/Library/Documentation/Help/ActiveTcl-8.5" to them.
> The question is; should I proceed with the ActiveState installation, or is 
their a better alternative Port option? 
> 
> I am concerned that the location of Python v2.7.6 which is located in 
/opt/local/Library/Frameworks/Python.framework/Versions/2.7 may be on issue.

Software installed in /usr/local or /Library/Frameworks often causes problems 
for MacPorts-installed software. You should use MacPorts, or manually-installed 
software in those locations, not both together; to avoid problems, please 
uninstall the one you don’t want to use.

If you want to stick with MacPorts, then IDLE is already included with the 
python27 port, and tkinter is in the py27-tkinter port. If they don’t work, 
please report the bugs to us.


 
 
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Python and Tkinter

2014-04-02 Thread Lenore Horner
> If you want to stick with MacPorts, then IDLE is already included with the 
> python27 port, and tkinter is in the py27-tkinter port. If they don’t work, 
> please report the bugs to us.

It is included in the port, but is known not to work  because IDLE depends in 
py27-tkinter which depends on python.  See 
https://trac.macports.org/ticket/38746
https://trac.macports.org/ticket/42191
This defect was also discussed on this list back in January.

Lenore Horner

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Python and Tkinter

2014-04-01 Thread Ryan Schmidt

On Apr 1, 2014, at 19:15, uga...@talktalk.net wrote:

> I run OSX v10.6.8 (Snow Leopard) and I have a few versions of Python 
> installed. The latest version is 2.7.6 installed itself along with (I 
> beleive) a Macport installation of Fontforge. Being a Macport installation it 
> is not located in the usual System > Library > . . . location. Nonetheless, 
> if I run Terminal in interactive Python mode, this is the (default) version 
> launched.

Presumably because at some time you requested for that to happen, by running:

sudo port select python python27

If you want to return to the OS X version of python being default, you would 
run:

sudo port select python none


> I do not seem to be able to launch IDLE, but more importantly to me, is that 
> I wish to install TKinter. I have downloaded the installer from ActiveState 
> but I have not run it (at the time of writing). This is what the Read Me file 
> states:
>   • ActiveTcl 8.5.15.1.297588 installs
>   • Tcl as a framework in 
> "/Library/Frameworks/Tcl.framework/Versions/8.5".
>   • Tk as a framework in 
> "/Library/Frameworks/Tk.framework/Versions/8.5".
>   • the packages in "/Library/Tcl/".
>   • Symbolic links and stubs are created in "/usr/local/bin" for 
> launching tclsh, and wish from the command line.
>   • Symbolic links are created in "/Applications/Utilities" for launching 
> wish from the Finder, Panel, etc.
>   • The ActiveTcl documentation is installed in the Tcl framework, but a 
> symbolic link is created in "/Library/Documentation/Help/ActiveTcl-8.5" to 
> them.
> The question is; should I proceed with the ActiveState installation, or is 
> their a better alternative Port option? 
> 
> I am concerned that the location of Python v2.7.6 which is located in 
> /opt/local/Library/Frameworks/Python.framework/Versions/2.7 may be on issue.

Software installed in /usr/local or /Library/Frameworks often causes problems 
for MacPorts-installed software. You should use MacPorts, or manually-installed 
software in those locations, not both together; to avoid problems, please 
uninstall the one you don’t want to use.

If you want to stick with MacPorts, then IDLE is already included with the 
python27 port, and tkinter is in the py27-tkinter port. If they don’t work, 
please report the bugs to us.

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Python and Tkinter

2014-04-01 Thread ugajin

 I run OSX v10.6.8 (Snow Leopard) and I have a few versions of Python 
installed. The latest version is 2.7.6 installed itself along with (I beleive) 
a Macport installation of Fontforge. Being a Macport installation it is not 
located in the usual System > Library > . . . location. Nonetheless, if I run 
Terminal in interactive Python mode, this is the (default) version launched.

I do not seem to be able to launch IDLE, but more importantly to me, is that I 
wish to install TKinter. I have downloaded the installer from ActiveState but I 
have not run it (at the time of writing). This is what the Read Me file states:

ActiveTcl 8.5.15.1.297588 installs
 Tcl as a framework in "/Library/Frameworks/Tcl.framework/Versions/8.5".
 Tk as a framework in  "/Library/Frameworks/Tk.framework/Versions/8.5".
 the packages in "/Library/Tcl/".

Symbolic links and stubs are created in"/usr/local/bin" for launching 
tclsh,and wish from the command line.
Symbolic links are created in"/Applications/Utilities" for launching
wish from the Finder, Panel, etc.
The ActiveTcl documentation is installed in the Tclframework, but a 
symbolic link is created in"/Library/Documentation/Help/ActiveTcl-8.5"
to them.
The question is; should I proceed with the ActiveState installation, or is 
their a better alternative Port option? 

I am concerned that the location of Python v2.7.6 which is located in 
/opt/local/Library/Frameworks/Python.framework/Versions/2.7 may be on issue.

Many thanks.

-A
 
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users