ArduPilot / ArduPilot/MAVProxy
Mag fit not running on Windows MAVExplorer
- Dominant language
- Python
- Stars
- 595
- Forks
- 773
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 18
Description
When I open a bin file from my Flight Coach logger (just a "black box")
I can graph sensors /compass/compass predicted. When I open the magfit tool the normal window opens but I get the following error when I try to run the program.
Traceback (most recent call last):
File "MAVProxy\modules\lib\magfit.py", line 746, in OnButton
File "MAVProxy\modules\lib\magfit.py", line 751, in run
File "MAVProxy\modules\lib\magfit.py", line 394, in magfit
File "MAVProxy\modules\lib\magfit.py", line 158, in fit_WWW
File "scipy\__init__.py", line 146, in __getattr__
File "importlib\__init__.py", line 126, in import_module
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "scipy\optimize\__init__.py", line 422, in
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "scipy\optimize\_optimize.py", line 34, in
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "scipy\linalg\__init__.py", line 205, in
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "scipy\linalg\_basic.py", line 14, in
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "scipy\linalg\_decomp.py", line 24, in
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "scipy\_lib\_util.py", line 13, in
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "scipy\_lib\_array_api.py", line 18, in
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "scipy\_lib\array_api_compat\numpy\__init__.py", line 18, in
ModuleNotFoundError: No module named 'scipy._lib.array_api_compat.numpy.fft'
This is a new download and installl on Windows 11. Version 1.8.74
Any help appreciated.
Thank you,
Stuart
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure on Windows 11 using MAVExplorer version 1.8.74 and a Flight Coach logger bin file, then inspect MAVProxy/modules/lib/magfit.py around fit_WWW and the reported scipy import. Check the Windows packaging or dependency configuration that loads scipy. Done means the magfit tool runs successfully without the missing scipy._lib.array_api_compat.numpy.fft error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100