Skip to content

Preparing metadata (pyproject.toml) ... error on Macbook Pro 2019 intel i9 #303

@stephanebdc

Description

@stephanebdc

I did the ./install-mac.sh
then

Starting FastSD CPU env installation...
Found python command
Python version : 3.10.10
Requirement already satisfied: torch in ./env/lib/python3.10/site-packages (2.2.2)
Requirement already satisfied: networkx in ./env/lib/python3.10/site-packages (from torch) (3.3)
Requirement already satisfied: sympy in ./env/lib/python3.10/site-packages (from torch) (1.13.1)
Requirement already satisfied: fsspec in ./env/lib/python3.10/site-packages (from torch) (2024.6.1)
Requirement already satisfied: filelock in ./env/lib/python3.10/site-packages (from torch) (3.13.1)
Requirement already satisfied: jinja2 in ./env/lib/python3.10/site-packages (from torch) (3.1.3)
Requirement already satisfied: typing-extensions>=4.8.0 in ./env/lib/python3.10/site-packages (from torch) (4.9.0)
Requirement already satisfied: MarkupSafe>=2.0 in ./env/lib/python3.10/site-packages (from jinja2->torch) (2.1.5)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in ./env/lib/python3.10/site-packages (from sympy->torch) (1.3.0)

[notice] A new release of pip available: 22.3.1 -> 25.0.1
[notice] To update, run: pip install --upgrade pip
Collecting accelerate==0.33.0
Using cached accelerate-0.33.0-py3-none-any.whl (315 kB)
Collecting diffusers==0.30.0
Using cached diffusers-0.30.0-py3-none-any.whl (2.6 MB)
Collecting transformers==4.41.2
Using cached 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
╰─> [29 lines of output]
Traceback (most recent call last):
File "/Users/XxXxXxXxXxX/fastsdcpu/env/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 144, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'

  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/Users/XxXxXxXxXxX/fastsdcpu/env/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
      main()
    File "/Users/XxXxXxXxXxX/fastsdcpu/env/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/Users/XxXxXxXxXxX/fastsdcpu/env/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 148, in prepare_metadata_for_build_wheel
      whl_basename = backend.build_wheel(metadata_directory, config_settings)
    File "/private/var/folders/mg/kblk06s932737tkngrt07ygm0000gn/T/pip-build-env-q2wwbyv3/overlay/lib/python3.10/site-packages/sipbuild/api.py", line 28, in build_wheel
      project = AbstractProject.bootstrap('wheel',
    File "/private/var/folders/mg/kblk06s932737tkngrt07ygm0000gn/T/pip-build-env-q2wwbyv3/overlay/lib/python3.10/site-packages/sipbuild/abstract_project.py", line 74, in bootstrap
      project.setup(pyproject, tool, tool_description)
    File "/private/var/folders/mg/kblk06s932737tkngrt07ygm0000gn/T/pip-build-env-q2wwbyv3/overlay/lib/python3.10/site-packages/sipbuild/project.py", line 629, in setup
      self.apply_user_defaults(tool)
    File "/private/var/folders/mg/kblk06s932737tkngrt07ygm0000gn/T/pip-install-wvefp4en/pyqt5_aae42499fc1e4c04b23365dc9ae56fe4/project.py", line 68, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "/private/var/folders/mg/kblk06s932737tkngrt07ygm0000gn/T/pip-build-env-q2wwbyv3/overlay/lib/python3.10/site-packages/pyqtbuild/project.py", line 51, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "/private/var/folders/mg/kblk06s932737tkngrt07ygm0000gn/T/pip-build-env-q2wwbyv3/overlay/lib/python3.10/site-packages/sipbuild/project.py", line 243, in apply_user_defaults
      self.builder.apply_user_defaults(tool)
    File "/private/var/folders/mg/kblk06s932737tkngrt07ygm0000gn/T/pip-build-env-q2wwbyv3/overlay/lib/python3.10/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions