viesturz / klipper-toolchanger

Toolcahnging extension for Klipper
GNU General Public License v3.0
72 stars 23 forks source link

Invalid syntax (rounded_path.py, line 29) #30

Closed helman closed 3 months ago

helman commented 3 months ago

Hi @viesturz I'm having issue installing the extension, Klipper complain about syntax error:

Screenshot 2024-08-16 at 10 58 36 PM

this is the error log from klipper

=======================
Unhandled exception during connect
Traceback (most recent call last):
  File "/home/pi/klipper/klippy/klippy.py", line 130, in _connect
    self._read_config()
  File "/home/pi/klipper/klippy/klippy.py", line 123, in _read_config
    self.load_object(config, section_config.get_name(), None)
  File "/home/pi/klipper/klippy/klippy.py", line 103, in load_object
    mod = importlib.import_module('extras.' + module_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/pi/klipper/klippy/extras/rounded_path.py", line 29
    def _vecto(f: ControlPoint, t: ControlPoint)->list:
                ^
pi@mainsailos:~ $ /home/pi/klippy-env/bin/python --version
Python 3.7.3
helman commented 3 months ago

closing this as it doesn't throw the syntax error anymore after re-create the klippy-env