dji-sdk / Tello-Python

This is a collection of python modules that interact with the Ryze Tello drone.
Other
1.35k stars 646 forks source link

Tello_Video on Phyton3 is working now. #20

Open f41ardu opened 5 years ago

f41ardu commented 5 years ago

Feel free to test https://github.com/f41ardu/Tello-Python/tree/master/PY3_Tello_Videop On an Raspberry PI 3+ I still got multiple video errors but video is working on python 3.5. I assume it may work on 3.x, x >= 5 as well. Please let me know if it is working an I'll request a merge into dji-sdk/Tello-Phyton.

rum-neutralo commented 5 years ago

@f41ardu I tried your code, but had to use "Tkinter" (with uppercase T) as import statement in your file PY3_Tello_Videop/tello_control_ui. ! I`m on MAC OS.

f41ardu commented 5 years ago

@f41ardu I tried your code, but had to use "Tkinter" (with uppercase T) as import statement in your file PY3_Tello_Videop/tello_control_ui. ! I`m on MAC OS.

Seems to be MAC OS specific.

boahneedle commented 5 years ago

I'm getting:

ImportError: dlopen(/Users/noahnoah/Documents/Tello-Python-master 2/PY3_Tello_Videop/libh264decoder.so, 2): no suitable image found.

upon running your fork with Py 3.7.3 on MacOS Sierra 10.12.2

f41ardu commented 5 years ago

Build libh264decoder.so and place it in

pi@raspberrypi:~/code/Tello-Python/PY3_Tello_Videop $ ls h264decoderpi3 LICENSE.md pycache tello_control_ui.py libh264decoder.so main.py README.md tello.py

Hope that solve your issue.

boahneedle commented 5 years ago

Hello, thank you for your reply.

I placed the libh264decoder.so file that is included in your repo into that exact directory, and that is when the above error was thrown.

For clarification: do I have to compile from source?

f41ardu commented 5 years ago

Sorry, yes you have to build the decoder lib. Unfortunately I included the Raspberry binaries.

koadaboa commented 5 years ago

Hello, I have been getting the issue

File "main.py", line 1, in import tello as tello File "/Users/KekoaSantana/Documents/tellopython3/PY3_Tello_Videop/tello.py", line 5, in import libh264decoder ImportError: dynamic module does not define module export function (PyInit_libh264decoder)

I am not sure what the cause of this is and looked it up and couldn't find much. maybe you are aware of it? I did the whole install thing and then moved the libh264decoder.so from tello_video to py3_tello_videop since there is no install in that folder.