OllisGit / OctoPrint-SpoolManager

Plugin for managing Spools
168 stars 58 forks source link

Pillow Version Specifier error on python 3.10.9 #320

Closed zi0d3v4 closed 1 year ago

zi0d3v4 commented 1 year ago

I get This error everytime I try to add the plugin to my freshly installed octoprint. It seems an issue with version specifier for pillow

Installing plugin "SpoolManager" from https://github.com/OllisGit/OctoPrint-SpoolManager/releases/latest/download/master.zip...
/usr/bin/python -m pip --disable-pip-version-check install file:///tmp/tmp10c7uyqb/master.zip --no-cache-dir --user
Processing /tmp/tmp10c7uyqb/master.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
╰─> [4 lines of output]
error in OctoPrint-SpoolManager 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
~~~~~~~^
Found packages: {'octoprint_SpoolManager', 'octoprint_SpoolManager.models', 'octoprint_SpoolManager.common', 'octoprint_SpoolManager.api'}
[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

The log goes like : 2023-03-13 13:37:04,783 /usr/bin/python -m pip --disable-pip-version-check install file:///tmp/tmptsxvmw2c/master.zip --no-cache-dir --user 2023-03-13 13:37:05,661 ! /usr/bin/python: No module named pip 2023-03-13 13:39:49,330 /usr/bin/python -m pip --disable-pip-version-check install file:///tmp/tmp10c7uyqb/master.zip --no-cache-dir --user 2023-03-13 13:39:58,036 > Processing /tmp/tmp10c7uyqb/master.zip 2023-03-13 13:39:58,037 > Preparing metadata (setup.py): started 2023-03-13 13:40:02,447 > Preparing metadata (setup.py): finished with status 'error' 2023-03-13 13:40:02,956 ! error: subprocess-exited-with-error 2023-03-13 13:40:02,958 ! 2023-03-13 13:40:02,959 ! × python setup.py egg_info did not run successfully. 2023-03-13 13:40:02,960 ! │ exit code: 1 2023-03-13 13:40:02,963 ! ╰─> [4 lines of output] 2023-03-13 13:40:02,964 ! error in OctoPrint-SpoolManager 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) 2023-03-13 13:40:02,965 ! pillow >=6.2.0<7.0.0 2023-03-13 13:40:02,965 ! ~~~~~~~^ 2023-03-13 13:40:02,966 ! Found packages: {'octoprint_SpoolManager', 'octoprint_SpoolManager.models', 'octoprint_SpoolManager.common', 'octoprint_SpoolManager.api'} 2023-03-13 13:40:02,967 ! [end of output] 2023-03-13 13:40:02,968 ! 2023-03-13 13:40:02,969 ! note: This error originates from a subprocess, and is likely not a problem with pip. 2023-03-13 13:40:02,969 ! error: metadata-generation-failed 2023-03-13 13:40:02,971 ! 2023-03-13 13:40:02,971 ! × Encountered error while generating package metadata. 2023-03-13 13:40:02,972 ! ╰─> See above for output. 2023-03-13 13:40:02,973 ! 2023-03-13 13:40:02,974 ! note: This is an issue with the package mentioned above, not pip. 2023-03-13 13:40:02,974 ! hint: See above for details.

OS info: (running on RaspberryPi3 Model B)

$ uname -a Linux alarm.pi 6.1.16-3-rpi-ARCH #1 SMP Sat Mar 11 09:05:04 MST 2023 armv7l GNU/Linux

$ cat /etc/os-release NAME="Arch Linux ARM" PRETTY_NAME="Arch Linux ARM" ID=archarm ID_LIKE=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinuxarm.org/" DOCUMENTATION_URL="https://archlinuxarm.org/wiki" SUPPORT_URL="https://archlinuxarm.org/forum" BUG_REPORT_URL="https://github.com/archlinuxarm/PKGBUILDs/issues" LOGO=archlinux-logo

$ python --version Python 3.10.9

$ pip --version pip 23.0.1 from /usr/lib/python3.10/site-packages/pip (python 3.10)

$ ./octoprint --version octoprint, version 1.8.7

zi0d3v4 commented 1 year ago

It seems a similar issue has been opened for same error but in python 3.9.16.