solathon icon indicating copy to clipboard operation
solathon copied to clipboard

TypeError: 'type' object is not subscriptable

Open gkyh opened this issue 10 months ago • 2 comments

Run: from solathon import Client, PublicKey

client = Client("https://api.devnet.solana.com") public_key = PublicKey("B3BhJ1nvPvEhx3hq3nfK8hx4WYcKZdbhavSobZEA44ai")

balance = client.get_balance(public_key) print(balance)

from solathon import Client, PublicKey File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/init.py", line 3, in from .client import Client File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/client.py", line 5, in from .utils import RPCRequestError, validate_commitment File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/utils.py", line 6, in from solathon.core.types import Commitment, RPCErrorType, RPCResponse File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/core/types/init.py", line 1, in from .account_info import AccountInfo, AccountInfoType, ProgramAccount, ProgramAccountType File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/core/types/account_info.py", line 3, in class AccountInfoType(TypedDict): File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/core/types/account_info.py", line 12, in AccountInfoType data: Union[str, dict[str, Any]] TypeError: 'type' object is not subscriptable

What's happened????

gkyh avatar Apr 24 '24 00:04 gkyh

@gkyh What Python version are you using?

GitBolt avatar Apr 25 '24 15:04 GitBolt

python3.8, yet,Virtual memory is too small

gkyh avatar May 08 '24 09:05 gkyh

issue was fixed. feel free to reopen if you face the problem again

GitBolt avatar Oct 09 '24 13:10 GitBolt