Skip to content

pywintypes.error: (126, 'LoadLibraryEx', 'The specified module could not be found.') #1141

Answered by ziyuan123
FAXTROT asked this question in Q&A
Discussion options

You must be logged in to vote

I also encountered this problem, and I followed the steps in the documentation to install it.
Here are the installation steps:

  1. pip install starknet-py
  2. install MinGW through chocolatey.
  3. add PATH environment variable
  4. run 'gcc -v' to makesure it work

this is the example code:

from starknet_py.net.full_node_client import FullNodeClient
node_url = "https://starknet-mainnet.g.alchemy.com/v2/my_node"
full_node_client = FullNodeClient(node_url=node_url)
call_result = full_node_client.get_block_sync(block_number=1)

this is the error:

Traceback (most recent call last):
  File "E:\Code\TestCode\starknet_test\main.py", line 1, in <module>
    from starknet_py.net.full_node_client import FullNodeCli…

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ziyuan123
Comment options

@FAXTROT
Comment options

Answer selected by FAXTROT
Comment options

You must be logged in to vote
1 reply
@ziyuan123
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants