Closed zelvet-velvet closed 1 year ago
I have the same issue. I looked #90 but the solutions there did not work, then reached to #153. I am using Windows11, WSL2, Ubuntu20.04, Python3.9.13 under pyenv and virtualenv. The same code works on M1 Mac, Raspberry Pi, Jetson Nano. So, I believe the problem is caused by environment. Below is my requirements.txt.
av==9.2.0 distlib==0.3.4 djitellopy==2.4.0 filelock==3.6.0 numpy==1.23.0 opencv-python==4.6.0.66 Pillow==9.1.1 platformdirs==2.5.1 protobuf==3.19.4 six==1.16.0
I also have the same error on my main PC which is a arch system, however there is no problem on neither of my laptops (one runs arch and the other one windows 11). I also did not have any problem in a windows 10 kvm vm (hosted on my main PC by redirecting my wifi dongle). All ran python 3.10 under virtualenv using opencv-python 4.6.0.66. It was identical code to Murtazas drone programming course (The image capture part) . I have tried various versions of both python and opencv.
I'm also facing this problem. Using Windows 10 and Ubuntu 22.04, both didn't get video feedback from drone.
Tried to set environment same as Murtazza's (the YouTuber that posted a 3-hour tutorial using Tello as example) settings: Python Interpretor 3.7 djitellopy 1.5 numpy 1.19.0 opencv-python 4.3.0.36 pip 19.0.3 pygame 1.9.6 setuptools 40.8.0 Didn't solve the problem.
anyone found a solution?
anyone found a solution?
I checked the official SDK demo code example from DJI ( https://github.com/dji-sdk/Tello-Python ) And they are using Python 2.7, so in the end use their code directly.
The problem here is kind of skipped instead of solved.
It's hard to help with all the environment problems coming up. Since its working for most people its not a code bug, but usually a problem with opencv + python. I am about to release a new djitellopy version, which now uses pyAV instead of opencv for receiving frames. I hope this will help with many of these problems. Please everyone try updating your djitellopy versions
I have the same problem. Is there any solution now?
I have the same problem. Is there any solution now?
Which djitellopy
version are you using? Can you post your output (maybe in a new issue)?
Using the newest version 2.5 from pypi should solve all opencv problems.
My set up is wsl2 ubuntu conda environment with Python 3.6.13.
I am trying to test if my computer can recieve the video output from tello. But it seems something go wrong.
code:
output :
Does any one have any idea how to solve this error? Thanks.