web3-flashbots icon indicating copy to clipboard operation
web3-flashbots copied to clipboard

ImportError: cannot import name 'ModuleV2' from 'web3.module'

Open cattieinthere opened this issue 4 years ago • 2 comments

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?

cattieinthere avatar Sep 07 '21 09:09 cattieinthere

instead of import ModuleV2, import Module

patllc avatar Nov 23 '21 12:11 patllc

@cattieinthere are you still having this issue?

zeroXbrock avatar May 17 '22 03:05 zeroXbrock