I am having a similar issue as others with the h264decoder
I am trying to use the tello drones in a school environment and can not get video working. We are using python 3.7 in the anaconda. Could this be part of the problem? Is there an update for later versions on python?
Public comment from Ho.Yan in Zendesk ticket #29278:
Dear Developer,
Thanks for reaching Ryze!
Please confirm that your development environment is fully configured: https://github.com/dji-sdk/Tello-Python/blob/master/TelloPython_FAQ.txt
Best Regards, Ho Yan RYZE TECHNICAL SUPPORT
I have followed all of the steps suggested using the zip and installing the required libraries. The h264decoder is pasted into C:\Program Files\Python37\Lib\site-packages. The only library that was not included in anaconda is opencv-python which I installed. I still get the error with import libh264decoder
Public comment from Ho.Yan in Zendesk ticket #29278:
Dear Developer,
Thanks for reaching Ryze!
It is recommended that you use the terminal to implement
Best Regards,
Ho Yan
RYZE TECHNICAL SUPPORT
inline-1649186874.png
I too am dealing with this same error in Ubuntu 18.04, using a virtualenv and python 3.6. I compiled from source and copied the .so file into my virtualenv site-packages directory. I still get "No module named libh264decoder".
Console error is: import libh264decoder ImportError: dynamic module does not define module export function (PyInit_libh264decoder)
hi,i do not have the file libh264decoder.so during installation in widows
Public comment from Ho.Yan in Zendesk ticket #29278:
Dear Developer,
Thanks for reaching Ryze!
Attached is a libh264decoder file, please download to get.
Best Regards,
Ho Yan
RYZE TECHNICAL SUPPORT
h264decoder.7z
Thank you Ho, but it seems I am still dealing with the issue. From what I have found so far, it seems that Python 3 deals with modules differently and requires a new way of initializing which I believe is why it is looking for this defintion of 'PyInit_libh264decoder'. Others were modifying their file to include this, but I havent found similar references in Tello_Python that are similar to what I have found on Google so far. I'm not sure if it is due to the use of Boost. This is the hole I'm going to jump down a little to see if it shines light on this at all.
Just to be sure, I am copying the file into the following path in my virtualenv: ~/.virtualenvs/tello/lib/python3.6/site-packages
Here is a screenshot of what I'm seeing in PyCharm: https://ibb.co/qDT9xhh
If you have any other ideas I would love to hear them. Otherwise, I will let you know if I figure anything out as well. Thanks for your time!
--------Edit ------------ I do see that your readme clearly states this is for Python 2.7 and I am using 3.6.8. I thought I saw that it was now supporting 3+ but I just noticed that this was others stating they got things working with various versions and not you specifically. Therefore if you are not supporting Python 3, please disregard my comments above. I apologize for not reading the readme more clearly.
Public comment from Ho.Yan in Zendesk ticket #29278:
Dear Developer,
Thanks for reaching Ryze!
Environment testing can be used under Python 2.7, as we cannot guarantee that the 3.7 environment is also compatible.
Best Regards, Ho Yan RYZE TECHNICAL SUPPORT
What kind of operation should be performed on libh264decoder under mac environment? Show libh264decoder model does not exist in pycharm environment I tried to copy the libh264decoder folder and libh264decoder.so to site-packages, but I still get an error?
Public comment from Ho.Yan in Zendesk ticket #29278:
Dear Developer,
Thanks for reaching Ryze!
Environment testing can be used under Python 2.7, as we cannot guarantee that the 3.7 environment is also compatible.
Best Regards, Ho Yan RYZE TECHNICAL SUPPORT
This is a point to respect. To all Python 3 users: When the developer says Python 2, he means Python 2. Python 3 is not downward-compatible to Python 2. Does it work with Python 2 ?
However, I have tried it with Python 2.7 and was not successful, either.
I'm looking for h264decoder.pyd (instead of lib264decoder.pyd) to run on Python3. May I know where I can download it? Thanks!