ImportError: cannot import name 'ItemsView' from 'collections'
bw7715 opened this issue · 1 comments
bw7715 commented
I get an error 'ImportError' when try run a simple code with uri.
code to reproduce:
from uri import URI
uri = URI('http://www.google.com/base?one=1&two=2')
print(uri)
Traceback:
Traceback (most recent call last):
File "E:\Work\Projects\python_projects\uri_test.py", line 2, in <module>
from uri import URI
File "E:\Work\Venvs\python_projects\lib\site-packages\uri\__init__.py", line 8, in <module>
from .bucket import Bucket
File "E:\Work\Venvs\python_projects\lib\site-packages\uri\bucket.py", line 5, in <module>
from collections import ItemsView, KeysView, MutableMapping, MutableSequence, ValuesView, deque, namedtuple
ImportError: cannot import name 'ItemsView' from 'collections' (C:\pythons\Python310\lib\collections\__init__.py)
Process finished with exit code 1
Used versions:
Python 3.10
uri 2.0.1