I am preparing for the chainlink bootcamp and my brownie installation seems to be ok but when I try brownie initI get an error, even when I run as administrator and if I specify the file. See link below for screenshot.
C:\WINDOWS\system32>brownie init C:\Users\Chris\Documents\Brownie
INFO: Could not find files for the given pattern(s).
Brownie v1.14.6 - Python development framework for Ethereum
File "c:\users\chris\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\chris\appdata\local\programs\python\python39\lib\site-packages\brownie\_cli\init.py", line 31, in main
path = project.new(args["<path>"] or ".", args["--force"], args["--force"])
File "c:\users\chris\appdata\local\programs\python\python39\lib\site-packages\brownie\project\main.py", line 583, in new
_create_folders(project_path)
File "c:\users\chris\appdata\local\programs\python\python39\lib\site-packages\brownie\project\main.py", line 920, in _create_folders
project_path.joinpath(path).mkdir(exist_ok=True)
File "c:\users\chris\appdata\local\programs\python\python39\lib\pathlib.py", line 1313, in mkdir
self._accessor.mkdir(self, mode)
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\Chris\\Documents\\Brownie\\build'
Brownie error screenshot
This maybe silly, but I had the same problem and I solved like this: I just move to the folder where I wanted to init my project and just run: brownie init my-projects-name and it worked perfectly. It is important that my-projects-name folder WAS NOT CREATED before running. So maybe you can run:
cd C:\Users\Chris\Documents\Brownie
brownie init my-first-brownie-project
As per this https://eth-brownie.readthedocs.io/en/stable/install.html
Brownie is depends on some dependencies
python3 version 3.6 or greater, python3-dev
ganache-cli - tested with version 6.12.2
please check this go through this documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With