GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Error importing Uniswap with the latest version of web3.py · Issue #322 · uniswap-python/uniswap-python Closed Labels bugSomething isn't workingSomething isn't working DescriptionDescribe the bug >>> from uniswap import Uniswap from web3.contract import Contract, ContractFunction ImportError: cannot import name 'ContractFunction' from 'web3.contract' To Reproduce $ python3.11 -m venv .venv $ source .venv/bin/activate (.venv) $ pip install git+https://github.com/ethereum/web3.py.git (.venv) $ pip install uniswap-python (.venv) $ python Python 3.11.2 (main, Feb 8 2023, 14:49:24) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from uniswap import Uniswap Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/arjuna/.../review_uniswap_python/.venv/lib/python3.11/site-packages/uniswap/__init__.py", line 2, in <module> from .uniswap import Uniswap, _str_to_addr File "/home/arjuna/.../review_uniswap_python/.venv/lib/python3.11/site-packages/uniswap/uniswap.py", line 11, in <module> from web3.contract import Contract, ContractFunction ImportError: cannot import name 'ContractFunction' from 'web3.contract' (/home/arjuna/.../review_uniswap_python/.venv/lib/python3.11/site-packages/web3/contract/__init__.py) >>> from web3.contract import ContractFunction Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name 'ContractFunction' from 'web3.contract' (/home/arjuna/.../review_uniswap_python/.venv/lib/python3.11/site-packages/web3/contract/__init__.py) >>> from web3.contract.contract import ContractFunction >>> Expected behavior Additional context ImportError: cannot import name 'getargspec' from 'inspect' (/usr/lib/python3.11/inspect.py) Activity
MetadataMetadataAssigneesLabelsbugSomething isn't workingSomething isn't working TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |