OpenDelta icon indicating copy to clipboard operation
OpenDelta copied to clipboard

`ModuleNotFoundError` caused by `turtle` package

Open jon-tow opened this issue 1 year ago • 1 comments

Bug

Attempting to import opendelta results in an error caused by a module not found failure stemming from the turtle graphics package. Is it possible that the following line was unintended, as it is unused elsewhere in the project? https://github.com/thunlp/OpenDelta/blob/a25fb1b2aabb9a2ed55ca941a15b9321bb32377c/opendelta/basemodel.py#L6

Traceback

>>> import opendelta
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".env/lib/python3.8/site-packages/opendelta/__init__.py", line 14, in <module>
    from .basemodel import DeltaBase
  File ".env/lib/python3.8/site-packages/opendelta/basemodel.py", line 6, in <module>
    from turtle import back
  File "/usr/lib/python3.8/turtle.py", line 107, in <module>
    import tkinter as TK
ModuleNotFoundError: No module named 'tkinter'

jon-tow avatar Jan 05 '23 04:01 jon-tow