I am running octoprint 1.8.7 on a laptop with Kubuntu OS. A few days back I got a warning that support for my distro (22.something) is going to end, and that I should upgrade to the newer Kubuntu 23.04. Really stupid of me I didn't make a backup of my octoprint from the web GUI. I went ahead and updated the distribution assuming it will keep all the octoprint files, it sort of did but not quite. The octoprint installation was gone so I had to reinstall. It is working after that all my previously printed files are there. And the mjpeg streaming config is there and working, but all the plugins were gone! When I tried to reinstall them i get this error message (I will attach the log file also):
2023-05-10 14:38:02,944 > Processing /tmp/tmpcp_hgexf/OctoPrint-SimpleEmergencyStop-master.zip
2023-05-10 14:38:02,944 > Installing build dependencies: started
2023-05-10 14:38:06,613 > Installing build dependencies: finished with status 'done'
2023-05-10 14:38:06,614 > Getting requirements to build wheel: started
2023-05-10 14:38:06,614 > Getting requirements to build wheel: finished with status 'error'
2023-05-10 14:38:06,616 ! error: subprocess-exited-with-error
2023-05-10 14:38:06,616 !
2023-05-10 14:38:06,616 ! Γ Getting requirements to build wheel did not run successfully.
2023-05-10 14:38:06,616 ! β exit code: 255
2023-05-10 14:38:06,616 ! β°β> [1 lines of output]
2023-05-10 14:38:06,617 ! Could not import OctoPrint's setuptools, are you sure you are running that under the same python installation that OctoPrint is installed under?
2023-05-10 14:38:06,617 ! [end of output]
2023-05-10 14:38:06,618 !
2023-05-10 14:38:06,618 ! note: This error originates from a subprocess, and is likely not a problem with pip.
2023-05-10 14:38:06,619 ! error: subprocess-exited-with-error
2023-05-10 14:38:06,619 !
2023-05-10 14:38:06,619 ! Γ Getting requirements to build wheel did not run successfully.
2023-05-10 14:38:06,619 ! β exit code: 255
2023-05-10 14:38:06,619 ! β°β> See above for output.
2023-05-10 14:38:06,620 !
2023-05-10 14:38:06,620 ! note: This error originates from a subprocess, and is likely not a problem with pip
Thank you both for the support. Your suggestions fixed my problem.
A little clarification for everyone in my position. First I had to do enter virtual environment with the command
Navigate to the OctoPrint install direrctory and then run
source venv/bin/activate
and then run the command
pip install wheel
I have another question. Maybe I'm asking a bit too much, but is there a way to restore plugin data from the previous installation?
I just looked at the plugin's code and think this may be a bug with their setup.py. I've opened an issue for you here.
I've made a fork and patched what I think the issue is if you want to try and see if it will install. Copy/Paste the URL below into plugin manager > get more > ...from URL and click install and see if it works.
Installing plugin from https://github.com/jneilliii/Octolapse/archive/refs/heads/bugfix/plugin_requires.zip...
/home/kamen/OctoPrint/venv/bin/python3 -m pip --disable-pip-version-check install file:///tmp/tmp41j6r9ze/Octolapse-bugfix-plugin_requires.zip --no-cache-dir
Processing /tmp/tmp41j6r9ze/Octolapse-bugfix-plugin_requires.zip
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
Γ python setup.py egg_info did not run successfully.
β exit code: 1
β°β> [10 lines of output]
/tmp/pip-req-build-5qb4yzet/setup.py:58: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(octoprint.server.VERSION) < LooseVersion("1.4"):
error in Octolapse setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after version specifier)
pillow>=6.2.0<7.0.0
~~~~~~~^
discarding 'bugfix/plugin_requires', no digits
likely tags: refs/pull/1/head
picking refs/pull/1/head
got version from expanded keyword {'version': 'refs/pull/1/head', 'full-revisionid': 'a1bf3e1cbab16000b37df43a37e21a527a4cdf93', 'dirty': False, 'error': None, 'date': '2023-05-11T10:25:10-0400'}
Found packages: {'octoprint_octolapse', 'octoprint_octolapse_setuptools', 'octoprint_octolapse.test'}
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Γ Encountered error while generating package metadata.
β°β> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Error!
Could not parse output from pip, see plugin_pluginmanager_console.log for generated output
Also I tried to install FilamentManager. It seamed to be installing. It wanted a restart, so I did, but after the restart there is no plugin anywhere. And when I search for the plugin via the plugin manager I couldn't find it and when I searched for it via Get more plugins I can see it with the install button and the same thing repeats.