Bope
Posts: 71
Joined: Sat Jul 06, 2019 2:57 am

Thonny error

Fri Jul 12, 2019 11:09 pm

My son and I are learning python with a Pi3. Everything was working fine until we started getting errors after a simple input statement like x = input ('Name?') We are using Thonny. Here is the error we are getting

Traceback (most recent call last):
File "/usr/lib/python3.5/tkinter/__init__.py", line 1562, in __call__
return self.func(*args)
File "/usr/lib/python3/dist-packages/thonny/tktextext.py", line 233, in dispatch
return fun(event)
File "/usr/lib/python3/dist-packages/thonny/shell.py", line 382, in perform_return
EnhancedTextWithLogging.perform_return(self, event)
File "/usr/lib/python3/dist-packages/thonny/tktextext.py", line 408, in perform_return
self.insert("insert", "\n")
File "/usr/lib/python3/dist-packages/thonny/shell.py", line 343, in intercept_insert
self._try_submit_input()
File "/usr/lib/python3/dist-packages/thonny/shell.py", line 493, in _try_submit_input
self._submit_input(submittable_text)
File "/usr/lib/python3/dist-packages/thonny/shell.py", line 636, in _submit_input
get_runner().send_program_input(text_to_be_submitted)
File "/usr/lib/python3/dist-packages/thonny/running.py", line 237, in send_program_input
self._proxy.send_program_input(data)
AttributeError: 'NoneType' object has no attribute 'send_program_input'

User avatar
neilgl
Posts: 2185
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: Thonny error

Sat Jul 13, 2019 6:16 pm

Can you post here the python code you are trying to run?

Bope
Posts: 71
Joined: Sat Jul 06, 2019 2:57 am

Re: Thonny error

Sun Jul 14, 2019 7:35 pm

Here is the code
print ('hi')
w = input ('Name')
print (w)

Return to “Troubleshooting”