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

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

Open
1 task done
SKbarbon opened this issue Jan 19, 2024 · 1 comment
Open
1 task done

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

SKbarbon opened this issue Jan 19, 2024 · 1 comment
Assignees
Labels
Type: Bug Something isn't working

Comments

@SKbarbon
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

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

@SKbarbon SKbarbon added the Type: Bug Something isn't working label Jan 19, 2024
@rayzchen
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants