I tried rebuilding Python2.7 from source code using the --enable frameworks 
option, and while I got a few complaints about missing bits it built and runs.  
That built a new _tinkter.so, which I hoped would now point to the existing 
framework installs of Tcl and Tk.  I modified hook-_tkinter.py to use my 
libraries:
       TCL_root = "/Library/Frameworks/Tcl.framework/Versions/Current"
        TK_root = "/Library/Frameworks/Tk.framework/Versions/Current"  

It still complains about not finding TCL/TK.  I haven't figured out how to tell 
where _tkinter.so is going for Tcl.  I tried rebuilding Tcl and Tk; Tcl builds 
but Tk doesn't, apparently due to something related to 64 bit and aqua.  

At this point I haven't solved the original problem, and now my program doesn't 
run at all due to not having all the other libraries it needs.  I took a whack 
at installing everything and was reminded what a pain it was to get this stuff 
all working in the first place.  After eight or so hours of this I gave up and 
restored back to where I was this morning, so now my program runs again.  (Just 
to make it more fun, for the first four hours I was working on this, I was on 
the phone with Microsoft support getting bounced back and forth.  They couldn't 
get that problem solved either).

By "This probably has to be fixed," are you suggested that support needs to be 
added to pyinstaller itself?  Do I have any options for getting this to work 
with my current installation of Python and associated libraries?

Thanks,
Lynn

On Mar 12, 2012, at 6:15 AM, Martin Zibricky wrote:

> Lynn Oliver píše v Ne 11. 03. 2012 v 21:53 -0700:
>> Building in debug mode and running the resulting app gives me, as you
>> might expect: ImportError:
>> dlopen(/var/folders/qq/h5gj3f3s0rx41lhd7h0lt2hm0000gn/T/_MEIlWWvbW/_tkinter.so,
>>  2): Library not loaded: @executable_path/Tcl
>> 
>> Looking at sys.path, I
>> see: 
>> /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
>>  
>> 
>> Which pyinstaller module is issuing the "ERROR: could not find TCL/TK"
>> message?
> 
> Function find_tk_darwin is looking only in system wide Tcl/Tk
> installation. Not in the paths from Homebrew / Macports or similar
> packaging systems.
> 
> This has to be probably fixed to work with python from Homebrew /
> Macports.
> 
> PyInstaller/hooks/hook-_tkinter.py
> 
> 37         TCL_root =
> "/System/Library/Frameworks/Tcl.framework/Versions/Current"                   
>                                                                               
>                                 
> 38         TK_root =
> "/System/Library/Frameworks/Tk.framework/Versions/Current"                    
>                                                                               
>                                       
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to