Moonracker error while installing via Kiauh

Basic Information:

Printer Model: Ender3
MCU / Printerboard:BTT mini E3V2
Host / SBC: BTT pi V1.2

klippy.log (665.0 KB)

klippy.log

Describe your issue:

when i try to install moonracker i got this error:

“ERROR: Exception:Traceback (most recent call last):File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/cli/base_command.py”, line 160, in exc_logging_wrapperstatus = run_func(*args)^^^^^^^^^^^^^^^File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/cli/req_command.py”, line 247, in wrapperreturn func(self, options, args)^^^^^^^^^^^^^^^^^^^^^^^^^File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/commands/install.py”, line 419, in runrequirement_set = resolver.resolve(^^^^^^^^^^^^^^^^^File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py”, line 92, in resolveresult = self._result = resolver.resolve(^^^^^^^^^^^^^^^^^File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py”, line 481, in resolvestate = resolution.resolve(requirements, max_rounds=max_rounds)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py”, line 348, in resolveself._add_to_criteria(self.state.criteria, r, parent=None)File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py”, line 172, in _add_to_criteriaif not criterion.candidates:File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_vendor/resolvelib/structs.py”, line 151, in boolreturn bool(self._sequence)^^^^^^^^^^^^^^^^^^^^File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py”, line 155, in boolreturn any(self)^^^^^^^^^File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py”, line 143, inreturn (c for c in iterator if id(c) not in self._incompatible_ids)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py”, line 47, in _iter_builtcandidate = func()^^^^^^File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/factory.py”, line 206, in _make_candidate_from_linkself._link_candidate_cache[link] = LinkCandidate(^^^^^^^^^^^^^^File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py”, line 297, in initsuper().init(File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py”, line 162, in initself.dist = self._prepare()^^^^^^^^^^^^^^^File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py”, line 231, in _preparedist = self._prepare_distribution()^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py”, line 308, in _prepare_distributionreturn preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/operations/prepare.py”, line 491, in prepare_linked_requirementreturn self._prepare_linked_requirement(req, parallel_builds)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/operations/prepare.py”, line 536, in _prepare_linked_requirementlocal_file = unpack_url(^^^^^^^^^^^File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/operations/prepare.py”, line 176, in unpack_urlunpack_file(file.path, location, file.content_type)File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/utils/unpacking.py”, line 246, in unpack_fileuntar_file(filename, location)File “/home/biqu/moonraker-env/lib/python3.11/site-packages/pip/_internal/utils/unpacking.py”, line 218, in untar_fileshutil.copyfileobj(fp, destfp)File “/usr/lib/python3.11/shutil.py”, line 197, in copyfileobjbuf = fsrc_read(length)^^^^^^^^^^^^^^^^^File “/usr/lib/python3.11/tarfile.py”, line 696, in readintobuf = self.read(len(b))^^^^^^^^^^^^^^^^^File “/usr/lib/python3.11/tarfile.py”, line 685, in readb = self.fileobj.read(length)^^^^^^^^^^^^^^^^^^^^^^^^^File “/usr/lib/python3.11/gzip.py”, line 301, in readreturn self._buffer.read(size)^^^^^^^^^^^^^^^^^^^^^^^File “/usr/lib/python3.11/_compression.py”, line 68, in readintodata = self.read(len(byte_view))^^^^^^^^^^^^^^^^^^^^^^^^^File “/usr/lib/python3.11/gzip.py”, line 507, in readuncompress = self._decompressor.decompress(buf, size)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^zlib.error: Error -3 while decompressing data: invalid distance too far back
[ERROR] Error installing Python requirements: Installing Python requirements failed![ERROR] Error during installation of Moonraker requirements![ERROR] Error while installing Moonraker: Error installing Python requirements: Installing Python requirements failed!”

don’t know what to do

TY in advance

Exit KIAUH then try:

rm -rf ~/moonraker ~/moonraker-env
cd ~/kiauh
git pull
./kiauh.sh

now install again.

@Sineos Thank you,

but i think there is also a problem with armbian repository, i think i have to tell BTT Pi github for this..

btw the error i get when i do a sudo apt-get upgrade

“dpkg-deb (subprocess): decompressing archive ‘/tmp/apt-dpkg-install-ko9s9X/12-cpp-12_12.2.0-14+deb12u1_arm64.deb’ (size=8228384) member ‘data.tar’: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess returned error exit status 2
dpkg: error processing archive /tmp/apt-dpkg-install-ko9s9X/12-cpp-12_12.2.0-14+deb12u1_arm64.deb (–unpack):
cannot copy extracted data for ‘./usr/lib/gcc/aarch64-linux-gnu/12/cc1’ to ‘/usr/lib/gcc/aarch64-linux-gnu/12/cc1.dpkg-new’: unexpected end of file or stream
Preparing to unpack …/13-libgfortran5_12.2.0-14+deb12u1_arm64.deb …
Unpacking libgfortran5:arm64 (12.2.0-14+deb12u1) over (12.2.0-14) …
Preparing to unpack …/14-libstdc++6_12.2.0-14+deb12u1_arm64.deb …
Unpacking libstdc++6:arm64 (12.2.0-14+deb12u1) over (12.2.0-14) …
Errors were encountered while processing:
/tmp/apt-dpkg-install-ko9s9X/12-cpp-12_12.2.0-14+deb12u1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)”

still don’t know what to do

i opened an issue on BTT pi Github

When you post code, please use the Preformatted Text feature of the forum editor to bring it into a proper form.
Format

ok sorry :wink:

Do yourself a favor and replace the crappy BTT Linux with Armbian: BIGTREETECH CB1 - Armbian

The CB1 image fits the BTT Pi v1.2 as well (not v2!)

To add to the above: Regardless of the fact that the BTT images are crap, this kind of error is unlikely their fault:

  • Either something with your internet line / stability / certificates / intermediate proxies or firewalls
  • A mess up with the apt repository on the server side (unlikely)
  • A messed up Linux installation
  • A dying or defective SD card

With the last two being my favorites.

you mean this? i thought that this and BTT Pi are quite the same thing…

btw the SD card is a brand new Verbatim 32GB bougth this morning (i’m in Italy and here is 12.45 PM)

for a messed up install i used the image for btt pi github

here

and i wrote it in the SD with raspi imager and without updates or upgrades works like a charme, is the update/upgrade that mess me up

now is working after updating/upgrading all but Klipper