sparkfun / Qwiic_Ublox_Gps_Py

https://qwiic-ublox-gps-py.readthedocs.io/en/latest/index.html
Other
69 stars 41 forks source link

invalid syntax line 20 in core #17

Closed smithan7 closed 3 years ago

smithan7 commented 3 years ago

When trying to run the dexamples I get the following error:


Qwiic_Ublox_Gps_Py/examples$ python dead_reckoning_ex3.py Traceback (most recent call last): File "dead_reckoning_ex3.py", line 38, in from ublox_gps import UbloxGps File "/usr/local/lib/python2.7/dist-packages/ublox_gps/init.py", line 58, in from .ublox_gps import UbloxGps File "/usr/local/lib/python2.7/dist-packages/ublox_gps/ublox_gps.py", line 54, in from . import sparkfun_predefines as sp File "/usr/local/lib/python2.7/dist-packages/ublox_gps/sparkfun_predefines.py", line 3, in from . import core File "/usr/local/lib/python2.7/dist-packages/ublox_gps/core.py", line 20 def init(self, repeat: int = 0): ^ SyntaxError: invalid syntax


Any help you can provide would be appreciated!

edspark commented 3 years ago

It looks like you're using Python 2.7, this library only supports 3.5 and above.