hnt@usrpi4:~$ sudo apt install virtualenv Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: python3-appdirs python3-distlib python3-filelock python3-virtualenv The following NEW packages will be installed: python3-appdirs python3-distlib python3-filelock python3-virtualenv virtualenv 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. Need to get 200 kB of archives. After this operation, 1054 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 python3-appdirs all 1.4.3-2.1 [10.8 kB] Get:2 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 python3-distlib all 0.3.0-1 [116 kB] Get:3 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 python3-filelock all 3.0.12-2 [7948 B] Get:4 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 python3-virtualenv all 20.0.17-1 [63.4 kB] Get:5 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 virtualenv all 20.0.17-1 [2132 B] Fetched 200 kB in 1s (384 kB/s) Selecting previously unselected package python3-appdirs. (Reading database ... 115638 files and directories currently installed.) Preparing to unpack .../python3-appdirs_1.4.3-2.1_all.deb ... Unpacking python3-appdirs (1.4.3-2.1) ... Selecting previously unselected package python3-distlib. Preparing to unpack .../python3-distlib_0.3.0-1_all.deb ... Unpacking python3-distlib (0.3.0-1) ... Selecting previously unselected package python3-filelock. Preparing to unpack .../python3-filelock_3.0.12-2_all.deb ... Unpacking python3-filelock (3.0.12-2) ... Selecting previously unselected package python3-virtualenv. Preparing to unpack .../python3-virtualenv_20.0.17-1_all.deb ... Unpacking python3-virtualenv (20.0.17-1) ... Selecting previously unselected package virtualenv. Preparing to unpack .../virtualenv_20.0.17-1_all.deb ... Unpacking virtualenv (20.0.17-1) ... Setting up python3-filelock (3.0.12-2) ... Setting up python3-distlib (0.3.0-1) ... Setting up python3-appdirs (1.4.3-2.1) ... Setting up python3-virtualenv (20.0.17-1) ... Setting up virtualenv (20.0.17-1) ... Processing triggers for man-db (2.9.1-1) ... hnt@usrpi4:~$ curl -L https://get.octoprint.org/py3/upgrade.py --output upgrade.py % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 154 100 154 0 0 895 0 --:--:-- --:--:-- --:--:-- 895 100 25031 100 25031 0 0 43532 0 --:--:-- --:--:-- --:--:-- 43532 hnt@usrpi4:~$ python3 upgrade.py OctoPrint Upgrade to Py 3 (v2.1.8) Hello! This script will move your existing OctoPrint configuration from Python 2 to Python 3 This script requires an internet connection and it will disrupt any ongoing print jobs. It will install the latest version of OctoPrint (1.4.2) and all plugins. No configuration or other files will be overwritten Press [enter] to continue or ctrl-c to quit Detecting system info... Please provide the path to your virtual environment and the config directory of OctoPrint On OctoPi, this would be `/home/pi/oprint` (venv), `/home/pi/.octoprint` (config) and service commands commands `sudo service octoprint stop/start` Path: /home/hnt/OctoPrint/venv Path valid Config directory: /home/hnt/.octoprint Config directory valid To do the install, we need the service stop and start commands. (Leave blank if you don't have a service set up) Stop command: sudo service octoprint stop Start command: sudo service octoprint start Getting OctoPrint version... OctoPrint version: 1.4.2 Reading installed plugins... Plugins installed - ProgressBasedOntime Plugin - Preheat Button - Printoid Plugin - PSU Control - Enclosure Plugin - Filament Manager - SpoolManager Plugin - Dragon Order - Tab Order - Themeify - PrintTimeGenius Plugin - Consolidate Temp Control - Navbar Temperature Plugin If you think there is something missing from here, please check the list of plugins in Octoprint Press [enter] to continue or ctrl-c to quit Root access is required to install python3-dev, please fill in the password prompt if shown Updating package list... Installing python3-dev... python3-dev is already the newest version (3.8.2-0ubuntu2). Creating new Python 3 environment... /usr/bin/python: No module named virtualenv ERROR: Failed to create Python 3 venv Could not create new venv Cleaning up... Fatal Error: Exiting hnt@usrpi4:~$