Issue382

Title nuitka on macos X load _tkinter.so from a wrong path
Priority bug Status chatting
Superseder Nosy List 2le@2le.net
Assigned To Keywords

Created on 2017-10-24.13:51:36 by 2le@2le.net, last changed by kayhayen.

Messages
msg2276 (view) Author: kayhayen Date: 2017-10-26.10:53:54
Nuitka is using "otool" to discover needed libraries, maybe something in the 
output for one your libraries is strange there, can you check:

_detectBinaryPathDLLsMacOS

in Standalone.py and let me know, where that 
/Library/Frameworks/Tk.framework/Versions/8.5/Tk came from. The full otool 
output from that file then would be sweet.

Thanks,
Kay
msg2273 (view) Author: 2le@2le.net Date: 2017-10-25.13:40:14
With a brew version of python it work better. Still a problem with pycurl but 
resolved with a source install of pycurl. Very very strange behavior.
msg2272 (view) Author: 2le@2le.net Date: 2017-10-24.14:09:24
just to add some information, the folder doesn't even exist ( 
/Library/Frameworks/Tk.framework/Versions/8.5/Tk )
msg2271 (view) Author: 2le@2le.net Date: 2017-10-24.13:51:36
I have a simple python script which i try to compile with nuitka. It work fine on 
Ubuntu but on my Mac i've got this traceback

the _tkinter.so exist but in the 
/Library/Frameworks//Python.framework/Versions/2.7/lib/python2.7/lib-
dynload/_tkinter.so

I don't know what to do to handle this error.

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/nuitka", line 211, 
in <module>
    MainControl.main()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-
packages/nuitka/MainControl.py", line 815, in main
    standalone_entry_points = standalone_entry_points
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-
packages/nuitka/freezer/Standalone.py", line 1067, in copyUsedDLLs
    target_path
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 
119, in copy
    copyfile(src, dst)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 
82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 
'/Library/Frameworks/Tk.framework/Versions/8.5/Tk'
History
Date User Action Args
2017-10-26 10:53:54kayhayensetmessages: + msg2276
2017-10-25 13:40:142le@2le.netsetstatus: unread -> chatting
messages: + msg2273
2017-10-24 14:09:452le@2le.netsetstatus: chatting -> unread
2017-10-24 14:09:242le@2le.netsetstatus: unread -> chatting
messages: + msg2272
2017-10-24 13:51:362le@2le.netcreate