ImportError in sololearn code playground | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

ImportError in sololearn code playground

I'm getting this error while running my code, it raising the ImportError. Traceback (most recent call last): File "file0.py", line 1, in <module> import turtle File "../Playground//turtle.py", line 107, in <module> import tkinter as TK File "../Playground//tkinter/__init__.py", line 36, in <module> import _tkinter # If this fails your Python may not be configured for Tk ImportError: libtk8.6.so: cannot open shared object file: No such file or directory

3rd Jan 2022, 4:45 PM
Sai Ganesh Darni
Sai Ganesh Darni - avatar
1 Answer
+ 5
Sololearn code playground doesn't support Gui modules like tkinter
3rd Jan 2022, 5:16 PM
Simba
Simba - avatar