I installed python3.9 with
sudo apt install python3.9
Then Idle with
sudo apt install idle-python3.9
When I try to run idle-python3.9, I get the following traceback:
Traceback (most recent call last):
File "/usr/bin/idle-python3.9", line 3, in <module>
from idlelib.pyshell import main
File "/usr/lib/python3.9/idlelib/pyshell.py", line 53, in <module>
from idlelib.editor import EditorWindow, fixwordbreaks
File "/usr/lib/python3.9/idlelib/editor.py", line 19, in <module>
from idlelib import configdialog
File "/usr/lib/python3.9/idlelib/configdialog.py", line 26, in <module>
from idlelib.config_key import GetKeysDialog
File "/usr/lib/python3.9/idlelib/config_key.py", line 7, in <module>
from tkinter.simpledialog import _setup_dialog
ImportError: cannot import name '_setup_dialog' from 'tkinter.simpledialog'
(/usr/lib/python3.9/tkinter/simpledialog.py)
Sure enough, there is no such method in tkinter.simpledialog. Grepping around, I found the following python files were trying to do the import:
/usr/lib/python3.9/idlelib/config_key.py
/usr/lib/python3.9/idlelib/searchbase.py
/usr/lib/python3.9/idlelib/query.py
Why the mismatch between the idlelib files and idle-python3.9 when they are the same version, installed together I believe. How do I fix this? I'm a newb... thanks in advance.