#[SOVLED] Error after updating to the most recent version of AFC Software

1 messages · Page 1 of 1 (latest)

mystic flint
#

I have just updated to the latest version of the the AFC software as per the instructions and got the following error on restart.

Need some help with this one.....;

stuck jolt
#

did you restart the printer / kliper

#

more than just firmware restart

#

what version of klipper/python? a klippy.log would alos be helpful here

mystic flint
#

have done everything but a power cycle. will power cycle it now and upload a klippy.log

#

klipper version on the PI is V0.12.401

#

Python version is 3.9.2

#

I have also uninstalled the AFC software, deleted the folder, pulled it down from github and re-installed it. Still the same problem

stuck jolt
#

<@&1242276764009631785> thoughts?

Setting up as buffer
Unhandled exception during connect
Traceback (most recent call last):
  File "/home/orangepi/klipper/klippy/klippy.py", line 130, in _connect
    self._read_config()
  File "/home/orangepi/klipper/klippy/klippy.py", line 123, in _read_config
    self.load_object(config, section_config.get_name(), None)
  File "/home/orangepi/klipper/klippy/klippy.py", line 112, in load_object
    self.objects[section] = init_func(config.getsection(section))
  File "/home/orangepi/klipper/klippy/extras/AFC_BoxTurtle.py", line 197, in load_config_prefix
    return afcBoxTurtle(config)
  File "/home/orangepi/klipper/klippy/extras/AFC_BoxTurtle.py", line 15, in __init__
    super().__init__(config)
TypeError: super() takes at least 1 argument (0 given)
webhooks client 281473596343712: New connection
winter tangle
#

can you go into ~/AFC-Klipper-Add-On/extras folder and do ls

mystic flint
#
total 256
-rw-r--r-- 1 orangepi orangepi  3727 Jan 25 15:06 AFC_assist.py
-rw-r--r-- 1 orangepi orangepi  9862 Jan 25 15:06 AFC_BoxTurtle.py
-rw-r--r-- 1 orangepi orangepi 17104 Jan 25 15:06 AFC_buffer.py
-rw-r--r-- 1 orangepi orangepi  5914 Jan 25 15:06 AFC_error.py
-rw-r--r-- 1 orangepi orangepi  4196 Jan 25 15:06 AFC_extruder.py
-rw-r--r-- 1 orangepi orangepi  9571 Jan 25 15:06 AFC_form_tip.py
-rw-r--r-- 1 orangepi orangepi 20046 Jan 25 15:06 AFC_functions.py
-rw-r--r-- 1 orangepi orangepi  5930 Jan 25 15:06 AFC_hub.py
-rw-r--r-- 1 orangepi orangepi  5703 Jan 25 15:06 AFC_led.py
-rw-r--r-- 1 orangepi orangepi  1280 Jan 25 15:06 AFC_NightOwl.py
-rw-r--r-- 1 orangepi orangepi  3938 Jan 25 15:06 AFC_poop.py
-rw-r--r-- 1 orangepi orangepi  8974 Jan 25 15:06 AFC_prep.py
-rw-r--r-- 1 orangepi orangepi 56344 Jan 25 15:06 AFC.py
-rw-r--r-- 1 orangepi orangepi  3813 Jan 25 15:06 AFC_respond.py
-rw-r--r-- 1 orangepi orangepi 13609 Jan 25 15:06 AFC_spool.py
-rw-r--r-- 1 orangepi orangepi 37846 Jan 25 15:06 AFC_stepper.py
-rw-r--r-- 1 orangepi orangepi 13763 Jan 25 15:06 AFC_unit.py
-rw-r--r-- 1 orangepi orangepi  1272 Jan 25 15:06 AFC_utils.py```
stuck jolt
#

can you code fence that with ``` brackets surrounding?

winter tangle
#

that looks right

#

what klippy-env python version are you running ~/klippy-env/bin/python --version

mystic flint
#
Python 2.7.18```
winter tangle
#

ah thats why

mystic flint
#

how do i update that?

#

the previous version of the software working, i guess the new version has newer dependencies.

stuck jolt
#
sudo service klipper stop

mv ~/klippy-env ~/klippy-env2.7
virtualenv -p python3 ~/klippy-env
~/klippy-env/bin/pip install -r ~/klipper/scripts/klippy-requirements.txt

sudo service klipper start

you willl probably need to reinstall katapult, shake&tune, etc as well

winter tangle
#

Awesome, python 3 is the way 🙂