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

How to select python version? #846

Open
dongchen-yang opened this issue Mar 20, 2023 · 1 comment
Open

How to select python version? #846

dongchen-yang opened this issue Mar 20, 2023 · 1 comment

Comments

@dongchen-yang
Copy link

error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [36 lines of output]
Unable to import numpy, skipping numpy extension building
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-13-arm64-cpython-311
creating build/lib.macosx-13-arm64-cpython-311/OpenGL_accelerate
copying OpenGL_accelerate/init.py -> build/lib.macosx-13-arm64-cpython-311/OpenGL_accelerate
running build_ext
building 'OpenGL_accelerate.wrapper' extension
creating build/temp.macosx-13-arm64-cpython-311
creating build/temp.macosx-13-arm64-cpython-311/src
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/private/var/folders/xk/lyv2vprs7w9gcmhmblfscpcr0000gn/T/pip-install-flr_qtyt/pyopengl-accelerate_2e74b644e4534bed82663f6783a39635/.. -I/private/var/folders/xk/lyv2vprs7w9gcmhmblfscpcr0000gn/T/pip-install-flr_qtyt/pyopengl-accelerate_2e74b644e4534bed82663f6783a39635/src -I/private/var/folders/xk/lyv2vprs7w9gcmhmblfscpcr0000gn/T/pip-install-flr_qtyt/pyopengl-accelerate_2e74b644e4534bed82663f6783a39635 -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/wrapper.c -o build/temp.macosx-13-arm64-cpython-311/src/wrapper.o
src/wrapper.c:27136:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
src/wrapper.c:284:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH attribute((fallthrough))
^
src/wrapper.c:27147:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
src/wrapper.c:284:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH attribute((fallthrough))
^
src/wrapper.c:28232:5: error: incomplete definition of type 'struct _frame'
__Pyx_PyFrame_SetLineNumber(py_frame, py_line);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/wrapper.c:438:62: note: expanded from macro '__Pyx_PyFrame_SetLineNumber'
#define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
~~~~~~~^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
2 warnings and 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 pyopengl-accelerate
Running setup.py clean for pyopengl-accelerate
Failed to build pyopengl-accelerate
Installing collected packages: pyopengl-accelerate, pyopengl, pybind11, pillow, numpy, pypangolin
Running setup.py install for pyopengl-accelerate ... error
error: subprocess-exited-with-error

× Running setup.py install for pyopengl-accelerate did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
Unable to import numpy, skipping numpy extension building
running install
/opt/homebrew/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.macosx-13-arm64-cpython-311
creating build/lib.macosx-13-arm64-cpython-311/OpenGL_accelerate
copying OpenGL_accelerate/init.py -> build/lib.macosx-13-arm64-cpython-311/OpenGL_accelerate
running build_ext
building 'OpenGL_accelerate.wrapper' extension
creating build/temp.macosx-13-arm64-cpython-311
creating build/temp.macosx-13-arm64-cpython-311/src
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/private/var/folders/xk/lyv2vprs7w9gcmhmblfscpcr0000gn/T/pip-install-flr_qtyt/pyopengl-accelerate_2e74b644e4534bed82663f6783a39635/.. -I/private/var/folders/xk/lyv2vprs7w9gcmhmblfscpcr0000gn/T/pip-install-flr_qtyt/pyopengl-accelerate_2e74b644e4534bed82663f6783a39635/src -I/private/var/folders/xk/lyv2vprs7w9gcmhmblfscpcr0000gn/T/pip-install-flr_qtyt/pyopengl-accelerate_2e74b644e4534bed82663f6783a39635 -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/wrapper.c -o build/temp.macosx-13-arm64-cpython-311/src/wrapper.o
src/wrapper.c:27136:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
src/wrapper.c:284:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH attribute((fallthrough))
^
src/wrapper.c:27147:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
src/wrapper.c:284:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH attribute((fallthrough))
^
src/wrapper.c:28232:5: error: incomplete definition of type 'struct _frame'
__Pyx_PyFrame_SetLineNumber(py_frame, py_line);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/wrapper.c:438:62: note: expanded from macro '__Pyx_PyFrame_SetLineNumber'
#define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
~~~~~~~^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
2 warnings and 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: legacy-install-failure

× Encountered error while trying to install package.
╰─> pyopengl-accelerate

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
make[3]: *** [CMakeFiles/pypangolin_pip_install] Error 1
make[2]: *** [CMakeFiles/pypangolin_pip_install.dir/all] Error 2
make[1]: *** [CMakeFiles/pypangolin_pip_install.dir/rule] Error 2
make: *** [pypangolin_pip_install] Error 2

It seems like it is selecting the python version under homebrew. How shall I change it?

@riham-basheer
Copy link

Did you figure it out? I am having the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants