File "f:\drug-traceability-blockchain-maddy\src\app.py", line 2, in <module>
from web3 import Web3,HTTPProvider
File "C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\site-packages\web3\__init__.py", line 6, in <module>
from eth_account import (
File "C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\site-packages\eth_account\__init__.py", line 1, in <module>
from eth_account.account import (
File "C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\site-packages\eth_account\account.py", line 59, in <module>
from eth_account.messages import (
File "C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\site-packages\eth_account\messages.py", line 26, in <module>
from eth_account._utils.structured_data.hashing import (
File "C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\site-packages\eth_account\_utils\structured_data\hashing.py", line 9, in <module>
from eth_abi import (
File "C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\site-packages\eth_abi\__init__.py", line 6, in <module>
from eth_abi.abi import ( # NOQA
File "C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\site-packages\eth_abi\abi.py", line 1, in <module>
from eth_abi.codec import (
File "C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\site-packages\eth_abi\codec.py", line 16, in <module>
from eth_abi.decoding import (
File "C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\site-packages\eth_abi\decoding.py", line 14, in <module>
from eth_abi.base import (
File "C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\site-packages\eth_abi\base.py", line 7, in <module>
from .grammar import (
File "C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\site-packages\eth_abi\grammar.py", line 4, in <module>
import parsimonious
File "C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\site-packages\parsimonious\__init__.py", line 9, in <module>
from parsimonious.grammar import Grammar, TokenGrammar
File "C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\site-packages\parsimonious\grammar.py", line 14, in <module>
from parsimonious.expressions import (Literal, Regex, Sequence, OneOf,
File "C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\site-packages\parsimonious\expressions.py", line 9, in <module>
from inspect import getargspec
ImportError: cannot import name 'getargspec' from 'inspect' (C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\inspect.py)
请帮助我..如何解决这个错误。这是区块链项目wgich我从github下载。之后,我是npm安装npm启动truffle编译truffle迁移和项目主页运行app.py然后我收到这个错误。Image of running errors
1条答案
按热度按时间t3irkdon1#
要么贬低python
或者转到python3.11/站点-包/parsimonious/expressions.py并将getargspec替换为getfullargspec