You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dot import is causing a circular import error on my end.
Changing the import to from pymavlink.generator.mavcrc import x25crc fixed it.
pymavlink version 2.4.41
python version 3.9
windows 10
File "...\lib\site-packages\pymavlink\generator\mavgen.py", line 243, in mavgen
if not expand_includes():
File "...\lib\site-packages\pymavlink\generator\mavgen.py", line 116, in expand_includes
if not expand_oneiteration():
File "...\lib\site-packages\pymavlink\generator\mavgen.py", line 110, in expand_oneiteration
xml.append(mavparse.MAVXML(fname, opts.wire_protocol))
File "...\lib\site-packages\pymavlink\generator\mavparse.py", line 437, in __init__
m.crc_extra = message_checksum(m)
File "...\lib\site-packages\pymavlink\generator\mavparse.py", line 459, in message_checksum
from .mavcrc import x25crc
ImportError: cannot import name 'x25crc' from partially initialized module 'pymavlink.generator.mavcrc' (most likely due to a circular import) (...\lib\site-packages\pymavlink\generator\mavcrc.py)```
The text was updated successfully, but these errors were encountered:
pymavlink/generator/mavparse.py
Line 459 in e39879a
The dot import is causing a circular import error on my end.
Changing the import to
from pymavlink.generator.mavcrc import x25crc
fixed it.pymavlink version 2.4.41
python version 3.9
windows 10
The text was updated successfully, but these errors were encountered: