I’ve developed a custom module “ers” for MAvproxy. It all works fine through the “dev” environment - running via “mavproxywinlan.bat”. However, when I do the windows installer build, and try to load my module I get the following:
"MAV> module load ers
Traceback (most recent call last):
File “mavproxy.py”, line 641, in import_package
File “PyInstaller\loader\pyimod03_importers.py”, line 540, in exec_module
** File “modules\mavproxy_ers_init_.py”, line 11, in **
ImportError: cannot import name ‘ersconsole’ from partially initialized module ‘MAVProxy.modules.mavproxy_ers’ (most likely due to a circular import) (C:\Program Files (x86)\MAVProxy\MAVProxy\modules\mavproxy_ers_init_.pyc)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “mavproxy.py”, line 487, in load_module
File “mavproxy.py”, line 644, in import_package
File “PyInstaller\loader\pyimod03_importers.py”, line 540, in exec_module
File “modules\mavproxy_ers_init_.py”, line 11, in
ImportError: cannot import name ‘ersconsole’ from partially initialized module ‘MAVProxy.modules.mavproxy_ers’ (most likely due to a circular import) (C:\Program Files (x86)\MAVProxy\MAVProxy\modules\mavproxy_ers_init_.pyc)
Traceback (most recent call last):
File “mavproxy.py”, line 641, in import_package
ModuleNotFoundError: No module named ‘ers’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “mavproxy.py”, line 487, in load_module
File “mavproxy.py”, line 644, in import_package
ModuleNotFoundError: No module named ‘ers’
Failed to load module: No module named ‘ers’."
Here’s line 11 of mavproxy_ers.py
“from MAVProxy.modules.lib import ersconsole”
ersconsole.py is in /modules/lib
Is there something in a makefile or equivalent I’m missing?