#Error trying to import afcDeltaTime, [Solved]
1 messages Β· Page 1 of 1 (latest)
Please SSH into you host, run ls klipper/klippy/extras/AFC*, and copy the output here.
klipper/klippy/extras/AFC_assist.py klipper/klippy/extras/AFC_NightOwl.py
klipper/klippy/extras/AFC_BoxTurtle.py klipper/klippy/extras/AFC_poop.py
klipper/klippy/extras/AFC_BoxTurtle.pyc klipper/klippy/extras/AFC_prep.py
klipper/klippy/extras/AFC_buffer.py klipper/klippy/extras/AFC_prep.pyc
klipper/klippy/extras/AFC_error.py klipper/klippy/extras/AFC.py
klipper/klippy/extras/AFC_error.pyc klipper/klippy/extras/AFC.pyc
klipper/klippy/extras/AFC_extruder.py klipper/klippy/extras/AFC_respond.py
klipper/klippy/extras/AFC_extruder.pyc klipper/klippy/extras/AFC_respond.pyc
klipper/klippy/extras/AFC_form_tip.py klipper/klippy/extras/AFC_spool.py
klipper/klippy/extras/AFC_form_tip.pyc klipper/klippy/extras/AFC_spool.pyc
klipper/klippy/extras/AFC_functions.py klipper/klippy/extras/AFC_stepper.py
klipper/klippy/extras/AFC_functions.pyc klipper/klippy/extras/AFC_unit.py
klipper/klippy/extras/AFC_hub.py klipper/klippy/extras/AFC_unit.pyc
klipper/klippy/extras/AFC_led.py klipper/klippy/extras/AFC_utils.py
klipper/klippy/extras/AFC_logger.py klipper/klippy/extras/AFC_utils.pyc
there u go
Hm, everything should be there...
That's OK, that's only because they are different types of files.
fair xD
Let's just try it all again:
cd ~/AFC-Klipper-Add-On/
./install-afc.sh
<press U two times>
allready did
i have tried that step xD
if u look up in chat
that was the 2th reinstall of the update
#1355472688604512379 message
but just in case
same result
Is the AFC the current version, i.e. did you run a git pull before?
afc is currently
AFC Klipper Add On
v1.0.4-4-g75b631c3
and i updated through the ssh install hit msg to update afc klipper addon
not through mainsail
if this info helps il provide it just in case
im running a pi 3b+
with python 3
abd yes service klipper restart dosent help
and*
Could you upload your klipper log please?
Ok, that helps. Found something. Give me a few minutes to figure out something.
tyt
~/klippy-env/bin/python --version
AFC requires >= 3.8, unfortunately.
The error is caused because Python 3.7 doesn't understand some syntax that AFC uses. The code using this syntax is probably new.
yep so now i need to find the command to update the puthon
Yeah. You need to recreate the klippy-env.
so git reset --hard im persunming
In which directory?
pi@mainsailos:~ $ ~/klippy-env/bin/python --version
Python 3.7.3
No, no git reset there.
Do you even have a newer version on python on your host? What does python --version (without the ~/klippy-env/bin/ part) output?
And python3 --version?
Python 3.7.3
ik my system config is a mess on this printer as its a test bed while im slowly self sourcing parts for a 300mm voron 2.4
When's the last time you updated your system? π
An which Debian version are you running?
3.7 is old.
cat /etc/debian_version
when i first added the box turtle and installed canbus
pi@mainsailos:~ $ cat /etc/debian_version
10.13
Yeah, that's old, too. Current one is 12.
Try sudo apt update, followed by apt info python3.
This will not upgrade installed software, but should show the newest Python3 available to you.
I agree π€£
xD
but i havent rly had a need to update it til now
now it all seems to be colliding with this old build
cant wait to finish my 2.4
xD
ok so its done and reporting this
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 https://download.docker.com/linux/raspbian buster InRelease
Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Now apt info python3.
pi@mainsailos:~ $ apt info python3
Package: python3
Version: 3.7.3-1
Priority: optional
Section: python
Source: python3-defaults
Maintainer: Matthias Klose [email protected]
Installed-Size: 191 kB
Provides: python3-profiler
Pre-Depends: python3-minimal (= 3.7.3-1)
Depends: python3.7 (>= 3.7.3-1~), libpython3-stdlib (= 3.7.3-1)
Suggests: python3-doc (>= 3.7.3-1), python3-tk (>= 3.7.2-1~), python3-venv (>= 3.7.3-1)
Replaces: python3-minimal (<< 3.1.2-2)
Homepage: https://www.python.org/
Cnf-Extra-Commands: python
Cnf-Priority-Bonus: 5
Download-Size: 61.5 kB
APT-Manual-Installed: no
APT-Sources: http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
Description: interactive high-level object-oriented language (default python3 version)
Python, the high-level, interactive object oriented language,
includes an extensive class library with lots of goodies for
network programming, system administration, sounds and graphics.
.
This package is a dependency package, which depends on Debian's default
Python 3 version (currently v3.7).
Yeah, was afraid it's going to say that...
Tbh, I don't see a nice and easy solution atm.
It has broken AFC. If you remove AFC, everything else should continue to work.
We either have to get your printer up-to-date, or we need a change in AFC to make it compatible with Python 3.7 again.
well as far as i see im the only one with the issue so best option for the wider community would be me just giving the printer a overhaul xD
It would also make you future proof. You can expect support for 3.7 to drop from other software as well.
welp guess im picking up a pi 4 or 5
A pi 5 is overkill, if you ask me. For just running Klipper, a pi 4 is more than enough.
We could downgrade your AFC for now.
true
Let me find out which revision did introduce that syntax that 3.7 doesn't like.
allright
otherwise idm upgrading the pi
the pi im running this off is a 3b+ from 2018
so its way overdue for a upgrade
I certainly would advise updating your system. At least the software.
But there's no harm in getting your AFC to work again in the meantime.
true but its not crusial to get it working right this minute xD
i still got 2 other printers to use in the meantime
plus if i upgrade to a pi 4 i can get the hard reset the pi 3b+ and use it on the prusa i3 mk3s+
Ok, in that case downgrading AFC might be a waste of time.
yep il just have to wait til payday on monday
otherwise il just keep trying to jailbreak the a1 mini
xD exactly xD
like imagin if we could spoof bambu commands for the box turtle onto bambu machine
that would be awesome
like i allready am working on jailbreaking the ams lite for other printers
but if we could get box turtle to run on bambu
xD
eitherway il not end this discussion threat right now as the problem isnt solved but il come back when i get the pi 4
wait i just realised what if we made the box turtle prusa compatible xD
that could be funny xD
Sure, leave it open until it either works with the Pi 4, or you need more help making it work.
i will til then take care
You too.
Thanks for bringing this up, I'll update the install script to explicitly fail if python < 3.8 is found
hey rolf quick question im looking at all the pi4's and i see some have 1gb and some have 8gb ram wich one would u recoment?
.
My Pi 4 has 2 GB of RAM, and that's been enough. I wouldn't go down to 1 GB. Going up certainly won't harm, except for the higher price.
Pi arrived 2gb model will be redoing all system configs on it so when its all done its up to date
currently prepping a brand new sd card for the new pi with mainsailos only on it then after il update all system needs
you'd be better off starting with raspbian lite, the mainsaol OS is behind on Debian release
that might be a bit of a issue right now my sd card reader is giving me issues with trying to write to the new sd card
so i might have to change from my desktop to laptop for the writing
gotta love technology at times xD
ok laptop is ready
where do i find the raspbian lite in the raspberry pi imager
its under raspbian Pi OS (other)
found it tho its calling itself raspberry pi os lite even tho its acually raspbian
yeah, it just donesn't have the full Desktop pieces that the Full OS has
makes sense
makes it perfect for newest packages and then useing kiauh to install mainsail
yeah, kiauh just does more heavy lifting this way
well wont be a issue i managed to copy printer.cfg and so on from the old pi and i can still boot up the old pi to retrive more stuff
but the Bookwork raspbian seems to be much better more stable for TTC errors on klipper
nice!, make sure to grab the moonraker database too if you want to keep print hours and such
na i aint worried about the database
after all its a test bench printer that i usually swap components to test on
so updating it and getting it back to working order means i can start the next upgrade sooner than later
wich will be a diy trident mod
lol fair enough I just try to keep an eye on hours for maintenance cycles
lol i will be doing that on my v2.4 im building rn
but for a half assed mercury one.1 that i keep swapping components on
it just aint worth the effort to keep data that keeps changing
Those hours rack up fast sometimes
yes they xD
plus now that the mercury is finaly getting a new pi
i can start my side project
installing klipper on a prusa i3 mk3s+
lol, seems like a waste but good luck
lol aint a waste
the prusa works but its slow and outdated
while i would normaly buy the upgrade to mk 3.5
it aint in the budget atm
so im making due with what i have on hand
fair, I tried to upgrade my first printer but now its in pieces
lol thats why i upgraded my 2th printer first
cause the 2th one was a 2th hand ender 5
so i made it a test bed
and the prusa made parts for it
but now that im used to klipper the prusa is slow in compairson
so if i gotta upgrade the test bed to a pi4 i got a left over pi3b+
so might aswell try to make it work
xD
and ugh
now the raspberry wont let me ssh
into it
not on the network maybe?
Or did you not enable it in the imager?
its on the network
and its enabled
so il probably do what i usually do whipe it and retry
would probably help if i move out soon to have full control over my network instead of useing the parents net
and im back in it
turns out the router was treating the new pi like a intruder so had to whitelist it
now im ssh'd in and updating everything
installing klipper then mainsail
and yes im running through kiauh xD
its back up
now i just need to grab my print start config reinstall afc and port my afc folder update all system packages and that should be ready
yeah this is when all the extras get annoying lol, then time to clone it for backup reasons
lol well atleast all my dependancies is done
now i need to get the afc folder then update afc
plus the print start
and since kamp is build into klipper now i dont need to redownload it
but first a dinner break xD
π hopefully following the guide makes it easy. No need to flash anything
well it seems im encountering a problem
sigh
nvm found out why
nvm
aparently installing katapult didnt help
i mean if i can get the can network to work id have a clue xD
https://canbus.esoterical.online/Getting_Started.html I recomend folowing this guide
funny enough i did
why are you in nano then?
cause as far as i remember thats usually the way
no necessary if you're following that guide
weird guess il try following through the guide
done
guess once its reloaded
il see if that worked
til then once i restarted il reinstall afc
cause rn the pi isnt installed on the printer
its just on the side of my desk
To change the printer config directory, please re-run this script with a '-m <pa th>' option.
βββββββββββββ
new error yay!
nvm
got pastt it
ok moment of truth
or wait nvm
was about to go install it when i saw a error
fixed
moment of truth time to go install the pi
brb
first error is good error
huge success
i will thank everyone here for theyr help from figureing out i needed a new pi to acually getting all this done
i can say this problem is solved
Error trying to import afcDeltaTime, [Solved]
How did you get around this "To change the prenter config directory" issue? I installed AFC on my other SOC (CB1) and it ran fine, but now on the CM5 it's giving me that issue. Do I need to actually specify a path, or just add -m <path> after running the .sh command?
can you put a screenshot of what you are taking about?
are you trying to change the printers config directory or install AFC?
I just want to install AFC. When I run the standard script cd ~ git clone https://github.com/ArmoredTurtle/AFC-Klipper-Add-On.git cd AFC-Klipper-Add-On ./install-afc.sh The screen launches and I try to install and I get that error that won't let me progress.
press I instead of 1
LOL