eth-brownie / brownie

A Python-based development and testing framework for smart contracts targeting the Ethereum Virtual Machine.
https://eth-brownie.readthedocs.io
MIT License
2.64k stars 554 forks source link

Hard time setting up development environment #1400

Open PatrickAlphaC opened 2 years ago

PatrickAlphaC commented 2 years ago

Not sure if anyone else had a hard time, but I ended up doing the following to remove any conflicts that I ran into:

  1. pipx uninstall eth-brownie - it kept injecting the pipx brownie package from some reason
  2. Replace ~/.brownie/network-config.yaml with the file from brownie/data/network-config.yaml so that networking tests would pass
  3. Ran python setup.py develop instead of python setup.py install for my virtual environment
  4. Running pytest -p no:pytest-brownie -k <TEST_NAME> to run a single test instead of docker. I wasn't able to get docker to work.
PatrickAlphaC commented 2 years ago

We can close this issue if no one else had a hard time setting up a development environment. I'll probably use it as a reference though when I come back to do stuff.

ChristianCoenen commented 2 years ago

Thanks for pointing out -p no:pytest-brownie. I was having issues that brownie automatically spins up a local blockchain when running my own non-blockchain-dependent tests via pytest in PyCharm.

Have you by any chance been able to successfully install the soft requirements? See this issue