0

I have faced error while opening the Thonny Ide.

ERROR: Internal error
Traceback (most recent call last):
  File "C:\Program Files (x86)\Thonny\lib\tkinter\__init__.py", line 1705, in __call__
    return self.func(*args)
  File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\running.py", line 356, in cmd_stop_restart
    self.restart_backend(True)
  File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\running.py", line 458, in restart_backend
    self._proxy = backend_class(clean)
  File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\running.py", line 1036, in __init__
    CPythonProxy.__init__(self, executable)
  File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\running.py", line 624, in __init__
    self._start_new_process()
  File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\running.py", line 764, in _start_new_process
    debug("Starting the backend: %s %s", cmd_line, get_workbench().get_cwd())
  File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\workbench.py", line 1252, in get_cwd
    return normpath_with_actual_case(os.path.expanduser("~"))
  File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\common.py", line 212, in normpath_with_actual_case
    assert os.path.isabs(name)
AssertionError

OS: Windows 7 64-bit
Python: Python 3.7(94bit)
Thonny:3.1.2
Georgy
  • 12,464
  • 7
  • 65
  • 73
KOUSIK daniel
  • 305
  • 1
  • 3
  • 11

3 Answers3

1

Open %APPDATA%\Thonny\configuration.ini (or wherever your IDE config is)

Scroll down to [run] section and check parameter working_directory.

Make sure something meaningful is set there, e.g. C:\ should do the trick (no double backslahes, quotes, etc..).

I had the same issue. For some reason only word lib was there. Modifying this parameter to a proper filesystem path fixed it in my case.

qwwerty
  • 11
  • 1
  • 1
0

Something has corrupted the current instance of your Thonny installation at the backend.

You will first need to completely uninstall Thonny and then remove any imprints of Thonny from your computer's registry.

Then reinstall Thonny and open Thonny IDE. Hope this helps.

-1

I also faced this issue, for me it was due to Antivirus, just disabling Auto Containment fixed the issue, Hope this helps.

Sachin Puri
  • 876
  • 7
  • 6