dji-sdk / RoboMaster-SDK

DJI RoboMaster Python SDK and Sample Code for RoboMaster EP.
Apache License 2.0
311 stars 142 forks source link

Can't install the RoboMaster #41

Open Mumprecht opened 3 years ago

Mumprecht commented 3 years ago

If I use the command "pip3 install robomaster" then I got the message: "ERROR: Could not find a version that satisfies the requirement robomaster ERROR: No matching distribution found for robomaster"

The installed version of python is 3.7.3 and opencv is installed

jamespong007 commented 3 years ago

Hi, I tried to have the following library installed, then the robomaster SDK is successfully installed. $sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8- dev liblapack-dev libblas-dev gfortran $ sudo apt-get install python3-pip $ sudo pip3 install -U pip testresources setuptools==49.6.0 $ sudo pip3 install -U numpy==1.19.4 future==0.18.2 mock==3.0.5 h5py==2.10.0 keras_preprocessing==1.1.1 keras_applications==1.0.8 gast==0.2.2 futures protobuf pybind11

MrCampbellDuchess commented 3 years ago

Tried this and still pip3 install robomaster still fails.

Are there other dependencies I'm missing?

ApluUalberta commented 3 years ago

Tried this and still pip3 install robomaster still fails.

Are there other dependencies I'm missing?

For me, the problem was that the newer versions of python have a bit of an incompatibiliity with h5py (which is a library dependency that is required by robomaster). For a proper installation of h5py on ARM64 (after building opencv with their included script, and python 3.7), look here: https://stackoverflow.com/questions/37778299/cannot-install-h5py

Continue all other installations that you need from Jamespong007's reply. after this,

pip3 install robomaster

Python Version: 3.7 OpenCV: 4.1.2 CPU Architecture: ARM64 OS: Raspbian x64 Distribution (NOT 32-Bit, follow this link and reflash if needed) system mirror: https://www.raspberrypi.org/forums/viewtopic.php?f=117&t=275370 system installation: https://blog.csdn.net/zuoguaishouxiao/article/details/106496323

The instructions are mainly non-english, so i'd recommend a browser translation extension to follow along

JohnieBraaf commented 3 years ago

I've fixed the windows build for the codec (https://github.com/dji-sdk/RoboMaster-SDK/pull/49) for python files (SDK) you can just take it from this github