Dlopen(linbindy.dylib,6): image not fund


#1

Hi,

Very basic question, I am running python indy-sdk from mac
Docker pooling, I am running the one on indy-node, as indy-sdk one does not work for mac
(https://github.com/hyperledger/indy-node/blob/master/environment/docker/pool/README.md)

Then I run main.py under samples/python/src, got below error, do you know why?

Sherrys-MacBook-Air:src app$ python3 main.py
INFO:src.anoncreds:Anoncreds sample -> started
ERROR:indy.libindy:_load_cdll: Can’t load libindy: dlopen(libindy.dylib, 6): image not found
Traceback (most recent call last):
File “main.py”, line 20, in
loop.run_until_complete(main())
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py”, line 468, in run_until_complete
return future.result()
File “main.py”, line 13, in main
await anoncreds.demo()
File “/Users/app/desktop/blockchain/indy-sdk/samples/python/src/anoncreds.py”, line 27, in demo
await wallet.create_wallet(pool_name, issuer_wallet_name, None, None, None)
File “/Users/app/desktop/blockchain/indy-sdk/wrappers/python/indy/wallet.py”, line 52, in create_wallet
create_wallet.cb)
File “/Users/app/desktop/blockchain/indy-sdk/wrappers/python/indy/libindy.py”, line 24, in do_call
err = getattr(_cdll(), name)(command_handle,
File “/Users/app/desktop/blockchain/indy-sdk/wrappers/python/indy/libindy.py”, line 90, in _cdll
_cdll.cdll = _load_cdll()
File “/Users/app/desktop/blockchain/indy-sdk/wrappers/python/indy/libindy.py”, line 121, in _load_cdll
raise e
File “/Users/app/desktop/blockchain/indy-sdk/wrappers/python/indy/libindy.py”, line 116, in _load_cdll
res = CDLL(libindy_name)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ctypes/init.py”, line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(libindy.dylib, 6): image not found

Thanks


#2

@sugarcookie, I would encourage you to repost this on chat.hyperledger.org in the #indy-sdk channel. Developers of libindy are active there. (That chat channel requires a Linux Foundation login, which you can get at identity.linuxfoundation.org.)