pyunity / pyunity

A pure Python 3D Game Engine that was inspired by the structure of the Unity Game Engine
https://docs.pyunity.x10.bz/
MIT License
259 stars 9 forks source link

[BUG] Installing the package in macOS return a failure error #80

Open SKbarbon opened 5 months ago

SKbarbon commented 5 months ago

Is there an existing issue for this?

System info

It's not even installed!

Describe the bug

When I use pip install pyunity, the error bellow happened.

To reproduce

Just Enter pip install pyunity in a macOS inv

Code

No response

Traceback

Using cached pysdl2_dll-2.28.5-py2.py3-none-macosx_10_11_universal2.whl (5.8 MB)
Building wheels for collected packages: pyunity
  Building wheel for pyunity (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pyunity (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [80 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-14-arm64-cpython-311
      creating build/lib.macosx-14-arm64-cpython-311/pyunity
      copying src/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity
      copying src/__main__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity
      copying src/notes.txt -> build/lib.macosx-14-arm64-cpython-311/pyunity
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/scenes
      copying src/scenes/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity/scenes
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/values
      copying src/values/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity/values
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/primitives
      copying src/primitives/capsule.mesh -> build/lib.macosx-14-arm64-cpython-311/pyunity/primitives
      copying src/primitives/double_quad.mesh -> build/lib.macosx-14-arm64-cpython-311/pyunity/primitives
      copying src/primitives/quad.mesh -> build/lib.macosx-14-arm64-cpython-311/pyunity/primitives
      copying src/primitives/cube.mesh -> build/lib.macosx-14-arm64-cpython-311/pyunity/primitives
      copying src/primitives/sphere.mesh -> build/lib.macosx-14-arm64-cpython-311/pyunity/primitives
      copying src/primitives/cylinder.mesh -> build/lib.macosx-14-arm64-cpython-311/pyunity/primitives
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/window
      copying src/window/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity/window
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/examples
      copying src/examples/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity/examples
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example2
      copying src/examples/example2/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example2
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example5
      copying src/examples/example5/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example5
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example4
      copying src/examples/example4/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example4
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example3
      copying src/examples/example3/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example3
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example10
      copying src/examples/example10/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example10
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example6
      copying src/examples/example6/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example6
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example1
      copying src/examples/example1/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example1
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example8
      copying src/examples/example8/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example8
      copying src/examples/example8/logo.png -> build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example8
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example9
      copying src/examples/example9/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example9
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example7
      copying src/examples/example7/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example7
      copying src/examples/example7/explode.ogg -> build/lib.macosx-14-arm64-cpython-311/pyunity/examples/example7
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/shaders
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/standard
      copying src/shaders/standard/fragment.glsl -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/standard
      copying src/shaders/standard/vertex.glsl -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/standard
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/gui
      copying src/shaders/gui/fragment.glsl -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/gui
      copying src/shaders/gui/vertex.glsl -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/gui
      copying src/shaders/gui/button.png -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/gui
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/gui/textures
      copying src/shaders/gui/textures/checkboxOff.png -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/gui/textures
      copying src/shaders/gui/textures/checkboxOn.png -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/gui/textures
      copying src/shaders/gui/textures/button.png -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/gui/textures
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/skybox
      copying src/shaders/skybox/fragment.glsl -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/skybox
      copying src/shaders/skybox/vertex.glsl -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/skybox
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/skybox/textures
      copying src/shaders/skybox/textures/bottom.jpg -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/skybox/textures
      copying src/shaders/skybox/textures/left.jpg -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/skybox/textures
      copying src/shaders/skybox/textures/top.jpg -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/skybox/textures
      copying src/shaders/skybox/textures/back.jpg -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/skybox/textures
      copying src/shaders/skybox/textures/right.jpg -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/skybox/textures
      copying src/shaders/skybox/textures/front.jpg -> build/lib.macosx-14-arm64-cpython-311/pyunity/shaders/skybox/textures
      creating build/lib.macosx-14-arm64-cpython-311/pyunity/physics
      copying src/physics/__init__.py -> build/lib.macosx-14-arm64-cpython-311/pyunity/physics
      running build_ext
      building 'loader' extension
      creating build/temp.macosx-14-arm64-cpython-311
      creating build/temp.macosx-14-arm64-cpython-311/src
      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/Users/yousifaladwani/Documents/code/python/tests/pyunity_test1/venv/include -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/loader.c -o build/temp.macosx-14-arm64-cpython-311/src/loader.o
      src/loader.c:265:12: fatal error: 'longintrepr.h' file not found
        #include "longintrepr.h"
                 ^~~~~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyunity
Failed to build pyunity
ERROR: Could not build wheels for pyunity, which is required to install pyproject.toml-based projects

Additional context

Python version: 3.11.6 (In a venv) OS: macOS Sonoma v14.2.1 Pip version: v23.2.1

rayzchen commented 5 months ago

I suspect this is an issue on Cython's part, though I shall look into it.

DarkCat736 commented 3 weeks ago

Was this ever solved? I'm getting the same error on a Mac with the same specs

rayzchen commented 2 weeks ago

I don't have access to a MacOS device so I can't say for certain, but the issue most likely occurs on Cython's side rather than PyUnity's.

DarkCat736 commented 2 weeks ago

Ok. Thanks