OpenDelta
OpenDelta copied to clipboard
`ModuleNotFoundError` caused by `turtle` package
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'
Sorry for our negligence. The code you mentioned is indeed unintended. You can comment it out directly and we'll also fix it later. Thank you for pointing out this.