Installing OctoPrint on Ubuntu 18.04

What is the problem?

I try to install OctoPrint on Ubuntu 18.04 (with Python 3.6.9) installed inside of an virtual environment.

What did you already try to solve it?

I've tested the role usage on the Ubuntu 18.04 - I use Vagrant and [the generic/ubuntu1804 box](https://app.vagrantup.com/generic/boxes/ubuntu1804) - and it fails.


Even if the virtual environment is active 

(venv) root@octoprint1804:/home/pi/Octoprint# which python
/home/pi/Octoprint/venv/bin/python
(venv) root@octoprint1804:/home/pi/Octoprint# python --version
Python 3.6.9
(venv) root@octoprint1804:/home/pi/Octoprint# pip3 --version
pip 21.3.1 from /home/pi/Octoprint/venv/lib/python3.6/site-packages/pip (python 3.6)
(venv) root@octoprint1804:/home/pi/Octoprint# which pip3
/home/pi/Octoprint/venv/bin/pip3
(venv) root@octoprint1804:/home/pi/Octoprint# pip3 install octoprint==1.8.1
ERROR: Could not find a version that satisfies the requirement octoprint==1.8.1 (from versions: 1.4.0rc1, 1.4.0rc2, 1.4.0rc3, 1.4.0rc5, 1.4.0rc6, 1.4.0, 1.4.1rc1, 1.4.1rc2, 1.4.1rc3, 1.4.1rc4, 1.4.1, 1.4.2, 1.5.0rc1, 1.5.0rc2, 1.5.0rc3, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.6.0rc1, 1.6.0rc2, 1.6.0rc3, 1.6.0, 1.6.1, 1.7.0rc1, 1.7.0rc2, 1.7.0rc3, 1.7.0, 1.7.1, 1.7.2, 1.7.3)
ERROR: No matching distribution found for octoprint==1.8.1
(venv) root@octoprint1804:/home/pi/Octoprint# /home/pi/Octoprint/venv/bin/python3.6 -m pip install octoprint==1.8.0
ERROR: Could not find a version that satisfies the requirement octoprint==1.8.0 (from versions: 1.4.0rc1, 1.4.0rc2, 1.4.0rc3, 1.4.0rc5, 1.4.0rc6, 1.4.0, 1.4.1rc1, 1.4.1rc2, 1.4.1rc3, 1.4.1rc4, 1.4.1, 1.4.2, 1.5.0rc1, 1.5.0rc2, 1.5.0rc3, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.6.0rc1, 1.6.0rc2, 1.6.0rc3, 1.6.0, 1.6.1, 1.7.0rc1, 1.7.0rc2, 1.7.0rc3, 1.7.0, 1.7.1, 1.7.2, 1.7.3)
ERROR: No matching distribution found for octoprint==1.8.0


### Have you tried running in safe mode?
WRITE HERE

### Did running in safe mode solve the problem?
Not applicable

### Systeminfo Bundle
Not applicable

### Additional information about your setup
[The generic/ubuntu1804 box](https://app.vagrantup.com/generic/boxes/ubuntu1804) Vagrant box.

My tests are in a context of updates to the Ansible role https://github.com/semuconsulting/ansible_octoprint/.

Hello @it-praktyk !

Have you used a certain guide or script to install?

You may use this:

BTW: Ubuntu 18.04 is quite old and it's LTS end soon this year.

Thank you for your reply.

I edited my question. I'm updating an Ansible role to install OctoPrint - like mentioned in the last line of initial message (after upgrade).

OctoPrint only supports Python 3.7 and higher, so this won't work.

2 Likes

Thank you.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.