spettitt Posted September 3 Share Posted September 3 (edited) Hello, I'm using a 3rd party UI library based on Tkinter for my plugin (internal to my company only, not commercial), because it's quite complex and would be painful to do in the standard Vectorworks dialogs. The plugin runs great on Windows - no issue at all. But on Mac, I get the error that something related to Tk in Python 3.9 is missing/wrong. Traceback (most recent call last): File "<string>", line 3, in <module> File "<string>", line 1, in <module> File "<string>", line 1, in <module> File "<string>", line 1, in <module> [Previous line repeated 46 more times] File "<string>", line 8, in <module> File "/Applications/Vectorworks 2024/Vectorworks 2024.app/Contents/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/ init .py", line 37, in <module> import _tkinter 4 If this fails your Python may not be configured for Tk ImportError: dlopen(/Applications/Vectorworks 2024/Vectorworks 2024.app/Contents/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynloadLtkinter.cpython-39-darwin.so, 0x0002): Library not loaded: /Library/Frameworks/Python.framework/Versions/3.9/lib/libtc18.6.dylib Referenced from: <D34AFA3C-4A61-34E2-9E86-5F5A9865C714> /Applications/Vectorworks 2024/Vectorworks 2024.app/Contents/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynloadLtkinter.cpython-39-darwin.so Reason: tried: 1/Library/Frameworks/Python.framework/Versions/3.9/lib/libtc18.6.dylib' (no such file), ./System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.9/lib/libtc18.6.dylib' (no such file), ./Library/Frameworks/Python.framework/Versions/3.9/lib/libtc18.6.dylib. (no such file), '/usr/lib/libtc18.6.dylibs (no such file, not in dyld cache) Just looking for advice on the way forwards please - is the Vectorworks Python implementation in Mac known to be different from Windows? Edited September 3 by spettitt Quote Link to comment
JBenghiat Posted September 3 Share Posted September 3 I think Tkinter is technically separate from Python. See here. https://www.python.org/download/mac/tcltk/ You probably need to install as an external library. I found in my experiments that Tkinter crashed VW — but this was back in the first version that supported Python Quote Link to comment
Pat Stanford Posted September 3 Share Posted September 3 I had filed a bug on that back in 2022. It is scheduled to be fixed in 2025 Update 2. Quote Link to comment
spettitt Posted September 4 Author Share Posted September 4 Thanks guys. I'll try and have a go at installing it now, as I need to roll this out ASAP, but it may have to wait for 25 U2. The issue is that I can't find a wheel file for Tkinter, but there are probably other ways of doing it. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.