Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't run brownie tests #22

Open
SUPERetnad01 opened this issue Jan 14, 2022 · 2 comments
Open

can't run brownie tests #22

SUPERetnad01 opened this issue Jan 14, 2022 · 2 comments

Comments

@SUPERetnad01
Copy link

i recently baked the project and tried to run brownie test and all default tests fails
with the same error
brownie.exceptions.BrownieEnvironmentError: Functionality not available in local environment

full log : https://pastebin.pl/view/bffcf104

@harman-brar
Copy link

Did you install brownie via pip or pipx? If pip, ensure you're making use of venv. See https://eth-brownie.readthedocs.io/en/stable/install.html

@ghost
Copy link

ghost commented Jun 22, 2022

Is there any hint for this issue?
I am facing the same issue when using console with mainnet-fork@block_number. The weird thing is that it works with normal mainnet-fork

>>> Contract('0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599')
  File "<console>", line 1, in <module>
  File "brownie/network/contract.py", line 861, in __init__
    build, sources = _get_deployment(alias=address_or_alias)
  File "brownie/network/state.py", line 603, in _get_deployment
    raise BrownieEnvironmentError("Functionality not available in local environment") from None
BrownieEnvironmentError: Functionality not available in local environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants