-
Notifications
You must be signed in to change notification settings - Fork 110
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
Build ngtpy with pybind11 #34
Comments
Thank you for your interest in NGT! Which os do you use, Linux or macOS?
Although there is the only way to install ngt (ctypes) and ngtpy, how do you know not to build ngtpy. Does it mean that you cannot import ngtpy in python? If so, what messages do you have? I am also concerned about your PyPI problem. NGTs of less than v1.7.8 from PyPI cause segmentation faults for specific cpus. Which version of NGT from PyPI do you use? What is your cpu? |
Thanks for the quick reply!
I develop under Linux, Fedora 29, kernel 5.1 on an Intel(R) Core(TM) i5-5300U CPU. Everything works fine there. When I import ngtpy
E ImportError: dlopen(/Users/travis/miniconda/lib/python3.7/site-packages/ngtpy.cpython-37m-darwin.so, 2): Library not loaded: /usr/local/opt/gcc/lib/gcc/8/libgomp.1.dylib
E Referenced from: /Users/travis/miniconda/lib/python3.7/site-packages/ngtpy.cpython-37m-darwin.so
E Reason: image not found
On Linux pip seems to install v1.7.9, but on MacOS it installs the older version v.1.5.1.
On Travis I have Python 3.7.3 for both Linux and MacOS,
Yes, you are correct. I jumped to that conclusion, because I could not import ngtpy in python. import ngtpy
E ImportError: libngt.so.1: cannot open shared object file: No such file or directory
No, I did not explicitly uninstall ngtpy. It might have been cached on Travis. |
Did you set LD_LIBRARY_PATH or use ldconfig to be able to find libngt?
or
|
Great, it works fine now under Linux. I'm still trying to figure out MacOS, though. If I may use some more of your time, could you please check the compile errors I get: Travis log (bottom) Thanks a lot for your awesome tool and your help! Highly appreciated. |
Since I might find a kind of bug around definitions for AVX, I will fix it. To avoid it right away, you might want to swap this line with the line below.
|
I released NGT v1.7.10 not to cause this problem. |
How can I build
ngtpy
with pybind11 from source? Following the instruction from the readme, I am only able to buildngt
with ctypes.Background: I'd like to include ngtpy in one of my projects. On my machine I can simply
pip install ngt
, and I get ngtpy. However, the same gives me segmentation faults and others errors on Travis CI. So I try to install from source, but I only manage to get ngt (ctypes).The text was updated successfully, but these errors were encountered: