Skip to content
Discussion options

You must be logged in to vote

I've got the same problem.

AttributeError: 'NoneType' object has no attribute '_with_attr'

After I did some research in this discussion forum, I tried reinstall ganache-cli as follows.

uninstall ganache-cli

npm uninstall ganache-cli
sudo npm uninstall ganache-cli --global

reinstall ganache-cli

sudo npm install ganache-cli --global
npm install ganache-cli

test again
brownie test -k test_only_owner_can_withdraw

And it worked.

FAILED tests/test_fund_me.py::test_only_owner_can_withdraw - brownie.exceptions.VirtualMachineError: revert

There are node_modules/ and package-lock.json appear on brownie_fund_me project path.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@avikat
Comment options

@cromewar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@gnoparus
Comment options

@gnoparus
Comment options

@cromewar
Comment options

Answer selected by cromewar
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants