tkinterDnD icon indicating copy to clipboard operation
tkinterDnD copied to clipboard

Example not working anymore

Open biscuitdelicious opened this issue 1 year ago • 3 comments

Hi there,

The example given on the main page doesn't work anymore. Python 3.11

Any reasons why? Installed right the module..

biscuitdelicious avatar May 24 '23 16:05 biscuitdelicious

It works just fine for me with Python 3.11.2 on Debian Sid with KDE Plasma 5.27.2

Can you share details about your system and describe the error you get?

rdbende avatar May 24 '23 20:05 rdbende

Macbook with M1 pro chip. Python 3.11

_tkinter.TclError: dlopen(/Users/~/Desktop/Python/Programming/CV - Projects/Watermark App/venv/lib/python3.11/site-packages/tkinterDnD/mac/libtkdnd2.9.2.dylib, 0x0006): tried: '/Users/~/Desktop/Python/Programming/CV - Projects/Watermark App/venv/lib/python3.11/site-packages/tkinterDnD/mac/libtkdnd2.9.2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/~/Desktop/Python/Programming/CV - Projects/Watermark App/venv/lib/python3.11/site-packages/tkinterDnD/mac/libtkdnd2.9.2.dylib' (no such file), '/Users/~/Desktop/Python/Programming/CV - Projects/Watermark App/venv/lib/python3.11/site-packages/tkinterDnD/mac/libtkdnd2.9.2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

What I understand is: there is an incompatibility between the architecture of the library file and the python interpreter: The library file may have been compiled for a different architecture (arm64) than the one used by the python interpreter (x86_64).

biscuitdelicious avatar May 25 '23 06:05 biscuitdelicious

Ok, I see. TkinterDnD doesn't (yet) have binaries compiled for arm platforms. There was a project called tkinterdnd2-universal, that had binaries for mac M1, but both the repo and the Github user seems to be deleted now :((

rdbende avatar May 25 '23 11:05 rdbende