Setuptools error while installing plugin (octoklipper) on manual OP installation

What is the problem?

error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 255
╰─> [1 lines of output]
Could not import OctoPrint's setuptools, are you sure you are running that under the same python installation that OctoPrint is installed under?
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 255
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

RROR: You must give at least one requirement to wheel (see "pip help wheel")

What did you already try to solve it?

reinstall python venv, doublechecked octoprints venv

Have you tried running in safe mode?

no

Did running in safe mode solve the problem?

matter?

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

octoprint-systeminfo-20230423165422.zip (9,6 KB)

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

HW: odroid C4
OS: ubuntu 22-04 mini (opdated odroid image)
Installation: manual, depending to octoprints doc
User; odroid
venv: Python 3.10.7 ~/oprint

Octoprint Insallation succeeded without any errors
Octoprint startup looks fine also no errors

But I'm not able to install octoklipper after OP base installation.
klipper itself is also installed and up without any errors, of course from its own venv

... extracting the package and install it over comandline (python setup.py build, python setup.py install) succeeded without errors, I'm confused but happy. Any ideas whats wrong with pip?

(oprint) odroid@odroid:~$ pip --version
pip 23.1.1 from /home/odroid/oprint/lib/python3.10/site-packages/pip (python 3.10)
(oprint) odroid@odroid:~$ which pip
/home/odroid/oprint/bin/pip
(oprint) odroid@odroid:~$
2 Likes

With installed wheel package the installation works as expected :slight_smile:

Thank you!!! Been trying to solve this for a couple of days -- what are the chances it was just asked/answered yesterday!

i have similar issue on new install. Have tried pip install wheel, it comes back with is already installed. Cant install any plugins.

biqu@BTT-CB1:~/OctoPrint/venv/bin$ sudo pip install wheel
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.34.2)

new install btt cb1. Followed manual installation. Octoprint is insalled and appears to work, just cant install plugins

Why did you use sudo? It results in the wrong permissions, and it looks like you need to activate your virtual environment maybe as well.

Run source ~/OctoPrint/venv/activate, then try pip install wheel. No sudo.

Maybe finding out what python venv means, will help to understand what went wrong in your case :wink:

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