区块链技术博客
www.b2bchain.cn

WEB3.PY版本问题

 

File "main.py", line 41, in <module>
    b.start("0x35286618aD7Ca934b0AA53FE110ec09569CAd507")
  File "main.py", line 25, in start
    self.funder_contract.functions.register('my').transact()
  File "D:\mywork\ML\anaconda\envs\ethe_v\lib\site-packages\web3\contract.py", line 819, in __call__
    clone._set_function_info()
  File "D:\mywork\ML\anaconda\envs\ethe_v\lib\site-packages\web3\contract.py", line 829, in _set_function_info
    self.kwargs
  File "D:\mywork\ML\anaconda\envs\ethe_v\lib\site-packages\web3\_utils\contracts.py", line 119, in find_matching_fn_abi
    function_candidates = pipe(abi, name_filter, arg_count_filter, encoding_filter)
  File "cytoolz/functoolz.pyx", line 669, in cytoolz.functoolz.pipe
    return c_pipe(data, funcs)
  File "cytoolz/functoolz.pyx", line 644, in cytoolz.functoolz.c_pipe
    data = func(data)
  File "D:\mywork\ML\anaconda\envs\ethe_v\lib\site-packages\web3\_utils\abi.py", line 98, in filter_by_name
    in contract_abi
  File "D:\mywork\ML\anaconda\envs\ethe_v\lib\site-packages\web3\_utils\abi.py", line 102, in <listcomp>
    abi['name'] == name  # type: ignore
KeyError: 'name'

WEB3.PY版本问题,重新装一下就好了。。

附上命令

使用pip安装python包

不同版本:前面加python版本号 -m

如:python3 -m pip install Django==1.10.7

命令:

pip install SomePackage           # latest version

pipinstall SomePackage==1.0.4     # specificversion

pipinstall ‘SomePackage>=1.0.4’     #minimum version

pip查看已安装的包

  •  命令:pip show packagename

功能:查看指定的安装包信息

  • 命令:pip list

功能:列出所有的安装包

pip检测更新

命令:pip list –outdated

pip升级包

命令:pip install –upgrade packagename

pip卸载包

命令:pip uninstall packagename

赞(0) 打赏
部分文章转自网络,侵权联系删除b2bchain区块链学习技术社区 » WEB3.PY版本问题
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

b2b链

联系我们联系我们