Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'MapModule' object has no attribute 'default_popup' #1491

Open
Aniskonig opened this issue Dec 9, 2024 · 5 comments
Open

'MapModule' object has no attribute 'default_popup' #1491

Aniskonig opened this issue Dec 9, 2024 · 5 comments

Comments

@Aniskonig
Copy link

whenever I execute this command i'm getting this error :

mavproxy --master=udp:my_ip:5760 --out=udp:my_ip:14550 --map

File "modules\mavproxy_map_init_.py", line 145, in add_menu
AttributeError: 'MapModule' object has no attribute 'default_popup'

@peterbarker
Copy link
Contributor

peterbarker commented Dec 15, 2024 via email

@Aniskonig
Copy link
Author

The latest MAVProxy Version: 1.8.71

@peterbarker
Copy link
Contributor

@Aniskonig are you sure that's the only exception being thrown when you start the process?

AFAICS we unconditionally set self.default_popup when constructing a map module instance, so this is rather strange.

Please try adding set moddebug 3 in your .mavinit.scr file so we can get more information about this exception.

@eschutz
Copy link

eschutz commented Dec 19, 2024

I have been having this issue too - printed in the logs is "ERROR in command ['load', 'map']: map not ready" which is likely the real exception of interest, raised here:

if not self._wait_ready(timeout=5.0):

It appears this is happening when the map takes a long time to load. Changing the timeout from 5 seconds to 60 fixes it for me, though I have to wait awhile. Perhaps the timeout could be made configurable, and the error message changed to inform the user of such. Some user feedback indicating the map is loading could be useful too.

@Aniskonig
Copy link
Author

I tried your solution but I'm getting the same error on the map, and here are more details:

Loaded module console
ERROR in command ['load', 'map']: map not ready
Running script (C:\Users\aniso\AppData\Local.mavproxy\mavinit.scr)
ERROR in command ['load', 'help']: <Fault -32500: 'RuntimeError: PyPI no longer supports the XMLRPC package_releases method. Use JSON or Simple API instead. See https://warehouse.pypa.io/api-reference/xml-rpc.html#deprecated-methods for more information.'>
Traceback (most recent call last):
File "mavproxy.py", line 800, in process_stdin
File "mavproxy.py", line 600, in cmd_module
File "mavproxy.py", line 375, in load_module
File "modules\mavproxy_help.py", line 116, in init
File "modules\mavproxy_help.py", line 51, in init
File "xmlrpc\client.py", line 1122, in call
File "xmlrpc\client.py", line 1464, in _request
File "xmlrpc\client.py", line 1166, in request
File "xmlrpc\client.py", line 1182, in single_request
File "xmlrpc\client.py", line 1354, in parse_response
File "xmlrpc\client.py", line 668, in close
xmlrpc.client.Fault: <Fault -32500: 'RuntimeError: PyPI no longer supports the XMLRPC package_releases method. Use JSON or Simple API instead. See https://warehouse.pypa.io/api-reference/xml-rpc.html#deprecated-methods for more information.'>
Unknown command 'graph timespan 30'
Log Directory:
Telemetry log: mav.tlog
Waiting for heartbeat from 127.0.0.1:14550
Detected vehicle 1:1 on link 0
STABILIZE> Matplotlib is building the font cache; this may take a moment.
Matplotlib is building the font cache; this may take a moment.
'MapModule' object has no attribute 'default_popup'
Traceback (most recent call last):
File "mavproxy.py", line 1067, in periodic_tasks
File "modules\mavproxy_wp.py", line 121, in idle_task
File "modules\lib\mission_item_protocol.py", line 311, in idle_task
File "modules\lib\mission_item_protocol.py", line 330, in idle_task_add_menu_items
File "modules\mavproxy_map_init
.py", line 145, in add_menu
AttributeError: 'MapModule' object has no attribute 'default_popup'

'MapModule' object has no attribute 'default_popup'
Traceback (most recent call last):
File "mavproxy.py", line 1067, in periodic_tasks
File "modules\lib\mission_item_protocol.py", line 311, in idle_task
File "modules\lib\mission_item_protocol.py", line 330, in idle_task_add_menu_items
File "modules\mavproxy_map_init_.py", line 145, in add_menu
AttributeError: 'MapModule' object has no attribute 'default_popup'

'MapModule' object has no attribute 'default_popup'
Traceback (most recent call last):
File "mavproxy.py", line 1067, in periodic_tasks
File "modules\lib\mission_item_protocol.py", line 311, in idle_task
File "modules\lib\mission_item_protocol.py", line 330, in idle_task_add_menu_items
File "modules\mavproxy_map_init_.py", line 145, in add_menu
AttributeError: 'MapModule' object has no attribute 'default_popup'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants