Skip to content

Instantly share code, notes, and snippets.

@thegismar
Created August 7, 2022 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thegismar/e9e1cb44c04c806eb49084a430ad7353 to your computer and use it in GitHub Desktop.
Save thegismar/e9e1cb44c04c806eb49084a430ad7353 to your computer and use it in GitHub Desktop.
PS C:\Users\***> brownie console --network anvil-fork
INFO: Could not find files for the given pattern(s).
Brownie v1.19.0 - Python development framework for Ethereum
No project was loaded.
Launching 'anvil.cmd --fork-url https://eth-mainnet.alchemyapi.io/v2/*** --port 8545 --chain-id 1'...
File "C:\Python310\lib\site-packages\brownie\_cli\__main__.py", line 64, in main
importlib.import_module(f"brownie._cli.{cmd}").main()
File "C:\Python310\lib\site-packages\brownie\_cli\console.py", line 58, in main
network.connect(CONFIG.argv["network"])
File "C:\Python310\lib\site-packages\brownie\network\main.py", line 50, in connect
rpc.launch(active["cmd"], **active["cmd_settings"])
File "C:\Python310\lib\site-packages\brownie\network\rpc\__init__.py", line 76, in launch
self.process = self.backend.launch(cmd, **kwargs)
File "C:\Python310\lib\site-packages\brownie\network\rpc\anvil.py", line 46, in launch
return psutil.Popen(cmd_list, stdin=DEVNULL, stdout=out, stderr=out)
File ".\AppData\Roaming\Python\Python310\site-packages\psutil\__init__.py", line 1316, in __init__
self.__subproc = subprocess.Popen(*args, **kwargs)
File "C:\Python310\lib\subprocess.py", line 969, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Python310\lib\subprocess.py", line 1438, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment