I am developing a web3 application. Some part of backend code runs in a python script hosted on an aws lambda server. However, from this python script I will also be calling certain functions of a smart contract which is deployed on mumbai testnet. I have installed web3 py. I wanted to test it using

from web3 import Web3, EthereumTesterProvider>>> w3 = Web3(EthereumTesterProvider())>>> w3.is_connected()

I have installed EthereumTesterProvider for the sake of this test. But it keeps failing with this error

"Unable to import module 'lambda_function': No module named 'cytoolz.itertoolz'"

I have also installed cytoolz. It still fails...

I also tried just

from web3 import Web3,


Please any way to do this or am I missing something?

Nov 1, 2023, 4:00 PM
mmmm i think i had this error somewhere... are you installing from a requirements.txt? because sometimes if you do
pip freeze > requirements.txt
upload to server
and then install those, some libraries MAY be compatible for your system but not for your server
Nov 1, 2023, 4:39 PM
I didn't install from requirement.txt
Nov 1, 2023, 5:48 PM

© 2024 Draquery.com All rights reserved.