Closed elcolie closed 2 years ago
Python 3.10 skope-rules==1.0.1
Error
--------------------------------------------------------------------------- ImportError Traceback (most recent call last) Input In [1], in <module> 15 from sklearn.discriminant_analysis import QuadraticDiscriminantAnalysis 16 from interpret.glassbox import ExplainableBoostingClassifier ---> 17 from skrules import SkopeRules File /t/pyenv/versions/py-default/lib/python3.10/site-packages/skrules/__init__.py:1, in <module> ----> 1 from .skope_rules import SkopeRules 2 from .rule import Rule, replace_feature_name 4 __all__ = ['SkopeRules', 'Rule'] File /t/pyenv/versions/py-default/lib/python3.10/site-packages/skrules/skope_rules.py:2, in <module> 1 import numpy as np ----> 2 from collections import Counter, Iterable 3 import pandas 4 import numbers ImportError: cannot import name 'Iterable' from 'collections' (/t/pyenv/versions/3.10.2/lib/python3.10/collections/__init__.py)
/t/pyenv/versions/py-default/lib/python3.10/site-packages/skrules/skope_rules.py Correct line is from typing import Counter, Iterable
/t/pyenv/versions/py-default/lib/python3.10/site-packages/skrules/skope_rules.py
from typing import Counter, Iterable
I also have the same issue.
Error