rdbende/tkinterDnD

Example not working anymore

Opened this issue · 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..

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?

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).

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 :((