stevenlovegrove / Pangolin

Pangolin is a lightweight portable rapid development library for managing OpenGL display / interaction and abstracting video input.
MIT License
2.39k stars 855 forks source link

Unable to install pypangolin on py310 arm64 #889

Closed IamShubhamGupto closed 1 year ago

IamShubhamGupto commented 1 year ago

Hey

I am trying to build Pangolin on my m1 Mac. these are the commands

cd Pangolin
mkdir build && cd build
cmake .. -DPython_EXECUTABLE=$(which python) -DCMAKE_C_COMPILER=$(which clang) -DCMAKE_CXX_COMPILER=$(which clang++)

This finishes with a 100% but I cannot import pypangolin

I tried the following command

cmake --build . -t pypangolin_pip_install

but it results in

(game) shubham@Shubhams-MBP build % cmake --build . -t pypangolin_pip_install
[ 11%] Built target pango_core
[ 22%] Built target pango_image
[ 32%] Built target pango_opengl
[ 37%] Built target pango_windowing
[ 40%] Built target pango_vars
[ 49%] Built target pango_display
[ 54%] Built target pango_packetstream
[ 57%] Built target pango_plot
[ 78%] Built target pango_video
[ 98%] Built target pypangolin
[ 98%] Built target pypangolin_wheel
[100%] Installing for selected Python '/Users/shubham/opt/anaconda3/envs/game/bin/python'
ERROR: pypangolin-0.8-cp310-cp310-macosx_11_0_arm64.whl is not a supported wheel on this platform.
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
(game) shubham@Shubhams-MBP build %

Help appreciated

System info

(game) shubham@Shubhams-MBP build % python
Python 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:41:52) [Clang 15.0.7 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.uname()[4]
'arm64'
>>> import pypangolin
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pypangolin'
>>>
IamShubhamGupto commented 1 year ago

I resolved the issue by downloading arm64 anaconda package. the previous installation was running python x86