dji-sdk / Tello-Python

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

Tello_video not working in Ubuntu 20.04 #69

Open pczekalski opened 4 years ago

pczekalski commented 4 years ago

I'm trying to run TelloVideo under Ubuntu 20.04 LTS with no success.

While importing libh264decoder (compilation went OK, just some warnings), I got:

Exception has occurred: ImportError
/lib/x86_64-linux-gnu/libboost_python38.so.1.71.0: undefined symbol: _Py_tracemalloc_config
  File "/home/pczekalski/Documents/Repos/Tello-Python/Tello_Video/tello.py", line 5, in <module>
    import libh264decoder

The python version is 2.7.18.rc1

Also note, Ubuntu 20.04 no longer supports pip on python2 - you need to refer to it as pip2 in the installation script.

Regards,

Piotr

dji-dev commented 4 years ago

Agent comment from Ho.Yan in Zendesk ticket #35260:

Dear Developer,

This question you can contact RYZE Tello's technical support: support.cn@ryzerobotics.com

Warm Regards, DJI Developer Support

snakehaihai commented 4 years ago

I'm trying to run TelloVideo under Ubuntu 20.04 LTS with no success.

While importing libh264decoder (compilation went OK, just some warnings), I got:

Exception has occurred: ImportError
/lib/x86_64-linux-gnu/libboost_python38.so.1.71.0: undefined symbol: _Py_tracemalloc_config
  File "/home/pczekalski/Documents/Repos/Tello-Python/Tello_Video/tello.py", line 5, in <module>
    import libh264decoder

The python version is 2.7.18.rc1

Also note, Ubuntu 20.04 no longer supports pip on python2 - you need to refer to it as pip2 in the installation script.

Regards,

Piotr

manually link the import. by calling import sys above. then sys.path.insert(0, PATHTOYOURH264) then import libh264decoder. this worked for me

pi0projects commented 3 years ago

hey @snakehaihai, could you kindly share your script on how you made it work. I am new to programming. I also am running ubuntu 20.04

thank you! 👊

snakehaihai commented 3 years ago

hey @snakehaihai, could you kindly share your script on how you made it work. I am new to programming. I also am running ubuntu 20.04

thank you!

I end up giving up this code.

To get the video up, just use udp packet sender tools to send.

to real-time subscribe the video. just use the ffplay tools to see. or using ffmepg to capture to OpenCV

You may follow up my post here to get things up https://stackoverflow.com/questions/67796536/iptables-routing-packets-with-a-raspberry-pi-to-a-tello-drone/67809682#67809682

pi0projects commented 3 years ago

thanks! i will check it out

dicisoft commented 2 years ago

thanks! i will check it out

@pi0projects finally you solved this issue ?

allrobot commented 2 years ago

@pi0projects @pczekalski Hello, how are you solving it?

pczekalski commented 2 years ago

Hi,

Not at all. Just switched to other drones with PX4 stack.

Regards,

P.

On Fri, 25 Mar 2022 at 12:08, all sky @.***> wrote:

@pi0projects https://github.com/pi0projects @pczekalski https://github.com/pczekalski Hello, how are you solving it?

— Reply to this email directly, view it on GitHub https://github.com/dji-sdk/Tello-Python/issues/69#issuecomment-1078912836, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFVAVRRTRUXWOEHAZSZP3B3VBWNDNANCNFSM4NPHNUGA . You are receiving this because you were mentioned.Message ID: @.***>