#help on installing afc klipper add on for creality k1c

1 messages · Page 1 of 1 (latest)

simple burrow
#

env: can't execute 'bash': No such file or directory

zealous patio
#

Thanks, can you run echo $0 and give me the output?

#

and also what version of klipper is this running?

real rampart
#

Also trying running this command on the file dos2unix install-afc.sh I just tested mine with having windows line ending and got the same error, so maybe you don't have the right line endings in the file

real burrow
#

K1s also need root level user enabled, is that done?

#

It should be an option in the menu if not.

simple burrow
#

it is rooted

zealous patio
#

@slow hedge Don't you have some experience with the K1 printers?

real rampart
#

@simple burrow have you tried my comment above?

zealous patio
simple burrow
#

yes, but it doesn't really seem to do anything, it doesn't give an error, but it doesn't seem to install anything

real rampart
#

ok, just wanted to rule it out

zealous patio
#

you can try running sh install-afc.sh to override the shell interpreter, but I don't recall how POSIX compliant I made things

slow hedge
#

this will be a crapshoot and a half

slow hedge
#

/usr/share/klipper

#

and is like klipper 11?

#

its old

#

if this user is running pellcorps simpleAF klipper modification they will have a better success rate since pellcorp is an active dev in the community

#

oh and its a MIPS installation

zealous patio
#

Even with different directories, the script should still support it (but it isn't tested well) ```Usage: install-afc.sh [options]

Options:
-k <path> Specify the path to the Klipper directory
-m <moonraker config path> Specify the path to the Moonraker config directory (default: ~/printer_data/config)
-s <klipper service name> Specify the name of the Klipper service (default: klipper)
-u Uninstall the extensions
-b <branch> Specify the branch to use (default: main)
-h Display this help message

Example:
./install-afc.sh [-k <klipper_path>] [-s <klipper_service_name>] [-m <moonraker_config_path>] [-b <branch>] [-u] [-h]```

slow hedge
#

the mips system does wonky things where it wants it all compiled into .pyc

#

i remember this vividly

zealous patio
#

bah

slow hedge
#

@simple burrow are you running the stock K1 motherboard or have you upgraded to a m5p /m8p

simple burrow
#

stock k1 motherboard

slow hedge
#

are you using pellcorps "simpleAF" klipper or just stock

simple burrow
#

stock

slow hedge
#

try

./install-afc.sh -s /usr/share/klipper -m /usr/share/printer_data/config/

idk what to do about the service cuz its an init.d not a systemctl on that system

#

@zealous patio might be able to guide me on that part of the command

zealous patio
#

thats the just the name

#

the init system doesn't make a difference

slow hedge
#

that ... should get the directory layout proper but no promises on the stuff loading / working

Its old python and old klipper and MIPS not ARM

simple burrow
#

still error env: can't execute 'bash': No such file or directory after this command
./install-afc.sh -s /usr/share/klipper -m /usr/share/printer_data/config/

slow hedge
#

oh man lemme reach into some memory banks

#

its /usr/data/klipper

#

and /usr/data/printer_data/config/

#

pretty curious how this turns out honestly

simple burrow
#

config directory is correct but klipper directory is not there

slow hedge
#

its been a while since i had a k1 / messed with one 1+ years

klipper lives in one of those /usr/ dirs you can poke around with ls until you find it and then pass the location to the installer?

#

that means its in /usr/share/klipper then??

#

cuz the /usr/data/ partition had more storage for gcode files and timelapses

slow hedge
#

any luck?

simple burrow
#

I installed it manually, it did not work with install directories and did not match with my clipper on the printer

#

thanks again for your help

#

grtz

slow hedge
#

like once python files are there

#

?

#

asking so we can note for future support 😄

simple burrow
#

python files copied manual to directory

#

Now I have to test it when I have my printed circuit board

slow hedge
simple burrow
#

yes, there were the directories, that was correct

shy nexus
#

how do you know you manually installed the addon right?

slow hedge
#

Once you include AFC config in your printer.cfg klipper will load

shy nexus
#

[include AFC/AFC.cfg] ?

slow hedge
#

the installer currently does like

[include AFC/*]

shy nexus
slow hedge