Error is cannot find Token

Exception has occurred: ImportError cannot import name 'Token' from 'brownie

However Token JSON file exists

brownie bake token worked

1 Answer 1


The docs aren't super clear about this, but they assume you have a Token contract defined. brownie bake token will create this for you.

  • How do you get brownie to work. For some reason I have a new computer and cannot get brownie to work despite doing exactly the procedure. this all works python3 -m pip install --user pipx python3 -m pipx ensurepath pipx install eth-brownie brownie - cannot run/find this program error message
    – John
    Feb 16, 2022 at 22:06
  • Sometimes you need to restart your terminal or possibly log out and log back in
    – The Ref
    Feb 17, 2022 at 18:42
  • This worked, why it did not work several times before no idea.
    – John
    Feb 19, 2022 at 6:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.