Jump to content

Python on Mac - Tkinter not included?


Recommended Posts

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.


image.thumb.png.a6919a36cd0ae8bc8ee830e1ab2f7826.png

 

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 by spettitt
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...