-
Notifications
You must be signed in to change notification settings - Fork 39
OSError: cannot load library libnanomsg.so.5.0.0 #40
Comments
Not really. Ask the cffi guys on IRC or their mailing list, maybe? |
Hit the same problem a few days ago. Known issue. https://bitbucket.org/cffi/cffi/issues/219/ld_library_path-is-ignored-by-dlopen My current workaround is to drop a site.cfg in nnpy and set host_library to the absolute full path of my libnanomsg.so. Also, if you pass rpath to pip, you don't need LD_LIBRARY_PATH at runtime. But on OSX, pip doesn't actually implement rpath. You'll have to use install_name_tool to add it to the generated .so manually. It would be nice if nnpy can support bundled lib like zeromq does. And do we support python wheels? I saw some for zeromq. https://pypi.python.org/pypi/pyzmq/ But none for nnpy. |
looks different to me - |
There's no intrinsic reason we don't have wheels, no; I think I looked at it once but it looked kind of tricky, so I didn't have much motivation to continue. I think it would be an improvement, but I'm not sure I have much time to spend on it. I also don't really have access to a Windows environment if people wanted wheels for Windows, but I could do Linux and macOS if I had the proper procedure/code in place. |
reference:http://www.cnblogs.com/qq952693358/p/6375211.html |
nnpy
install fails with the following tracebacknanomsg is installed in
/usr/local/lib/x86_64-linux-gnu/
:LD_LIBRARY_PATH
points to that location (I also have https://github.com/tonysimpson/nanomsg-python installed and previously it failed to install without this env var):Code fails on the line https://github.com/nanomsg/nnpy/blob/1.3/generate.py#L56, I tried to dig a bit deeper, it seems like shared library is found by
ctypes.util.find_library
but fails to load.I also tried with
cffi==1.8.3
- same issue.Any idea how to fix this?
The text was updated successfully, but these errors were encountered: