I am trying to run a few simple Python examples and then move to more complex stuff. As a first step I tried to connect to a Node and get info.
Environment:
linux, python 3.9, ota_client_python-0.2.0a3-cp36-abi3-linux_x86_64.whl
Python code:
import iota_client
# iota_node = "http://nodes.thetangle.org:443/" # mainnet
# iota_node = "https://api.lb-0.h.chrysalis-devnet.iota.cafe"
iota_node = "http://api.testnet.shimmer.network:14265/"
client = iota_client.Client( nodes_name_password=[[iota_node]])
print(client.get_info())
Problem:
For each of the 3 iota notes I get the below exception.
Questions:
Are my urls correct? To which node should I connect? I thought mainnet was the save option Or is it recommended to run my own node?
In a second example I like to send a transaction to the Tangle and subsequently read it from the Tangle. Would you recommend to use pyota for this? Or is there a more suitable Python library?
thanks for your help Norbert
---
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', src/lib.rs:21:20
---------------------------------------------------------------------------
PanicException Traceback (most recent call last)
Input In [18], in <cell line: 7>()
3 # iota_node = "http://nodes.thetangle.org:443/" #
4 # iota_node = "https://api.lb-0.h.chrysalis-devnet.iota.cafe"
5 iota_node = "http://api.testnet.shimmer.network:14265/"
----> 7 client = iota_client.Client( nodes_name_password=[[iota_node]])
9 print(client.get_info())
PanicException: called `Result::unwrap()` on an `Err` value: PoisonError { .. }