common environment(1~3) WSL on windows10 [Version 10.0.19042.1165]
environment1: Ubuntu 18.4 LTS
environment2: Ubuntu 20.4 LTS
An error occurred while installing after viewing the “Installation” description
https://www.klipper3d.org/Installation.html
Below is the command used
# Part to install Octoprint
python3 --version
sudo apt update
sudo apt install python3-pip python3-dev python3-setuptools python3-venv git libyaml-dev build-essential
python3 -m venv venv
source venv/bin/activate
pip install pip --upgrade
pip install octoprint
octoprint serve
# Part to install klipper
git clone https://github.com/KevinOConnor/klipper
#When I tried with install-ubuntu-18.04.sh, the installation didn't work properly. (The below error occurred)
#System has not been booted with systemd as init system (PID 1). Can't operate.
./klipper/scripts/install-octopi.sh
cd ~/klipper/
make menuconfig # In my case, I chose the "ATMEGA328P".
make
# I used "ls /dev/serial/by-id/*" instead, and I wrote it in the form of ttyS<port>
ls /dev/ttyS5
sudo service klipper stop
#The upload seems to work fine in this part. (Pay attention to the recognized port number)
make flash FLASH_DEVICE=/dev/ttyS5
sudo service klipper start
I was following “Installation - Klipper documentation” and encountered a problem at the “Configuring OctoPrint to use Klipper” part.
This error occurs regardless of whether the Arduino is connected or not.
Error displayed in Terminal part of Octoprint
Changing monitoring state from "Offline" to "Detecting serial connection"
Performing autodetection with 7 port/baudrate candidates: /tmp/printer@115200, /tmp/printer@250000, /tmp/printer@230400, /tmp/printer@57600, /tmp/printer@38400, /tmp/printer@19200, /tmp/printer@9600
Trying port /tmp/printer, baudrate 115200
Connecting to port /tmp/printer, baudrate 115200
Unexpected error while connecting to serial port /tmp/printer, baudrate 115200 from hook default: SerialException: '[Errno 95] Could not exclusively lock port /tmp/printer: [Errno 95] Operation not supported' @ comm.py:_open_serial:3695
Could not open port /tmp/printer, baudrate 115200, skipping
Trying port /tmp/printer, baudrate 250000
Connecting to port /tmp/printer, baudrate 250000
Unexpected error while connecting to serial port /tmp/printer, baudrate 250000 from hook default: SerialException: '[Errno 95] Could not exclusively lock port /tmp/printer: [Errno 95] Operation not supported' @ comm.py:_open_serial:3695
Could not open port /tmp/printer, baudrate 250000, skipping
Trying port /tmp/printer, baudrate 230400
Connecting to port /tmp/printer, baudrate 230400
Unexpected error while connecting to serial port /tmp/printer, baudrate 230400 from hook default: SerialException: '[Errno 95] Could not exclusively lock port /tmp/printer: [Errno 95] Operation not supported' @ comm.py:_open_serial:3695
Could not open port /tmp/printer, baudrate 230400, skipping
Trying port /tmp/printer, baudrate 57600
Connecting to port /tmp/printer, baudrate 57600
Unexpected error while connecting to serial port /tmp/printer, baudrate 57600 from hook default: SerialException: '[Errno 95] Could not exclusively lock port /tmp/printer: [Errno 95] Operation not supported' @ comm.py:_open_serial:3695
Could not open port /tmp/printer, baudrate 57600, skipping
Trying port /tmp/printer, baudrate 38400
Connecting to port /tmp/printer, baudrate 38400
Unexpected error while connecting to serial port /tmp/printer, baudrate 38400 from hook default: SerialException: '[Errno 95] Could not exclusively lock port /tmp/printer: [Errno 95] Operation not supported' @ comm.py:_open_serial:3695
Could not open port /tmp/printer, baudrate 38400, skipping
Trying port /tmp/printer, baudrate 19200
Connecting to port /tmp/printer, baudrate 19200
Unexpected error while connecting to serial port /tmp/printer, baudrate 19200 from hook default: SerialException: '[Errno 95] Could not exclusively lock port /tmp/printer: [Errno 95] Operation not supported' @ comm.py:_open_serial:3695
Could not open port /tmp/printer, baudrate 19200, skipping
Trying port /tmp/printer, baudrate 9600
Connecting to port /tmp/printer, baudrate 9600
Unexpected error while connecting to serial port /tmp/printer, baudrate 9600 from hook default: SerialException: '[Errno 95] Could not exclusively lock port /tmp/printer: [Errno 95] Operation not supported' @ comm.py:_open_serial:3695
Could not open port /tmp/printer, baudrate 9600, skipping
Changing monitoring state from "Detecting serial connection" to "Error"
Changing monitoring state from "Error" to "Offline after error"