3

I installed droneapi in the same manner given in the tutorial. However, it's missing all of the important modules that come with MAVProxy, such as console, wx, etc.

Was it supposed to install these modules, or should I move them over from MAVProxy itself instead?

Note: Windows 8 64-bit platform

Indeed
  • 139
  • 14

2 Answers2

1

I apologize that you had to investigate the issue without guidance. Publishing our Windows installer was not well prioritized, and it looks like that choice cost you several hours.

Here is what we will soon to address DroneKit Python installation on Windows:

Thanks for publishing your solution publicly. Hopefully we can address issues like these before they come up in the future.

Tim, DroneKit Engineer

Tim Ryan
  • 96
  • 3
  • In that case, I should probably mention that to run the simulator with MAVProxy.py I had to change line 427 of sim_vehicle.sh to • cygstart -w "/cygdrive/c/Users//Desktop/WinPython-64bit-2.7.6.4/python-2.7.6.amd64/Dronekit/Scripts/mavproxy.py" $options --cmd="$extra_cmd" $* – Indeed Jul 29 '15 at 19:55
  • Also using your installer requires that you download Inno Setup 5. Perhaps you should just fix the documentation or something crazy like that. – Indeed Jul 30 '15 at 16:59
  • 1
    That's fair, and thank you for the update about running cygwin. We are now posting the resulting [installers for Windows](https://github.com/dronekit/dronekit-python/issues/164#issuecomment-126136345) which won't require InnoSetup (only generating the installer does). Documenting running the MAVProxy.exe installer followed by the Dronekit.exe installer is being added shortly. We also intend to provide a cleaner alternative to sim_vehicle.sh via https://github.com/dronekit/dronekit-sitl. Thanks for your patience and persistence while we pull this together. – Tim Ryan Jul 31 '15 at 18:11
  • The installer you linked works perfectly, thank you. – Indeed Aug 01 '15 at 23:21
  • FYI The changes for the DroneKit-Python windows installer are now in a push request https://github.com/dronekit/dronekit-python/pull/268. The old instructions are still necessary for contributors - I have put in the information on OpenCV etc in that section. – Hamish Willee Aug 03 '15 at 07:08
  • Where do you want me to address issues with the DroneKit.io guide? I keep finding problems where it doesn't match up with the code itself. – Indeed Aug 04 '15 at 20:04
  • It's still missing all of the libraries when I run pip install. – Indeed Oct 30 '15 at 21:23
0

So in a rare spark of intuition I discovered the answer. The modules required by Dronekit Python can be installed in the following ways:

Console- type "pip install console" into the WinPython cmd prompt
WX- http://wiki.wxpython.org/How%20to%20install%20wxPython
OpenCV- Download and install OpenCV version 2.4, then copy/paste the file cv2.pyd from OpenCV\build\python\2.7\x64\ to \python-2.7.6.amd64\Lib\site-packages.

At this point it should load all required modules, although it will throw a few exceptions which aren't important.

As always, 3DR documentation is incomplete. One would think that $800 million dollar profits would mean that they could hire more than 5 programmers for their new platform...

Indeed
  • 139
  • 14