No module named 'ethtx.semantics'
See original GitHub issueWindows 10. Python version 3.10.4. Latest version for ethtx is installed with pip install ethtx
.
I created a file test.py
with the following content:
from ethtx import EthTx, EthTxConfig
from ethtx.models.decoded_model import DecodedTransaction
ethtx_config = EthTxConfig(
etherscan_api_key="my etherscan API key", ##Etherscan API key,
web3nodes={
"mainnet": {
"hook": "my Infura url", # multiple nodes supported, separate them with comma
"poa": False # represented by bool value
}
},
default_chain="mainnet",
etherscan_urls={"mainnet": "https://api.etherscan.io/api" }
)
ethtx = EthTx.initialize(ethtx_config)
transaction: DecodedTransaction = ethtx.decoders.decode_transaction(
'0x50051e0a6f216ab9484c2080001c7e12d5138250acee1f4b7c725b8fb6bb922d')
Once I try to execute the file with py test.py
, I get the following error:
Traceback (most recent call last):
File "C:\Users\Utente\Desktop\ethtx\test.py", line 1, in <module>
from ethtx import EthTx, EthTxConfig
File "C:\Users\Utente\AppData\Local\Programs\Python\Python310\lib\site-packages\ethtx\__init__.py", line 13, in <module>
from .ethtx import EthTx, EthTxConfig
File "C:\Users\Utente\AppData\Local\Programs\Python\Python310\lib\site-packages\ethtx\ethtx.py", line 18, in <module>
from .decoders.abi.decoder import ABIDecoder
File "C:\Users\Utente\AppData\Local\Programs\Python\Python310\lib\site-packages\ethtx\decoders\abi\decoder.py", line 32, in <module>
from .abc import IABIDecoder
File "C:\Users\Utente\AppData\Local\Programs\Python\Python310\lib\site-packages\ethtx\decoders\abi\abc.py", line 25, in <module>
from ethtx.providers.semantic_providers import SemanticsRepository
File "C:\Users\Utente\AppData\Local\Programs\Python\Python310\lib\site-packages\ethtx\providers\semantic_providers\__init__.py", line 15, in <module>
from .repository import SemanticsRepository
File "C:\Users\Utente\AppData\Local\Programs\Python\Python310\lib\site-packages\ethtx\providers\semantic_providers\repository.py", line 30, in <module>
from ethtx.semantics.protocols_router import amend_contract_semantics
File "C:\Users\Utente\AppData\Local\Programs\Python\Python310\lib\site-packages\ethtx\semantics\protocols_router.py", line 21, in <module>
def amend_contract_semantics(semantics: ContractSemantics, router_=Router()):
File "C:\Users\Utente\AppData\Local\Programs\Python\Python310\lib\site-packages\ethtx\semantics\router.py", line 30, in __new__
return cls._get_semantics()
File "C:\Users\Utente\AppData\Local\Programs\Python\Python310\lib\site-packages\ethtx\semantics\router.py", line 52, in _get_semantics
imported_module = importlib.import_module(
File "C:\Users\Utente\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'ethtx.semanticsC:\\Users\\Utente\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\ethtx\\semantics\\base'
What’s the issue? Thanks for the help.
Issue Analytics
- State:
- Created a year ago
- Comments:10
Top Results From Across the Web
ModuleNotFoundError: No module named 'eth_utils.toolz' #1101
Version: 4.7.2 Python: 3.6.6 OS: linux What was wrong? getting this exception raised on import web3 Please include any of the following that ......
Read more >ModuleNotFoundError: No module named 'semantic-version'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'semantic-version' How to remove the M.
Read more >EthTx · PyPI
EthTx transaction decoder. ... EthTx - Ethereum transactions decoder ... required to store smart contracts' ABI and semantics used in the decoding process....
Read more >ModuleNotFoundError: No module named 'ethereum'
I am trying to run cert-issuer using Ethereum but I have the error No module named 'ethereum' as could be seen below.
Read more >Cisco MDS 9000 Series Command Reference, Release 9.x
This command has no other arguments or keywords. ... show analytics query { "query_string" [clear] [differential] | all | name query_name [result]} ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Np! Glad to help! If you need any help with ethtx, you can always write to us on discord 🤠 Best regards!
Hey @yuripaoloni, getblock.io provides full node which kept historical state of last 64 blocks. So if you wanna decode latest transaction then getblocks might be helpful .