Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'ItemsView' from 'collections' #24

Closed
bw7715 opened this issue Apr 12, 2022 · 1 comment
Closed

ImportError: cannot import name 'ItemsView' from 'collections' #24

bw7715 opened this issue Apr 12, 2022 · 1 comment

Comments

@bw7715
Copy link

bw7715 commented Apr 12, 2022

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

@amcgregor
Copy link
Member

Duplicate of #19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants