1

I have created a script in Python which has a GUI and makes converts between an EML file and an HTML file. This script works perfectly on my Windows 10 computer, but now I'm trying to port it to my Mac which has macOS 11.5.1 Big Sur installed. I have installed all the packages that I need, but I'm having a problem with one specific library tkdnd. When I try to run my program, I get this error:

Traceback (most recent call last):
  File "/Users/john/Desktop/Python/script.py", line 246, in <module>
    root = TkinterDnD.Tk()
  File "/Users/john/Desktop/Python/TkinterDnD2/TkinterDnD.py", line 271, in __init__
    self.TkdndVersion = _require(self)
  File "/Users/john/Desktop/Python/TkinterDnD2/TkinterDnD.py", line 41, in _require
    raise RuntimeError('Unable to load tkdnd library.')
RuntimeError: Unable to load tkdnd library.

How could I get this script working on macOS? I have already installed tkdnd2.8 in every directory that I found on the Internet, so if someone can help me, it will be awesome. Thanks!

KetZoomer
  • 2,701
  • 3
  • 15
  • 43
Heaven13
  • 11
  • 1
  • 1
    Does this answer your question? [Python Tkinter DnD2 root = TkinterDnD.Tk() Unable to load tkdnd library](https://stackoverflow.com/questions/55045180/python-tkinter-dnd2-root-tkinterdnd-tk-unable-to-load-tkdnd-library) – KetZoomer Jul 31 '21 at 02:53
  • 1
    Or this: https://stackoverflow.com/questions/55045180/python-tkinter-dnd2-root-tkinterdnd-tk-unable-to-load-tkdnd-library or https://stackoverflow.com/questions/25427347/how-to-install-and-use-tkdnd-with-python-tkinter-on-osx – KetZoomer Jul 31 '21 at 02:54

0 Answers0