smartcontractkit / full-blockchain-solidity-course-py

Ultimate Solidity, Blockchain, and Smart Contract - Beginner to Expert Full Course | Python Edition
MIT License
10.75k stars 2.9k forks source link

Lesson 6: TypeError of type 'NoneType' is not iterable #355

Open Riqit opened 2 years ago

Riqit commented 2 years ago

Hey there, I am about 5h and 44 minutes in and I ran into an error. When I try to run my deploy.py, I get a TypeError. I think it has to do something with the brownie-config.yaml but I sadly have no idea. If I just compile it, everything works. This is how it looks like:

PS C:\Work\Web3\demos\brownie_fund_me> brownie run scripts/deploy.py INFO: Could not find files for the given pattern(s). Brownie v1.16.4 - Python development framework for Ethereum

Compiling contracts... Solc version: 0.6.6 Optimizer: Enabled Runs: 200 EVM Version: Istanbul
Generating build data...

image (1)

volvicwater commented 2 years ago

Hi, i have the same issue, any chance you figured it out yet, been stuck for two days now and i really want to move on with the course

mebedel commented 2 years ago

you are supposed to type brownie run scripts\deploy.py --network ganache-local

you might also have to do brownie compile because fundme.sol got changed with function getEntranceFee

last but not least check for brownie-config.yaml for typos and incorrect indentations i wasted few days cos of those in there

also remember to do ctrl+s often good luck

cromewar commented 2 years ago

You are awesome @mebedel I hope this works for @Riqit and @volvicwater, please let us know ;)

jshaw69 commented 2 years ago

I had this problem too, and can confirm it was an issue with the indentations in my brownie-config.yaml

Thankyou very much @mebedel

andremiracle commented 2 years ago

hey guys i'm having same issue and i did all you guys suggested and nothing has changed.

cromewar commented 2 years ago

Hello @andremiracle could you please provide us more info about the problem, may be screenshots of your code or your brownie-config file would help.

andremiracle commented 2 years ago

I've fixed the issue, it was from my yaml file. thanks for your assistance

XRP97 commented 2 years ago

@andremiracle I am having the same issue; what was your change or course in brownie-config.yaml file?