Page 1 of 1

Library not loaded

Posted: 09 Sep 2020, 19:20
by imhotep
Trying to run the Bluezero test code for Python.

Recieving the following error:

/usr/local/bin/python3.8 "/Developer/PycharmProjects/BlueZero test/"
Found CoppeliaSim directory at /Applications/CoppeliaSim_Edu_V4_0_0_Mac
Traceback (most recent call last):
File "/Developer/PycharmProjects/BlueZero test/", line 3, in <module>
import b0RemoteApi
File "/Developer/PycharmProjects/BlueZero test/", line 6, in <module>
from b0 import init, Subscriber, ServiceClient, Node, Publisher
File "/Developer/PycharmProjects/BlueZero test/", line 26, in <module>
libb0 = ct.CDLL(libb0_fullpath)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ctypes/", line 373, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Applications/CoppeliaSim_Edu_V4_0_0_Mac/, 6): Library not loaded: @rpath/libzmq.5.dylib
Referenced from: /Applications/CoppeliaSim_Edu_V4_0_0_Mac/
Reason: image not found


Running the supplied B0 testing code. The only code I have been revising is the library loading code in I can post the source code if it might help.

Thanks in advance.

Re: Library not loaded

Posted: 18 Sep 2020, 07:54
by coppelia

sorry for missing your post. As it seems you are on mac, can you confirm that you can successfully run the demo scenes blueZeroDemo1.ttt and blueZeroDemo2.ttt?
If yes, try to copy all items into the CoppeliaSim package, where libb0.dylib is located, and see if that works. If that works, that means you might have to adjust some of the library's hard-coded rpath (or any of its dependencies). Or did you build libb0.dylib yourself?