-
Notifications
You must be signed in to change notification settings - Fork 16
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
install error osx #64
Comments
Was that the entire error message, or was there more? It's a bit hard to tell what went wrong here :) |
Below entire error message: Building wheels for collected packages: gridpp
|
Thanks for the error report! I think I've fixed the problem with the source distribution. Could you try installing with the newest release (0.5.3) from pip? Let me know if that doesn't work. |
I tried again but still getting error?
|
For Mac Os X ARM64 (Ventura 13.4) it was relatively straightforward to build and install I used brew install armadillo
git clone https://github.com/metno/gridpp.git
cd gridpp
mkdir -p build && cd build
CC=/opt/homebrew/bin/gcc-13 CXX=/opt/homebrew/bin/g++-13 LD_LIBRARY_PATH="/opt/homebrew/lib" cmake -DCMAKE_INSTALL_PREFIX=$HOME/sw/ -DPYTHON_INCLUDE_DIR=$(python -c "import sysconfig; print(sysconfig.get_path('include'))") -DPYTHON_LIBRARY=$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))") -DBUILD_R=OFF ..
make build-python
cp extras/SWIG/python/gridpp.py $(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")/python3.1/site-packages/gridpp.py
cp extras/SWIG/python/_gridpp.so $(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")/python3.1/site-packages/_gridpp.so |
I ma trying to install gridpp on mac but keep getting error.
Building wheels for collected packages: gridpp
Building wheel for gridpp (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-3q_szwe5/gridpp_a06d2a2a72914e7886507b1e05c05784/setup.py'"'"'; file='"'"'/private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-3q_szwe5/gridpp_a06d2a2a72914e7886507b1e05c05784/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-wheel-vw19civz
cwd: /private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-3q_szwe5/gridpp_a06d2a2a72914e7886507b1e05c05784/
Complete output (14 lines):
running bdist_wheel
running build
running build_ext
building '_gridpp' extension
creating build
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/src
Hope help or guidance to solve this error.
Thanks
The text was updated successfully, but these errors were encountered: