Hi,
After running a recent port selfupdate/port upgrade outdated, I'm having
trouble getting back to a functional tcl/tk for use with Python's Tkinter.
Immediately after the upgrade, I encountered the "tcl not built with
coreFoundation" bug. I fixed this by applying the patch
from http://trac.macports.org/ticket/21968 . (Out of curiosity, why has this
patch not been incorporated into the tcl Portfile, at the very least as a
variant? It's a pain to have to patch this after every minor version number
bump.) That installed fine, and I no longer get that error message.
However, now I'm getting a new one:
_tkinter.TclError: Can't find a usable tk.tcl in the following directories:
> /opt/local/lib/tcl8.5/tk8.5 /opt/local/lib/tcl8.5/tk8.5/Resources/Scripts
>/opt/local/lib/tk8.5 /opt/local/lib/tk8.5/Resources/Scripts
>/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/lib/tk8.5
>
>/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/lib/tk8.5/Resources/Scripts
>
>/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/lib/tk8.5
>
>/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/library
>
>
>/opt/local/lib/tk8.5/tk.tcl: version conflict for package "Tk": have 8.5.7,
>need exactly 8.5.10
>version conflict for package "Tk": have 8.5.7, need exactly 8.5.10
> while executing
>"package require -exact Tk 8.5.10"
> (file "/opt/local/lib/tk8.5/tk.tcl" line 18)
> invoked from within
>"source /opt/local/lib/tk8.5/tk.tcl"
> ("uplevel" body line 1)
> invoked from within
>"uplevel #0 [list source $file]"
>
>
>
>
>This probably means that tk wasn't installed properly.
>
>
This is quite odd, because I do have Tk 8.5.10:
mperrin@prometheus ~ > port installed tk
>The following ports are currently installed:
> tk @8.5.10_0+quartz (active)
>mperrin@prometheus ~ > port installed tcl
>The following ports are currently installed:
> tcl @8.5.10_1+threads (active)
I'm guessing this may be due to some kind of path problem, but I can't imagine
what, since this was working perfectly fine on this machine recently using tcl
& tk versions 8.5.9. Any suggestions? Thanks much.
- Marshall_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users