Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Troubleshooting brownie installation

Tags:

chainlink

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

like image 964
Christian C. Avatar asked Oct 21 '25 04:10

Christian C.


2 Answers

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
like image 103
carlitox477 Avatar answered Oct 25 '25 11:10

carlitox477


As per this https://eth-brownie.readthedocs.io/en/stable/install.html

Brownie is depends on some dependencies

  1. python3 version 3.6 or greater, python3-dev

  2. ganache-cli - tested with version 6.12.2

please check this go through this documentation

like image 32
Harsh Kairamkonda Avatar answered Oct 25 '25 12:10

Harsh Kairamkonda