-
Notifications
You must be signed in to change notification settings - Fork 6
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
Python bindings problem on Mac m2 Ventura #29
Comments
Thanks for reporting. Those are two separate issues
To further diagnose 2) please
|
The standard output and error are attached herewith. |
Interesting. Clang with default options usually accepts compiles C++11 code, Apple must have messed with that. In any case, the build script should specify the standard to avoid such problems. This will be fixed in the next release. For now, the workaround with CXXFLAGS=-std=c++11 seems to work. Regarding the BOOST problem, I note that the Python bindings setup.py has no logic to search for library include files outside the system include path, as this is unreliable and ambiguous (e.g. if installed in several locations). It also ignores library-specific environment variables such as BOOST_ROOT. This differs from building the C++ library itself, because the meson build system does much more effort than the Python tools. Building the Python bindings could probably be made more user-friendly. For the time being, one has to provide the include path for libraries in nonstandard locations via |
Understand. Indeed building Python binding worked successfully after I tried I also compiled successfully "/repository/examples/minimal_tov.cc" by "dyld[74642]: symbol not found in flat namespace '_cblas_caxpy' I could not find the root of this problem. Also, I was trying to run unit tests as it is suggested in the RePrimAnd installation guide page "ninja: error: loading 'build.ninja': No such file or directory" I would be glad if any way out could be suggested. As it was written above that the package on pypi is called just reprimand, not pyreprimand, so the command should be |
It seems that the original issue is understood. Please open two new tickets for the new problems of running the example and building the tests, and provide a sequence of commands to reproduce the problem starting from a fresh checkout. I have opened another issue #30 about the typo in the documentation. Note however that the link you pasted above is outdated (I will replace that by a redirection). The official online documentation is the one linked from the github project page: |
I am using Mac M2 Ventura and trying to install RePrimAnd with its Python interface. "pip install pyreprimand" did not work. When trying to build "meson mbuild --buildtype=release", it gave error that 'boost is not found'. It was solved by ''export BOOST_ROOT=/opt/homebrew/Cellar/boost/1.81.0_1/".
Then, I have sucessfully built and installed the C++ library of RePrimAnd using the source code. I could not install the Python interface, following
"cd bindings/python"
"pip install ."
It gives errors related to pybind11. I am using conda environment and as suggested I had installed numpy and pybind11 using conda beforehand. I have attached errors and output file herewith. I would be glad if this problem could be solved.
error.txt
output.txt
The text was updated successfully, but these errors were encountered: