ImportError: cannot import name 'ModuleV2' from 'web3.module'
I use web3 5.23.1, Python 3.9.6 and GCC 9.3.0 on linux.
When trying to import the flashbots module:
from flashbots import flashbot
This is the output:
Traceback (most recent call last): File "
", line 1, in File "/usr/local/lib/python3.9/dist-packages/flashbots/init.py", line 9, in from .flashbots import Flashbots File "/usr/local/lib/python3.9/dist-packages/flashbots/flashbots.py", line 5, in from web3.module import ModuleV2 ImportError: cannot import name 'ModuleV2' from 'web3.module' (/usr/local/lib/python3.9/dist-packages/web3/module.py)
Maybe flashbots isn't compatible with the latest version of web3? Or what am I missing?
instead of import ModuleV2, import Module
@cattieinthere are you still having this issue?