Help compiling MAVProxy installer on Windows

Hi folks, struggling with the MAVProxy installer on windows. I’ve already had to add --trusted-host to install most packages.

Below is what was left on the console after piping the standard output to a file. I’ve bolded what ?could? be important. Which of these are “normal”, and which do I need to fix?

I have culled some big sections to bring it down from 1400 lines.

This one looks fatal:

80389 INFO: Looking for ctypes DLLs Unable to find “C:\Users\username\AppData\Roaming\Python\Python38\site-packages\mavproxy-1.8.45-py3.8.egg\EGG-INFO” when adding binary and data files.

C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\windows>rem build the standalone MAVProxy.exe for Windows.

C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\windows>rem -----Upgrade pymavlink if needed-----

C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\windows>rem -----Build MAVProxy-----

C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\windows>cd …\

C:\Users\username\Documents\MAVProxy-master\MAVProxy-master>python.exe setup.py clean build install --user
running clean
running build
running build_py
creating build
creating build\lib
creating build\lib\MAVProxy
copying MAVProxy\mavproxy.py → build\lib\MAVProxy
copying MAVProxy_init_.py → build\lib\MAVProxy
creating build\lib\MAVProxy\modules
copying MAVProxy\modules\mavproxy_adsb.py → build\lib\MAVProxy\modules

package init file ‘MAVProxy\modules\mavproxy_cesium_init_.py’ not found (or not a regular file)

creating build\lib\MAVProxy\tools
creating build\lib\MAVProxy\tools\graphs
copying MAVProxy\tools\graphs\ekf3Graphs.xml → build\lib\MAVProxy\tools\graphs
copying MAVProxy\tools\graphs\ekfGraphs.xml → build\lib\MAVProxy\tools\graphs
copying MAVProxy\tools\graphs\mavgraphs.xml → build\lib\MAVProxy\tools\graphs
copying MAVProxy\tools\graphs\mavgraphs2.xml → build\lib\MAVProxy\tools\graphs
running build_scripts
creating build\scripts-3.8
copying and adjusting MAVProxy\mavproxy.py → build\scripts-3.8
copying and adjusting MAVProxy\tools\mavflightview.py → build\scripts-3.8
copying and adjusting MAVProxy\tools\MAVExplorer.py → build\scripts-3.8
copying and adjusting MAVProxy\modules\mavproxy_map\mp_slipmap.py → build\scripts-3.8
copying and adjusting MAVProxy\modules\mavproxy_map\mp_tile.py → build\scripts-3.8
running install
C:\Users\username\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
** warnings.warn(**
C:\Users\username\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\command\easy_install.py:156: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
** warnings.warn(**
running bdist_egg
running egg_info
creating MAVProxy.egg-info
writing MAVProxy.egg-info\PKG-INFO
writing dependency_links to MAVProxy.egg-info\dependency_links.txt
writing requirements to MAVProxy.egg-info\requires.txt
writing top-level names to MAVProxy.egg-info\top_level.txt
writing manifest file ‘MAVProxy.egg-info\SOURCES.txt’
reading manifest file ‘MAVProxy.egg-info\SOURCES.txt’
adding license file ‘COPYING.txt’
writing manifest file ‘MAVProxy.egg-info\SOURCES.txt’
installing library code to build\bdist.win32\egg
running install_lib
creating build\bdist.win32
creating build\bdist.win32\egg
creating build\bdist.win32\egg\MAVProxy
copying build\lib\MAVProxy\mavproxy.py → build\bdist.win32\egg\MAVProxy
creating build\bdist.win32\egg\MAVProxy\modules
creating build\bdist.win32\egg\MAVProxy\modules\lib
creating build\bdist.win32\egg\MAVProxy\modules\lib\ANUGA
copying build\lib\MAVProxy\modules\lib\ANUGA\geo_reference.py → build\bdist.win32\egg\MAVProxy\modules\lib\ANUGA
copying build\lib\MAVProxy\modules\lib\ANUGA\lat_long_UTM_conversion.py →

byte-compiling build\bdist.win32\egg\MAVProxy\modules\lib\ANUGA\redfearn.py to redfearn.cpython-38.pyc

byte-compiling build\bdist.win32\egg\MAVProxy_init_.py to init.cpython-38.pyc
creating build\bdist.win32\egg\EGG-INFO
installing scripts to build\bdist.win32\egg\EGG-INFO\scripts
running install_scripts
creating build\bdist.win32\egg\EGG-INFO\scripts
copying build\scripts-3.8\MAVExplorer.py → build\bdist.win32\egg\EGG-INFO\scripts
copying build\scripts-3.8\mavflightview.py → build\bdist.win32\egg\EGG-INFO\scripts
copying build\scripts-3.8\mavproxy.py → build\bdist.win32\egg\EGG-INFO\scripts
copying build\scripts-3.8\mp_slipmap.py → build\bdist.win32\egg\EGG-INFO\scripts
copying build\scripts-3.8\mp_tile.py → build\bdist.win32\egg\EGG-INFO\scripts
copying MAVProxy.egg-info\PKG-INFO → build\bdist.win32\egg\EGG-INFO
copying MAVProxy.egg-info\SOURCES.txt → build\bdist.win32\egg\EGG-INFO
copying MAVProxy.egg-info\dependency_links.txt → build\bdist.win32\egg\EGG-INFO
copying MAVProxy.egg-info\requires.txt → build\bdist.win32\egg\EGG-INFO
copying MAVProxy.egg-info\top_level.txt → build\bdist.win32\egg\EGG-INFO
copying MAVProxy.egg-info\zip-safe → build\bdist.win32\egg\EGG-INFO
creating dist
creating ‘dist\MAVProxy-1.8.45-py3.8.egg’ and adding ‘build\bdist.win32\egg’ to it
removing ‘build\bdist.win32\egg’ (and everything under it)
Processing MAVProxy-1.8.45-py3.8.egg
Copying MAVProxy-1.8.45-py3.8.egg to c:\users\username\appdata\roaming\python\python38\site-packages
Removing mavproxy 1.8.34 from easy-install.pth file
Adding MAVProxy 1.8.45 to easy-install.pth file
Installing MAVExplorer.py script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts
Installing mavflightview.py script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts
Installing mavproxy.py script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts
Installing mp_slipmap.py script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts
Installing mp_tile.py script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts

Installed c:\users\username\appdata\roaming\python\python38\site-packages\mavproxy-1.8.45-py3.8.egg
Processing dependencies for MAVProxy==1.8.45
Searching for prompt-toolkit==3.0.21
Best match: prompt-toolkit 3.0.21
Adding prompt-toolkit 3.0.21 to easy-install.pth file

Using c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages
Searching for pyserial==3.5
Best match: pyserial 3.5
Adding pyserial 3.5 to easy-install.pth file
Installing pyserial-miniterm-script.py script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts
Installing pyserial-miniterm.exe script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts
Installing pyserial-miniterm.exe.manifest script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts
Installing pyserial-ports-script.py script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts
Installing pyserial-ports.exe script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts
Installing pyserial-ports.exe.manifest script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts

Using c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages
Searching for pymavlink==2.4.17
Best match: pymavlink 2.4.17
Adding pymavlink 2.4.17 to easy-install.pth file

Using c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages
Searching for wcwidth==0.2.5
Best match: wcwidth 0.2.5
Adding wcwidth 0.2.5 to easy-install.pth file

Using c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages
Searching for lxml==4.6.3
Best match: lxml 4.6.3
Adding lxml 4.6.3 to easy-install.pth file

Using c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages
Searching for future==0.18.2
Best match: future 0.18.2
Adding future 0.18.2 to easy-install.pth file
Installing futurize-script.py script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts
Installing futurize.exe script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts
Installing futurize.exe.manifest script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts
Installing pasteurize-script.py script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts
Installing pasteurize.exe script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts
Installing pasteurize.exe.manifest script to C:\Users\username\AppData\Roaming\Python\Python38\Scripts

Using c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages
Finished processing dependencies for MAVProxy==1.8.45

C:\Users\username\Documents\MAVProxy-master\MAVProxy-master>cd .\MAVProxy

C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\MAVProxy>copy …\windows\mavproxy.spec
1 file(s) copied.

C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\MAVProxy>pyinstaller -y --clean mavproxy.spec
149 INFO: PyInstaller: 4.5.1
150 INFO: Python: 3.8.8
150 INFO: Platform: Windows-10-10.0.19041-SP0
153 INFO: UPX is not available.
153 INFO: Removing temporary files and cleaning cache in C:\Users\username\AppData\Local\pyinstaller
1875 INFO: Extending PYTHONPATH with paths
[‘C:\Users\username\Documents\MAVProxy-master\MAVProxy-master’,
‘C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\MAVProxy’]
2433 INFO: checking Analysis
2433 INFO: Building Analysis because Analysis-00.toc is non existent
2434 INFO: Initializing module dependency graph…
2437 INFO: Caching module graph hooks…
2452 INFO: Analyzing base_library.zip …
5844 INFO: Processing pre-find module path hook distutils from ‘c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\hooks\pre_find_module_path\hook-distutils.py’.
5847 INFO: distutils: retargeting to non-venv dir ‘c:\users\username\appdata\local\programs\python\python38-32\lib’
10885 INFO: Caching module dependency graph…
11180 INFO: running Analysis Analysis-00.toc
11187 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\username\appdata\local\programs\python\python38-32\python.exe
11258 INFO: Analyzing mavproxy.py
12547 INFO: Processing pre-find module path hook site from ‘c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\hooks\pre_find_module_path\hook-site.py’.
12548 INFO: site: retargeting to fake-dir ‘c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\fake-modules’
23579 INFO: Processing pre-safe import module hook six.moves from ‘c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\hooks\pre_safe_import_module\hook-six.moves.py’.
25281 INFO: Analyzing hidden import ‘pylab’
25285 INFO: Analyzing hidden import ‘wx.grid’
25293 INFO: Analyzing hidden import ‘prompt-toolkit’
25294 ERROR: Hidden import ‘prompt-toolkit’ not found
25294 INFO: Analyzing hidden import ‘wxversion’
25295 ERROR: Hidden import ‘wxversion’ not found
25295 INFO: Analyzing hidden import ‘UserList’
25296 ERROR: Hidden import ‘UserList’ not found
25296 INFO: Analyzing hidden import ‘UserString’
25297 ERROR: Hidden import ‘UserString’ not found
25297 INFO: Analyzing hidden import ‘packaging’
25317 INFO: Analyzing hidden import ‘packaging.version’
25330 INFO: Analyzing hidden import ‘packaging.specifiers’
25381 INFO: Analyzing hidden import ‘pkg_resources.py2_warn’
25381 ERROR: Hidden import ‘pkg_resources.py2_warn’ not found
25381 INFO: Analyzing hidden import ‘MAVProxy.modules.mavproxy_vicon’


59907 INFO: Analyzing hidden import ‘pygame.tests.cdrom_test’
59920 INFO: Processing module hooks…
59920 INFO: Loading module hook ‘hook-cv2.py’ from ‘c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks’…


61150 INFO: Loading module hook ‘hook-matplotlib.backends.py’ from ‘c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\hooks’…
62140 INFO: Matplotlib backend “GTK3Agg”: ignored
** backend Gtk3Agg requires cairo**
62596 INFO: Matplotlib backend “GTK3Cairo”: ignored
** cairo backend requires that pycairo>=1.11.0 or cairocffiis installed**
63094 INFO: Matplotlib backend “MacOSX”: ignored
** cannot import name 'macosx’ from ‘matplotlib.backends’ (c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages\matplotlib\backends_init.py)**
63587 INFO: Matplotlib backend “nbAgg”: ignored
** No module named ‘IPython’**
64108 INFO: Matplotlib backend “Qt4Agg”: ignored
** Failed to import any qt binding**
64690 INFO: Matplotlib backend “Qt4Cairo”: ignored
** cairo backend requires that pycairo>=1.11.0 or cairocffiis installed**
65178 INFO: Matplotlib backend “Qt5Agg”: ignored
** Failed to import any qt binding**
65645 INFO: Matplotlib backend “Qt5Cairo”: ignored
** cairo backend requires that pycairo>=1.11.0 or cairocffiis installed**
66328 INFO: Matplotlib backend “TkAgg”: added
67038 INFO: Matplotlib backend “TkCairo”: ignored
** cairo backend requires that pycairo>=1.11.0 or cairocffiis installed**
67516 INFO: Matplotlib backend “WebAgg”: ignored
** Traceback (most recent call last):**
** File “c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages\matplotlib\backends\backend_webagg.py”, line 27, in **
** import tornado**
ModuleNotFoundError: No module named 'tornado’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
** File “”, line 12, in **
** File “c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages\matplotlib\backends\backend_webagg.py”, line 29, in **
** raise RuntimeError(“The WebAgg backend requires Tornado.”)**
RuntimeError: The WebAgg backend requires Tornado.
68227 INFO: Matplotlib backend “WX”: added
68922 INFO: Matplotlib backend “WXAgg”: added
69424 INFO: Matplotlib backend “WXCairo”: ignored
cairo backend requires that pycairo>=1.11.0 or cairocffiis installed
69990 INFO: Matplotlib backend “agg”: added
70551 INFO: Matplotlib backend “cairo”: ignored
cairo backend requires that pycairo>=1.11.0 or cairocffiis installed
71280 INFO: Matplotlib backend “pdf”: added
72118 INFO: Matplotlib backend “pgf”: added
72638 INFO: Matplotlib backend “ps”: added
73226 INFO: Matplotlib backend “svg”: added
73879 INFO: Matplotlib backend “template”: added
74242 INFO: Loading module hook ‘hook-matplotlib.py’ from ‘c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\hooks’…


76757 INFO: Processing pre-safe import module hook win32com from ‘c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages\_pyinstaller_hooks_contrib\hooks\pre_safe_import_module\hook-win32com.py’.
77148 WARNING: Hidden import “pkg_resources.py2_warn” not found!
77229 WARNING: Hidden import “pkg_resources.markers” not found!
77236 INFO: Loading module hook ‘hook-setuptools.py’ from ‘c:\users\username\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\hooks’

80389 INFO: Looking for ctypes DLLs Unable to find “C:\Users\username\AppData\Roaming\Python\Python38\site-packages\mavproxy-1.8.45-py3.8.egg\EGG-INFO” when adding binary and data files. C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\MAVProxy>del mavproxy.spec C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\MAVProxy>rem -----Create version Info----- C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\MAVProxy>rem -----Download parameter files----- C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\MAVProxy>cd …\ C:\Users\username\Documents\MAVProxy-master\MAVProxy-master>mkdir Parameters C:\Users\username\Documents\MAVProxy-master\MAVProxy-master>powershell.exe “Start-BitsTransfer -Source ‘http://autotest.ardupilot.org/Parameters/APMrover2/apm.pdef.xml’ -Destination ‘Parameters\Rover.xml’” C:\Users\username\Documents\MAVProxy-master\MAVProxy-master>powershell.exe “Start-BitsTransfer -Source ‘http://autotest.ardupilot.org/Parameters/ArduCopter/apm.pdef.xml’ -Destination ‘Parameters\ArduCopter.xml’” C:\Users\username\Documents\MAVProxy-master\MAVProxy-master>powershell.exe “Start-BitsTransfer -Source ‘http://autotest.ardupilot.org/Parameters/ArduPlane/apm.pdef.xml’ -Destination ‘Parameters\ArduPlane.xml’” C:\Users\username\Documents\MAVProxy-master\MAVProxy-master>powershell.exe “Start-BitsTransfer -Source ‘http://autotest.ardupilot.org/Parameters/ArduSub/apm.pdef.xml’ -Destination ‘Parameters\ArduSub.xml’” C:\Users\username\Documents\MAVProxy-master\MAVProxy-master>powershell.exe “Start-BitsTransfer -Source ‘http://autotest.ardupilot.org/Parameters/AntennaTracker/apm.pdef.xml’ -Destination ‘Parameters\AntennaTracker.xml’” C:\Users\username\Documents\MAVProxy-master\MAVProxy-master>powershell.exe “Start-BitsTransfer -Source ‘http://autotest.ardupilot.org/APMrover2-defaults.parm’ -Destination ‘Parameters\Rover-defaults.parm’” Start-BitsTransfer : HTTP status 404: The requested URL does not exist on the server. At line:1 char:1 + Start-BitsTransfer -Source 'http://autotest.ardupilot.org/APMrover2-d … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:slight_smile: [Start-BitsTransfer], Exception + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits TransferCommand C:\Users\username\Documents\MAVProxy-master\MAVProxy-master>powershell.exe “Start-BitsTransfer -Source ‘http://autotest.ardupilot.org/ArduCopter-defaults.parm’ -Destination ‘Parameters\ArduCopter-defaults.parm’” Start-BitsTransfer : HTTP status 404: The requested URL does not exist on the server. At line:1 char:1 + Start-BitsTransfer -Source 'http://autotest.ardupilot.org/ArduCopter- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:slight_smile: [Start-BitsTransfer], Exception + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits TransferCommand C:\Users\username\Documents\MAVProxy-master\MAVProxy-master>powershell.exe "Start-BitsTransfer -Source ‘http://autotest.ardupilot.org/ArduPlane-defaults.parm’ -Destination ‘Parameters\ArduPlane-defaults.parm’"
Start-BitsTransfer : HTTP status 404: The requested URL does not exist on the server.
At line:1 char:1

  • Start-BitsTransfer -Source 'http://autotest.ardupilot.org/ArduPlane-d
  •   + CategoryInfo          : InvalidOperation: (:) [Start-BitsTransfer], Exception
      + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits
     TransferCommand
    
    
    

C:\Users\username\Documents\MAVProxy-master\MAVProxy-master>powershell.exe "Start-BitsTransfer -Source ‘http://autotest.ardupilot.org/ArduSub-defaults.parm’ -Destination ‘Parameters\ArduSub-defaults.parm’"
Start-BitsTransfer : HTTP status 404: The requested URL does not exist on the server.
At line:1 char:1

  • Start-BitsTransfer -Source 'http://autotest.ardupilot.org/ArduSub-def
  •   + CategoryInfo          : InvalidOperation: (:) [Start-BitsTransfer], Exception
      + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits
     TransferCommand
    
    
    

C:\Users\username\Documents\MAVProxy-master\MAVProxy-master>rem -----Build the Installer-----

C:\Users\username\Documents\MAVProxy-master\MAVProxy-master>cd .\windows

C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\windows>rem Newer Inno Setup versions do not require a -compile flag, please add it if you have an old version

C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\windows>“C:\Program Files (x86)\Inno Setup 6\ISCC.exe” /dMyAppVersion=1.8.45 mavproxy.iss
Inno Setup 6 Command-Line Compiler
Copyright (C) 1997-2021 Jordan Russell. All rights reserved.
Portions Copyright (C) 2000-2021 Martijn Laan. All rights reserved.
Portions Copyright (C) 2001-2004 Alex Yackimoff. All rights reserved.
https://www.innosetup.com

Compiler engine version: Inno Setup 6.2.0

Preprocessing
Reading file: C:\Program Files (x86)\Inno Setup 6\ISPPBuiltins.iss
Parsing [Setup] section, line 16

Parsing [Files] section, line 42
Error on line 42 in C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\windows\mavproxy.iss: Source file “C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\windows…\MAVProxy\dist\mavproxy\mavproxy.exe” does not exist.
Compile aborted.

C:\Users\username\Documents\MAVProxy-master\MAVProxy-master\windows>pause
Press any key to continue . . .

pyinstaller was unable to compile MAVProxy into a standalone exe. It’s usually due to misconfigured packages.

Trying running the following commands to install all required libraries:

pip install -U wheel
pip install -U pywin32 lxml pymavlink numpy matplotlib==3.2.2 pyserial opencv-python PyYAML Pygame Pillow wxpython prompt-toolkit scipy
pip install -U pyinstaller==4.3 setuptools packaging 

Brilliant! That’s now working on both my work and separate laptop but I’m getting an OpenCV error after its installed:

['C:\\Program Files (x86)\\MAVProxyERS\\base_library.zip', 'C:\\Program Files (x86)\\MAVProxyERS\\lib-dynload', 'C:\\Program Files (x86)\\MAVProxyERS']
Traceback (most recent call last):
  File "mavproxy.py", line 995, in periodic_tasks
  File "modules\mavproxy_wp.py", line 228, in idle_task
ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.

Ok, there’s an issue with the latest OpenCV. You’ll need to install the previous version:

pip install opencv-python==4.5.3.56

Success!! Thank you very much.

Am I missing something in the doco for these things, or is it the beauty of python?

You’ve just found a bug … I’ll need to update the doco :slight_smile:

I’ve found that there are sometime issues with generating the installer on Windows and we need to specifiy a certain version of packages to use.

1 Like