iota-community / python-iota-workshop

Simple examples showing you how you can interact with the IOTA Tangle using Python
33 stars 13 forks source link

"TypeError: Client.__new__() got an unexpected keyword argument: node" #8

Open ZRNOF opened 3 years ago

ZRNOF commented 3 years ago

when I run e01_hello_world.py, it jump this: Traceback (most recent call last): File "/home/kali/Desktop/python-iota-workshop/e01_hello_world.py", line 6, in client = iota_client.Client(node='https://api.lb-0.testnet.chrysalis2.com') TypeError: Client.new() got an unexpected keyword argument: node

kingsumos commented 2 years ago

have you been able to solve this issue?

kingsumos commented 2 years ago

I found a workaround, remove the node... e.g. client = iota_client.Client()

mikhatanu commented 2 years ago

seems like this can be used for the node in client:

LOCAL_NODE_URL = "http://0.0.0.0:14265"
client = iota_client.Client(
    nodes_name_password=[[LOCAL_NODE_URL]], node_sync_disabled=True)