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

Import error when installing update 0.6.0b1 #212

Closed
antazoey opened this issue Nov 4, 2021 · 1 comment · Fixed by #213
Closed

Import error when installing update 0.6.0b1 #212

antazoey opened this issue Nov 4, 2021 · 1 comment · Fixed by #213

Comments

@antazoey
Copy link
Contributor

antazoey commented Nov 4, 2021

  • Version: 0.6.0b1
  • Python: 3.9.7
  • OS: macOS

What was wrong?

Crashes when trying to import the backend.

from eth_tester.backends import PyEVMBackend

Gets the issue:

ModuleNotFoundError: No module named 'eth.vm.forks.berlin'

My pyevm version is 0.3.0a20, which I see is not supported! However, I already had it installed in my environment from a separate package and there is nothing in this setup.py that gets mad about that.

I don't believe eth.vm.forks.berlin existed until 0.4.0, correct me if I am wrong!
Since py-evm is not listed in the install_requires, it does not ensure it gets updated or anything.

How can it be fixed?

Before importing BaseTransaction and TypedTransaction, check if pyevm version is high enough

@antazoey
Copy link
Contributor Author

antazoey commented Nov 4, 2021

Ah, I guess this is solved on my end by including "eth-tester[pyevm]", in the setup.py.

At the same, checking the version in is_pyevm_available() is a little more clear I think

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

Successfully merging a pull request may close this issue.

1 participant