fastsdcpu icon indicating copy to clipboard operation
fastsdcpu copied to clipboard

"Preparing metadata (pyproject.toml) ... error" on Raspberry Pi 5

Open technofox01 opened this issue 10 months ago • 6 comments

I am trying to install the lastest version of fastsdcpu on my Raspberry Pi 5 8GB and I keep getting this error message:

`Collecting PyQt5 Using cached PyQt5-5.15.11.tar.gz (3.2 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [25 lines of output] Traceback (most recent call last): File "/home/pi/fastsdcpu/env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/home/pi/fastsdcpu/env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pi/fastsdcpu/env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel whl_basename = backend.build_wheel(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-gqhux6rc/overlay/lib/python3.11/site-packages/sipbuild/api.py", line 28, in build_wheel project = AbstractProject.bootstrap('wheel', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-gqhux6rc/overlay/lib/python3.11/site-packages/sipbuild/abstract_project.py", line 74, in bootstrap project.setup(pyproject, tool, tool_description) File "/tmp/pip-build-env-gqhux6rc/overlay/lib/python3.11/site-packages/sipbuild/project.py", line 629, in setup self.apply_user_defaults(tool) File "/tmp/pip-install-5l589cdw/pyqt5_5299ed1d44f846ec88edc10548d34b9a/project.py", line 68, in apply_user_defaults super().apply_user_defaults(tool) File "/tmp/pip-build-env-gqhux6rc/overlay/lib/python3.11/site-packages/pyqtbuild/project.py", line 51, in apply_user_defaults super().apply_user_defaults(tool) File "/tmp/pip-build-env-gqhux6rc/overlay/lib/python3.11/site-packages/sipbuild/project.py", line 243, in apply_user_defaults self.builder.apply_user_defaults(tool) File "/tmp/pip-build-env-gqhux6rc/overlay/lib/python3.11/site-packages/pyqtbuild/builder.py", line 49, in apply_user_defaults raise PyProjectOptionException('qmake', sipbuild.pyproject.PyProjectOptionException [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.`

Can someone help with this?

It's been driving me nuts.

I am using Debian 12 (bookworm) and have Python 3.11.2 installed.

technofox01 avatar Feb 10 '25 15:02 technofox01

@technofox01 please follow this https://github.com/rupeshs/fastsdcpu?tab=readme-ov-file#fastsd-cpu-on-linux It will automatically installs

rupeshs avatar Feb 10 '25 15:02 rupeshs

@technofox01 please follow this https://github.com/rupeshs/fastsdcpu?tab=readme-ov-file#fastsd-cpu-on-linux It will automatically installs

I appreciate your help on this. I did that, please see my terminal output below: `~/fastsdcpu $ sudo ./install.sh Starting FastSD CPU env installation... Found python command Python version : 3.11.2 Looking in indexes: https://download.pytorch.org/whl/cpu, https://www.piwheels.org/simple Requirement already satisfied: torch==2.2.2 in ./env/lib/python3.11/site-packages (2.2.2) Requirement already satisfied: filelock in ./env/lib/python3.11/site-packages (from torch==2.2.2) (3.17.0) Requirement already satisfied: typing-extensions>=4.8.0 in ./env/lib/python3.11/site-packages (from torch==2.2.2) (4.12.2) Requirement already satisfied: sympy in ./env/lib/python3.11/site-packages (from torch==2.2.2) (1.13.3) Requirement already satisfied: networkx in ./env/lib/python3.11/site-packages (from torch==2.2.2) (3.3) Requirement already satisfied: jinja2 in ./env/lib/python3.11/site-packages (from torch==2.2.2) (3.1.5) Requirement already satisfied: fsspec in ./env/lib/python3.11/site-packages (from torch==2.2.2) (2025.2.0) Requirement already satisfied: MarkupSafe>=2.0 in ./env/lib/python3.11/site-packages (from jinja2->torch==2.2.2) (2.1.5) Requirement already satisfied: mpmath<1.4,>=1.1.0 in ./env/lib/python3.11/site-packages (from sympy->torch==2.2.2) (1.3.0) Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting accelerate==0.33.0 Using cached https://www.piwheels.org/simple/accelerate/accelerate-0.33.0-py3-none-any.whl (315 kB) Collecting diffusers==0.30.0 Using cached https://www.piwheels.org/simple/diffusers/diffusers-0.30.0-py3-none-any.whl (2.6 MB) Collecting transformers==4.41.2 Using cached https://www.piwheels.org/simple/transformers/transformers-4.41.2-py3-none-any.whl (9.1 MB) Collecting PyQt5 Using cached PyQt5-5.15.11.tar.gz (3.2 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [25 lines of output] Traceback (most recent call last): File "/home/pi/fastsdcpu/env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/home/pi/fastsdcpu/env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pi/fastsdcpu/env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel whl_basename = backend.build_wheel(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-9c1jv7uo/overlay/lib/python3.11/site-packages/sipbuild/api.py", line 28, in build_wheel project = AbstractProject.bootstrap('wheel', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-9c1jv7uo/overlay/lib/python3.11/site-packages/sipbuild/abstract_project.py", line 74, in bootstrap project.setup(pyproject, tool, tool_description) File "/tmp/pip-build-env-9c1jv7uo/overlay/lib/python3.11/site-packages/sipbuild/project.py", line 629, in setup self.apply_user_defaults(tool) File "/tmp/pip-install-oi7p1l5i/pyqt5_bdaf839d0404498893d708dee4f54c9f/project.py", line 68, in apply_user_defaults super().apply_user_defaults(tool) File "/tmp/pip-build-env-9c1jv7uo/overlay/lib/python3.11/site-packages/pyqtbuild/project.py", line 51, in apply_user_defaults super().apply_user_defaults(tool) File "/tmp/pip-build-env-9c1jv7uo/overlay/lib/python3.11/site-packages/sipbuild/project.py", line 243, in apply_user_defaults self.builder.apply_user_defaults(tool) File "/tmp/pip-build-env-9c1jv7uo/overlay/lib/python3.11/site-packages/pyqtbuild/builder.py", line 49, in apply_user_defaults raise PyProjectOptionException('qmake', sipbuild.pyproject.PyProjectOptionException [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.`

technofox01 avatar Feb 10 '25 17:02 technofox01

Please try this ./install.sh --disable-gui

rupeshs avatar Feb 11 '25 01:02 rupeshs

Please try this ./install.sh --disable-gui

Hi!

This worked perfectly, thank you. Quick question, are you able to add support for OnnxStream?

Source: https://github.com/vitoplantamura/OnnxStream

It works so much faster on Raspberry Pi 5 than the methods used by Fastsdcpu. It just lacks a functional webui. I appreciate your thoughts.

technofox01 avatar Feb 11 '25 15:02 technofox01

@technofox01 Thanks for using FastSDCPU, i will check that

rupeshs avatar Feb 11 '25 15:02 rupeshs

@technofox01 how much time onnxstream takes to generate image on RPI 5? which model?

rupeshs avatar Apr 20 '25 06:04 rupeshs