Replies: 1 comment 6 replies
-
|
Nice one, as I already said have you consider writing articles of this? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Edit: When using the latest Python version you might run into problems at the end of lesson 6.
If your issues are similar to this: StackOverflow issue
Please consider downgrading your Python to 3.9.10. But don't worry, you won't need to do this for your standard python installation, just for your project folder. Here is an article on how to do this: #1109
Please don't skip this article though, it contains an important part about the Visual C++ build tool installation.
If you are running into difficulties installing brownie as described in the video in lesson 5, this article here might help to solve the issue. After the kind feedback from @cromewar that
pipxis not necessary, I was able to simplify the installation significantly. AND!!! We can use Python's virtual environment. \o/ Here is the result:Install part of the Visual C++ build tools: Download and install https://visualstudio.microsoft.com/visual-cpp-build-tools/

Select only the module ticked off in the screenshot (German system) and continue with the installation.
Open Powershell and create your project directory with e.g.
>mkdir brownie_simple_storageChange to the project directory
>cd brownie_simple_storageCreate a virtual environment
brownie_simple_storage>python -m venv .venvActivate the virtual environment
brownie_simple_storage>.\.venv\Scripts\Activate.ps1Optional: update pip
(.venv) brownie_simple_storage>python.exe -m pip install --upgrade pipImportant, otherwise you will get the infamous error: Install Cython
(.venv) brownie_simple_storage>pip install CythonFinally, install brownie
(.venv) brownie_simple_storage>pip install eth-brownieTest Brownie with
(.venv) brownie_simple_storage>brownie --versionNow... Brownie is a little shy and wants his own room. No open office for Brownie.
OK, not finished yet. Brownie depends on "ganache-cli" which is deprecated but the new "ganache" works just fine. There is one step you need elevated rights, so you need to open Powershell as admin. (press Win key >enter "powershell" > right click on Powershell in start menu > select "run as administrator" > confirm > navigate to your project directory).
Activate your virtual environment
brownie_simple_storage>.\.venv\Scripts\Activate.ps1Install Nodeenv
(.venv) brownie_simple_storage>pip install nodeenvConnect nodeenv with your virtual Python environment
Install ganache
(.venv) brownie_simple_storage>npm install -g ganacheTest ganache
(.venv) brownie_simple_storage>ganache --versionrun *.py script with Brownie
Das Leben ist kein Ponnyhof!
Beta Was this translation helpful? Give feedback.
All reactions