Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't configure local server on mac m1, (Failed to build installable wheels for some pyproject.toml based projects (xatlas)) #1622

Open
victorgusev opened this issue Feb 19, 2025 · 1 comment
Labels
installation Issue with the installer mac-os Apple macOS related

Comments

@victorgusev
Copy link

Can't configure local server on mac m1, plese help
Log:

        |          ^~~~~~~~~
  1 error generated.
  [5/7] Building CXX object src/CMakeFiles/xatlas.dir/utils.cpp.o
  FAILED: src/CMakeFiles/xatlas.dir/utils.cpp.o
  /Library/Developer/CommandLineTools/usr/bin/c++ -DVERSION_INFO=0.0.9 -Dxatlas_EXPORTS -I/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-install-pfsv6fx8/xatlas_75d7fc9fbcd147a98f8f71f8fef159ce/extern/xatlas/source/xatlas -isystem /private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-install-pfsv6fx8/xatlas_75d7fc9fbcd147a98f8f71f8fef159ce/extern/pybind11/include -isystem /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -O3 -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.2.sdk -fPIC -fvisibility=hidden -flto -MD -MT src/CMakeFiles/xatlas.dir/utils.cpp.o -MF src/CMakeFiles/xatlas.dir/utils.cpp.o.d -o src/CMakeFiles/xatlas.dir/utils.cpp.o -c /private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-install-pfsv6fx8/xatlas_75d7fc9fbcd147a98f8f71f8fef159ce/src/utils.cpp
  In file included from /private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-install-pfsv6fx8/xatlas_75d7fc9fbcd147a98f8f71f8fef159ce/src/utils.cpp:25:
  In file included from /private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-install-pfsv6fx8/xatlas_75d7fc9fbcd147a98f8f71f8fef159ce/src/utils.hpp:27:
  In file included from /private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-install-pfsv6fx8/xatlas_75d7fc9fbcd147a98f8f71f8fef159ce/extern/pybind11/include/pybind11/numpy.h:12:
  In file included from /private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-install-pfsv6fx8/xatlas_75d7fc9fbcd147a98f8f71f8fef159ce/extern/pybind11/include/pybind11/pybind11.h:13:
  In file included from /private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-install-pfsv6fx8/xatlas_75d7fc9fbcd147a98f8f71f8fef159ce/extern/pybind11/include/pybind11/detail/class.h:12:
  In file included from /private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-install-pfsv6fx8/xatlas_75d7fc9fbcd147a98f8f71f8fef159ce/extern/pybind11/include/pybind11/detail/../attr.h:13:
  /private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-install-pfsv6fx8/xatlas_75d7fc9fbcd147a98f8f71f8fef159ce/extern/pybind11/include/pybind11/detail/../detail/common.h:245:10: fatal error: 'cstddef' file not found
    245 | #include <cstddef>
        |          ^~~~~~~~~
  1 error generated.
  ninja: build stopped: subcommand failed.
  Traceback (most recent call last):
    File "/Users/victorgusev/Library/Application Support/krita/ai_diffusion/server/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
      main()
    File "/Users/victorgusev/Library/Application Support/krita/ai_diffusion/server/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
      json_out["return_val"] = hook(**hook_input["kwargs"])
    File "/Users/victorgusev/Library/Application Support/krita/ai_diffusion/server/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 280, in build_wheel
      return _build_backend().build_wheel(
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 438, in build_wheel
      return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)])
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 426, in _build
      return self._build_with_temp_dir(
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 407, in _build_with_temp_dir
      self.run_setup()
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 320, in run_setup
      exec(code, locals())
    File "<string>", line 105, in <module>
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 117, in setup
      return distutils.core.setup(**attrs)
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 186, in setup
      return run_commands(dist)
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
      dist.run_commands()
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 983, in run_commands
      self.run_command(cmd)
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 999, in run_command
      super().run_command(command)
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
      cmd_obj.run()
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/command/bdist_wheel.py", line 379, in run
      self.run_command("build")
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 339, in run_command
      self.distribution.run_command(command)
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 999, in run_command
      super().run_command(command)
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
      cmd_obj.run()
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 136, in run
      self.run_command(cmd_name)
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 339, in run_command
      self.distribution.run_command(command)
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 999, in run_command
      super().run_command(command)
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
      cmd_obj.run()
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 99, in run
      _build_ext.run(self)
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 365, in run
      self.build_extensions()
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 481, in build_extensions
      self._build_extensions_serial()
    File "/private/var/folders/dq/3kblztf559nbtbylj68xst3c0000gn/T/pip-build-env-xwzudbgp/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 507, in _build_extensions_serial
      self.build_extension(ext)
    File "<string>", line 98, in build_extension
    File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', '--build', '.']' returned non-zero exit status 1.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for xatlas
ERROR: Failed to build installable wheels for some pyproject.toml based projects (xatlas)

2025-02-19 23:53:27,755 ERROR Installation failed
2025-02-19 23:53:27,755 INFO Found server installation vincomplete at /Users/victorgusev/Library/Application Support/krita/ai_diffusion/server

@Acly Acly added mac-os Apple macOS related installation Issue with the installer labels Feb 21, 2025
@victorgusev
Copy link
Author

I try install 1.31.2
Same issue
` note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for xatlas
ERROR: Failed to build installable wheels for some pyproject.toml based projects (xatlas)

2025-02-22 14:52:01,344 ERROR Installation failed
2025-02-22 14:52:01,344 INFO Found server installation vincomplete at /Users/victorgusev/Library/Application Support/krita/ai_diffusion/server`

Thank you for suuport!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Issue with the installer mac-os Apple macOS related
Projects
None yet
Development

No branches or pull requests

2 participants