On mac osx (at least 10.9.5) nanomsg once installed had .dynlib extension.
In current code, the python wrapper try to load .so file, without success.
The code below correct the behaviour:
In _nanomsg_ctypes/init.py
if sys.platform in ('win32', 'cygwin'):
_functype = ctypes.WINFUNCTYPE
_lib = ctypes.windll.nanomsg
elif sys.platform in ('darwin'):
_functype = ctypes.CFUNCTYPE
_lib = ctypes.cdll.LoadLibrary('libnanomsg.dynlib')
else:
_functype = ctypes.CFUNCTYPE
_lib = ctypes.cdll.LoadLibrary('libnanomsg.so')
Hello,
On mac osx (at least 10.9.5) nanomsg once installed had .dynlib extension. In current code, the python wrapper try to load .so file, without success. The code below correct the behaviour:
In _nanomsg_ctypes/init.py
if sys.platform in ('win32', 'cygwin'): _functype = ctypes.WINFUNCTYPE _lib = ctypes.windll.nanomsg elif sys.platform in ('darwin'): _functype = ctypes.CFUNCTYPE _lib = ctypes.cdll.LoadLibrary('libnanomsg.dynlib') else: _functype = ctypes.CFUNCTYPE _lib = ctypes.cdll.LoadLibrary('libnanomsg.so')
Regards, Laurent