Python3.10 install issues

Basic Information:

Printer Model: Ender3Pro
MCU / Printerboard:SKR Mini E3v3
klippy.log

Fill out above information and in all cases attach your klippy.log file. Pasting your printer.cfg is not needed

Describe your issue:

Hello, tried to install Klipper on my Ubuntu Octoprint pc and got the python-dev error. So I removed it from the install script to see what would happen and got a whole bunch of errors. I have both python 3.10 and 2 installed. It looks like Klipper isn’t liking the python3.10 virtualenv. Anyone know if there’s a working version for Klipper for python3.1?

I’ve attached the terminal output in the attached text file.
KlipperInstallOutput.txt (28.2 KB)

Python 3 is not yet officially supported. Any special reason why you need to use it?

My Ubuntu has the latest version installed. I installed Python 2 but I couldn’t get Klipper to install as you can see by the text file. If I had nothing else installed I could have done a clean install but unfortunately I can’t.

Do the following:

  1. Login to your klipper user’s ssh account (likely ubuntu)

  2. Switch to the home folder

    • cd ~
  3. Run

    rm -rf ~/klippy-env ~/klipper
    git clone https://github.com/Klipper3d/klipper
    sudo apt update
    sudo apt install python2 python2-pip-whl
    sed -i 's/python-dev/python2-dev/g' ~/klipper/scripts/install-ubuntu-18.04.sh
    ./klipper/scripts/install-ubuntu-18.04.sh
    
  4. If all ran without errors, revert the change to avoid marking your installation as dirty

    • sed -i 's/python2-dev/python-dev/g' ~/klipper/scripts/install-ubuntu-18.04.sh
  5. Add the ubuntu user to the dialout group

    • sudo usermod -a -G dialout ubuntu

Hi Sineos, thank you finally got some time off will try this today… but before I do, i have this version installed…
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

Is it still the same proceedure? Cause I got this error… (See attached txt)
Errors.txt (8.1 KB)

Run

sudo apt install python2-setuptools-whl

then repeat:

rm -rf ~/klippy-env ~/klipper
git clone https://github.com/Klipper3d/klipper
sed -i 's/python-dev/python2-dev/g' ~/klipper/scripts/install-ubuntu-18.04.sh
./klipper/scripts/install-ubuntu-18.04.sh

Ok so no errors but still a warning…
Warning.txt (2.2 KB)

All fine, the warnings can be safely ignored.

Cool.

So just proceed with these 2 steps and start the clipper setup as per the instructions from the site?

  1. If all ran without errors, revert the change to avoid marking your installation as dirty
  • sed -i 's/python2-dev/python-dev/g' ~/klipper/scripts/install-ubuntu-18.04.sh
  1. Add the ubuntu user to the dialout group
  • sudo usermod -a -G dialout ubuntu

https://www.klipper3d.org/Installation.html

Just continue as per documentation.

Ok cool your awesome. Thank you.

Hello again… So I entered the dialout for ubuntu and got…
usermod: user ‘ubuntu’ does not exist

am I to assume that my username is " pi " and put that in its place?

Also got this error message …
Make Error.txt (1004 Bytes)

Try running

sudo apt-get install libusb-1.0 pkg-config

Yes, of course. Typically the standard user of a Ubuntu distribution is ubuntu, that’s why I assumed it.

General remark:
If you lack Linux experience, your results might be better if you choose some Klipper dedicated distributions like Mainsail OS or OctoPi

Its getting there. Just need more practice and help from you guys.
Also I still get the same error 255… I am the skr mini e3 v3 board… These are the settings I choose… It should be right but Don’t know what else can be wrong…

Also heres the log file if this helps…
octoprint.log (177.5 KB)

The Octoprint log isn’t useful. We need your klippy.log file to help.