# Python3.10 install issues

**URL:** <https://klipper.discourse.group/t/python3-10-install-issues/4201>\
**Category:** General Discussion\
**Created:** [September 21, 2022, 8:05pm UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201 "2022-09-21T20:05:59Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zar](https://avatars.discourse-cdn.com/v4/letter/z/f14d63/32.png) [@Zar](https://klipper.discourse.group/u/Zar)\
**Post date:** [September 21, 2022, 8:05pm UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/1 "2022-09-21T20:05:59Z")

</div>

### 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](https://klipper.discourse.group/uploads/short-url/iwrZaEvzjNRojVPBd7ND6Uw4bsP.txt) (28.2 KB)

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [September 21, 2022, 8:15pm UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/2 "2022-09-21T20:15:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Zar](https://avatars.discourse-cdn.com/v4/letter/z/f14d63/32.png) [@Zar](https://klipper.discourse.group/u/Zar)\
**Post date:** [September 21, 2022, 10:49pm UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/3 "2022-09-21T22:49:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [September 22, 2022, 6:57am UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/4 "2022-09-22T06:57:47Z")

</div>

Do the following:

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

2. Switch to the home folder

3. Run

4. If all ran without errors, revert the change to avoid marking your installation as dirty

5. Add the `ubuntu` user to the `dialout` group

---

<div class="post-metadata">

**Author:** ![Zar](https://avatars.discourse-cdn.com/v4/letter/z/f14d63/32.png) [@Zar](https://klipper.discourse.group/u/Zar)\
**Post date:** [September 28, 2022, 5:40pm UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/5 "2022-09-28T17:40:55Z")

</div>

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](https://klipper.discourse.group/uploads/short-url/vbYrqhJYJ2NKFASP9kBJxNJzmNu.txt) (8.1 KB)

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [September 29, 2022, 5:52am UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/6 "2022-09-29T05:52:39Z")

</div>

Run

```auto
sudo apt install python2-setuptools-whl

```

then repeat:

```auto
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

```

---

<div class="post-metadata">

**Author:** ![Zar](https://avatars.discourse-cdn.com/v4/letter/z/f14d63/32.png) [@Zar](https://klipper.discourse.group/u/Zar)\
**Post date:** [September 29, 2022, 5:08pm UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/7 "2022-09-29T17:08:17Z")

</div>

Ok so no errors but still a warning…  
[Warning.txt](https://klipper.discourse.group/uploads/short-url/yLPhbRyEgHBkmwTi5WHp7FiPMxg.txt) (2.2 KB)

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [September 29, 2022, 6:04pm UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/8 "2022-09-29T18:04:01Z")

</div>

All fine, the warnings can be safely ignored.

---

<div class="post-metadata">

**Author:** ![Zar](https://avatars.discourse-cdn.com/v4/letter/z/f14d63/32.png) [@Zar](https://klipper.discourse.group/u/Zar)\
**Post date:** [September 29, 2022, 6:50pm UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/9 "2022-09-29T18:50:30Z")

</div>

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](https://www.klipper3d.org/Installation.html)

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [September 30, 2022, 2:37pm UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/10 "2022-09-30T14:37:27Z")

</div>

Just continue as per documentation.

---

<div class="post-metadata">

**Author:** ![Zar](https://avatars.discourse-cdn.com/v4/letter/z/f14d63/32.png) [@Zar](https://klipper.discourse.group/u/Zar)\
**Post date:** [October 1, 2022, 5:40pm UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/11 "2022-10-01T17:40:27Z")

</div>

Ok cool your awesome. Thank you.

---

<div class="post-metadata">

**Author:** ![Zar](https://avatars.discourse-cdn.com/v4/letter/z/f14d63/32.png) [@Zar](https://klipper.discourse.group/u/Zar)\
**Post date:** [October 2, 2022, 4:18pm UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/12 "2022-10-02T16:18:06Z")

</div>

> [@Zar](#):
>
> sudo usermod -a -G dialout ubuntu

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](https://klipper.discourse.group/uploads/short-url/oXdkkyLSRLTbaFwwMwDXmsvII2m.txt) (1004 Bytes)

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [October 2, 2022, 5:37pm UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/13 "2022-10-02T17:37:44Z")

</div>

> [@Zar](#):
>
> Also got this error message …

Try running

```auto
sudo apt-get install libusb-1.0 pkg-config

```

> [@Zar](#):
>
> am I to assume that my username is " pi " and put that in its place?

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](https://github.com/mainsail-crew/MainsailOS) or [OctoPi](https://github.com/guysoft/OctoKlipperPi)

---

<div class="post-metadata">

**Author:** ![Zar](https://avatars.discourse-cdn.com/v4/letter/z/f14d63/32.png) [@Zar](https://klipper.discourse.group/u/Zar)\
**Post date:** [October 2, 2022, 10:24pm UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/14 "2022-10-02T22:24:59Z")

</div>

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…

 ![Info](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/8/86541bbf35f5fbf11f602d0dd49e77dfe962a0ca.png)

Also heres the log file if this helps…  
[octoprint.log](https://klipper.discourse.group/uploads/short-url/yLp9BUlQw3wWMTOc6lVyEfCH2lu.log) (177.5 KB)

---

<div class="post-metadata">

**Author:** ![jakep\_82](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@jakep\_82](https://klipper.discourse.group/u/jakep_82)\
**Post date:** [October 3, 2022, 12:22am UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/15 "2022-10-03T00:22:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [April 24, 2025, 11:53am UTC](https://klipper.discourse.group/t/python3-10-install-issues/4201/16 "2025-04-24T11:53:47Z")

</div>


