Dear all, I am having the same problem on my Mac OS X system. When I generate an executable containing Tcl/Tk with PyInstaller, this seems to work successfully, but when I then try to execute it, I get the following:
Traceback (most recent call last): File "<string>", line 92, in <module> File "/Users/marnixmedema/Desktop/pyinstaller-pyinstaller-c6d550c/PyInstaller/loader/iu.py", line 386, in importHook File "/Users/marnixmedema/Desktop/pyinstaller-pyinstaller-c6d550c/PyInstaller/loader/iu.py", line 480, in doimport File "/Users/marnixmedema/pyinstaller-pyinstaller-c6d550c/mgb_gui/build/pyi.darwin/mgb_gui/out00-PYZ.pyz/Tkinter", line 39, in <module> File "/Users/marnixmedema/Desktop/pyinstaller-pyinstaller-c6d550c/PyInstaller/loader/iu.py", line 386, in importHook File "/Users/marnixmedema/Desktop/pyinstaller-pyinstaller-c6d550c/PyInstaller/loader/iu.py", line 459, in doimport File "/Users/marnixmedema/Desktop/pyinstaller-pyinstaller-c6d550c/PyInstaller/loader/iu.py", line 248, in getmod File "/Users/marnixmedema/Desktop/pyinstaller-pyinstaller-c6d550c/PyInstaller/loader/iu.py", line 105, in getmod ImportError: dlopen(/var/folders/07/xk8363ds58zd3zh1x3jm58dm0000gn/T/_MEIhUUzXZ/_tkinter.so, 2): Library not loaded: @loader_path/Tcl Referenced from: /var/folders/07/xk8363ds58zd3zh1x3jm58dm0000gn/T/_MEIhUUzXZ/_tkinter.so Reason: image not found logout I saw no 'ERROR: could not find TCL/TK' message whatsoever, though. I'm using the 2.0dev version which I downloaded in July (after all the changes related to the above discussion). Before, the same file would compile without problems, but I recently had to perform a number of updates (Xcode, and a number of Python-related libraries using MacPorts and HomeBrew) to get a Python module working. It seems that one of these updates conflicts with PyInstaller. I have tried several things to make it work: - use different Python executables to run PyInstaller (/usr/bin/python, /usr/local/bin/python, the one in Python.app) in normal 64-bits and in 32-bits mode, and in --onedir mode and --onefile mode. None of these get rid of the error. - edit hook-_tkinter.py to manually return the correct paths to the latest versions of TK and Tcl in the functions _find_tk_darwin_framework(), _find_tk_tclshell() and _find_tk(). No luck either: the error remains. I have now idea what to do next. Do any of you have any other ideas? With kind regards, Marnix -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To view this discussion on the web visit https://groups.google.com/d/msg/pyinstaller/-/ZGjotQCZdZsJ. 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.
