0

在遵循 AAVE 的 Patrick Collins 关于闪电贷款的教程之后,我对编码经验非常陌生,一切正常并安装了环境。

我在部署时收到此错误:

INFO: Could not find files for the given pattern(s).
Brownie v1.17.2 - Python development framework for Ethereum



File ".\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\_cli\__main__.py", line 64, in main
    importlib.import_module(f"brownie._cli.{cmd}").main()
  File ".\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\_cli\run.py", line 44, in main
    network.connect(CONFIG.argv["network"])
  File ".\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\main.py", line 40, in connect
    web3.connect(host, active.get("timeout", 30))
  File ".\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\web3.py", line 52, in connect
    uri = _expand_environment_vars(uri)
  File ".\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\web3.py", line 183, in _expand_environment_vars
    raise ValueError(f"Unable to expand environment variable in host setting: '{uri}'")
ValueError: Unable to expand environment variable in host setting: 'https://kovan.infura.io/v3/$WEB3_INFURA_PROJECT_ID'   
PS C:\Users\Ash> brownie run scripts/run_flash_loan_v2.py --network kovan
INFO: Could not find files for the given pattern(s).
Brownie v1.17.2 - Python development framework for Ethereum

  File ".\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\_cli\__main__.py", line 64, in main
    importlib.import_module(f"brownie._cli.{cmd}").main()    
  File ".\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\_cli\run.py", line 44, in main
    network.connect(CONFIG.argv["network"])
  File ".\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\main.py", line 40, in connect
    web3.connect(host, active.get("timeout", 30))
  File ".\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\web3.py", line 52, in connect
    uri = _expand_environment_vars(uri)
  File ".\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\web3.py", line 183, in _expand_environment_vars 
    raise ValueError(f"Unable to expand environment variable in host setting: '{uri}'")
rownie\_cli\__main__.py", line 64, in main
    importlib.import_module(f"brownie._cli.{cmd}").main()
  File ".\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\_cli\run.py", line 44, in main
    network.connect(CONFIG.argv["network"])
  File ".\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\main.py", line 40, in connect
    web3.connect(host, active.get("timeout", 30))
  File ".\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\web3.py", line 52, in connect
    uri = _expand_environment_vars(uri)
  File ".\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\web3.py", line 183, in _expand_environment_vars
    raise ValueError(f"Unable to expand environment variable in host setting: '{uri}'")
ValueError: Unable to expand environment variable in host setting: 'https://kovan.infura.io/v3/$WEB3_INFURA_PROJECT_ID'
PS C:\Users\Ash> brownie --version
INFO: Could not find files for the given pattern(s).
Brownie v1.17.2 - Python development framework for Ethereum
4

0 回答 0