Skip to content

Import SimpleStorage from brownie  #222

@GNMarques

Description

@GNMarques

Hi,
I am getting this error when I try to import SimpleStorage from brownie.
Does anyone know how can I solve it

Launching 'ganache-cli.cmd --port 8545 --gasLimit 12000000 --accounts 10 --hardfork istanbul --mnemonic brownie'...
File "C:\Users\gonca\AppData\Local\Programs\Python\Python310\lib\site-packages\brownie_cli\run.py", line 49, in main
return_value, frame = run(
File "C:\Users\gonca\AppData\Local\Programs\Python\Python310\lib\site-packages\brownie\project\scripts.py", line 53, in run
module = _import_from_path(script)
File "C:\Users\gonca\AppData\Local\Programs\Python\Python310\lib\site-packages\brownie\project\scripts.py", line 149, in _import_from_path
import_cache[import_str] = importlib.import_module(import_str)
File "C:\Users\gonca\AppData\Local\Programs\Python\Python310\lib\importlib_init
.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File ".\scripts\deploy.py", line 1, in
from brownie import accounts, config, SimpleStorage
ImportError: cannot import name 'SimpleStorage' from 'brownie' (C:\Users\gonca\AppData\Local\Programs\Python\Python310\lib\site-packages\brownie_init
.py)
Terminating local RPC client...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions