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

Protocol error with eTrex Venture HC #16

Open
S73f4n opened this issue Nov 16, 2024 · 0 comments
Open

Protocol error with eTrex Venture HC #16

S73f4n opened this issue Nov 16, 2024 · 0 comments

Comments

@S73f4n
Copy link

S73f4n commented Nov 16, 2024

Hi there,
I'm running into this problem when using pygarmin and my old eTrex Venture HC on Ubuntu 24.04 with Python 3.12. Any pygarmin command terminates with the following error. Any help fixing this issue would be appreciated!

Traceback (most recent call last): File "/home/stefan/.venv/bin/pygarmin", line 8, in <module> sys.exit(main()) ^^^^^^ File "/home/stefan/.venv/lib/python3.12/site-packages/pygarmin/pygarmin.py", line 1520, in main app = Pygarmin(args.port) ^^^^^^^^^^^^^^^^^^^ File "/home/stefan/.venv/lib/python3.12/site-packages/pygarmin/pygarmin.py", line 236, in __init__ self.gps = self.get_gps(self.port) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stefan/.venv/lib/python3.12/site-packages/pygarmin/pygarmin.py", line 242, in get_gps return mod_garmin.Garmin(phys) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stefan/.venv/lib/python3.12/site-packages/pygarmin/garmin.py", line 144, in __init__ self.product_data = self.product_data_protocol.get_product_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stefan/.venv/lib/python3.12/site-packages/pygarmin/protocol.py", line 174, in get_product_data packet = self.link.expect_packet(self.link.pid_product_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stefan/.venv/lib/python3.12/site-packages/pygarmin/protocol.py", line 52, in expect_packet raise mod_error.ProtocolError(f"Expected {pid:3}, got {packet['id']:3}") pygarmin.error.ProtocolError: 'Expected 255, got 2'

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

1 participant