Closed ajithak9945 closed 3 years ago
You probably need to load your .env file - use source .env
before running the scripts.
@ajithak9945 did you run source .env
first? Did that fix the issue?
Closing this for now, but feel free to follow up here.
On executing brownie run scripts/get_weth.py --network kovan the below error occurs:
"INFO: Could not find files for the given pattern(s). Brownie v1.14.6 - Python development framework for Ethereum
AaveFlashloanMixProject is the active project. File "c:\users\ajith\appdata\local\programs\python\python39\lib\site-packages\brownie_cli__main__.py", line 64, in main importlib.import_module(f"brownie._cli.{cmd}").main() File "c:\users\ajith\appdata\local\programs\python\python39\lib\site-packages\brownie_cli\run.py", line 43, in main network.connect(CONFIG.argv["network"]) File "c:\users\ajith\appdata\local\programs\python\python39\lib\site-packages\brownie\network\main.py", line 40, in connect web3.connect(host, active.get("timeout", 30)) File "c:\users\ajith\appdata\local\programs\python\python39\lib\site-packages\brownie\network\web3.py", line 52, in connect uri = _expand_environment_vars(uri) File "c:\users\ajith\appdata\local\programs\python\python39\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'"