tctianchi / pyvenn

2 ~ 6 sets venn diagram for python
The Unlicense
316 stars 119 forks source link

ImportError: cannot import name 'Iterable' from 'collections' #19

Closed helmutcarter closed 2 years ago

helmutcarter commented 2 years ago

I cloned the repo, cd'd in, typed python3 and hit enter. I tried importing venn, and the following happened:

>>> import venn

Traceback (most recent call last):

File "<stdin>", line 1, in <module> File "/my/path/pyvenn/venn.py", line 3, in <module> from collections import Iterable ImportError: cannot import name 'Iterable' from 'collections' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/__init__.py)

tctianchi commented 2 years ago

The Iterable was removed from collections in Python 3.10. Change that line into

from collections.abc import Iterable
tctianchi commented 2 years ago

fixed.

ronixbhaskar commented 2 years ago

The Iterable was removed from collections in Python 3.10. Change that line into

from collections.abc import Iterable

Thanks a lot worked out well

mial100 commented 1 year ago

Pls guys help me out, how can I go about this, pls break down your explanation because I don’t see to understand what you mean in collection??

zohansyahfatomi commented 1 year ago

It's worked. But I don't know why XD

ronixbhaskar commented 1 year ago

How??

On Tue, Jul 18, 2023, 04:58 Zohan Syah Fatomi @.***> wrote:

It's worked. But I don't know why XD

— Reply to this email directly, view it on GitHub https://github.com/tctianchi/pyvenn/issues/19#issuecomment-1639030810, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3KWZHCTQGBXNL2D432UDVTXQXDBTANCNFSM5U37KWZA . You are receiving this because you commented.Message ID: @.***>

pietrovieira commented 9 months ago

Fixed:

image