Open JasonBate0401 opened 2 years ago
also getting this issue, anyluck?
download zks-crypto-aarch64-apple-darwin.dylib set environ ZK_SYNC_LIBRARY_PATH os.environ['ZK_SYNC_LIBRARY_PATH'] ='/zks-crypto-aarch64-apple-darwin.dylib'
download zks-crypto-aarch64-apple-darwin.dylib set environ ZK_SYNC_LIBRARY_PATH os.environ['ZK_SYNC_LIBRARY_PATH'] ='/zks-crypto-aarch64-apple-darwin.dylib'
I have downloaded zksync-crypto-library,and set env variable ZK_SYNC_LIBRARY_PATH with a path to the downloaded library.but It is still error in ZK_SYNC_LIBRARY_PATH ~ echo $ZK_SYNC_LIBRARY_PATH
......../zks-crypto-aarch64-apple-darwin.a
My code is: from web3 import Account, Web3, HTTPProvider from zksync_sdk import ZkSyncProviderV01, HttpJsonRPCTransport, network, ZkSync, EthereumProvider, Wallet, ZkSyncSigner, \ EthereumSignerWeb3, ZkSyncLibrary import asyncio
def main():
env = TestEnv()
if name == "main": main()
however, I get the error. library_path = os.environ["ZK_SYNC_LIBRARY_PATH"] File "/usr/lib/python3.8/os.py", line 675, in getitem raise KeyError(key) from None KeyError: 'ZK_SYNC_LIBRARY_PATH'