Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when I run the get WETH command: brownie run scripts/get_weth.py --network kovan #20

Closed
AshrafAKRahman opened this issue Jan 12, 2022 · 3 comments

Comments

@AshrafAKRahman
Copy link

After setting up the environment and when I run the get WETH command: brownie run scripts/get_weth.py --network kovan i get the following error:
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

@lit26
Copy link

lit26 commented Jan 12, 2022

Try source .env in the terminal to load your .env file

@AshrafAKRahman
Copy link
Author

But running this it will expose all my private keys (api etc) so I am a little hesitant to run that on the terminal

@PatrickAlphaC
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants