x0rz / tweets_analyzer

Tweets metadata scraper & activity analyzer
GNU General Public License v3.0
2.95k stars 454 forks source link

Support for Python 3.10 - collections.Iterable deprecated #79

Open lcheylus opened 2 years ago

lcheylus commented 2 years ago

With Python 3.10 (on Debian testing), I have the error Error: module 'collections' has no attribute 'Iterable'. Indeed, it seems that collections.Iterable is deprecated since Python 3.9.

After some debugging, the issue is in print_charts function.

cyphunk commented 1 year ago

Possible fix? https://github.com/vim13/tweets_analyzer/commit/b503af3165427e74575999b28826eac0725d034f

import collections
collections.Iterable = collections.abc.Iterable