Hello Tello Pilot!
Join our DJI Tello community & remove this banner.
Sign up

Tkinter error freezes camera feed

courtneysmith77

New member
Joined
Feb 17, 2024
Messages
1
Reaction score
0
Hi, I have been getting this error for quite some time and I am struggling to find a solution. My camera works very well for the first 30ish seconds of flight but then I get these errors:

Exception ignored in: <function Variable.__del__ at 0x74ff8a325fc0>
Traceback (most recent call last):
File "/usr/lib/python3.10/tkinter/__init__.py", line 388, in __del__
if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
[INFO] tello.py - 462 - Response forward 25: 'ok'
Exception ignored in: <function Variable.__del__ at 0x74ff8a325fc0>
Traceback (most recent call last):
File "/usr/lib/python3.10/tkinter/__init__.py", line 388, in __del__
if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop

I am still able to send commands to the drone, but then I get this error that follows when looking at the camera again:

Exception ignored in: <function Variable.__del__ at 0x74ff8a325fc0>
Traceback (most recent call last):
File "/usr/lib/python3.10/tkinter/__init__.py", line 388, in __del__
if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Image.__del__ at 0x74ff8a191750>
Traceback (most recent call last):
File "/usr/lib/python3.10/tkinter/__init__.py", line 4056, in __del__
self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop

I'm not well educated on the multi-threading aspects of python, so I'm don't know where to begin debugging this problem. Any and all suggestions are greatly appreciated. Thank you!
 
Hello,

I faced many issues with developing Python applications for the Tello drone, especially when using Tkinter for the GUI. That's actually why I started my YouTube channel, Jake's Science Shop. I've posted a few videos that cover how to stream video from the Tello drone and display it in a Tkinter GUI window. These might help you figure out the issue you're facing or implement a solution. Here is a link to the series that covers programming a drone controller GUI with Tkinter for the Tello drones that might be of help.

While these videos might not address your specific issue directly, I hope they can point you in the right direction. I know this might seem like I'm just trying to promote my channel, but my genuine intention is to help others overcome the problems I faced when programming the Tello drones. If sharing this here can help, then I'm all for it!
 

New Posts

Members online

No members online now.

Forum statistics

Threads
5,701
Messages
39,968
Members
17,067
Latest member
atapattu

New Posts