Saw Anvil had the web3 module for Ethereum. So following the web3 quickstart documentation, I am trying to import on server side and connect using:
(copied directly from docs: Quickstart — Web3.py 5.24.0 documentation)
from web3 import Web3
That’s all. Tried different combinations and on client side as well just in case, but in the console I am getting the error:
ImportError: cannot import name 'Web3' from 'web3' (/usr/local/lib/python3.7/site-packages/web3/__init__.py)
Works for me locally in a python virtual environment but I have to use ipython.
I’m on the individual plan, all Python 3. I know I can use uplink but I wanted to move away from working on this locally.
Any ideas on the issue?