biolab / orange3-associate

🍊 :package: Frequent itemsets and association rules mining for Orange 3.
Other
65 stars 37 forks source link

Error when initilizing the application (non blocking) #55

Closed jjcampos closed 1 year ago

jjcampos commented 1 year ago

What's wrong? Upon starting up the application using python -m Orange.canvas it is showing the following error:

2023-02-10 10:09:41,193:ERROR:orangecanvas.registry.discovery: An ImportError occurred while loading entry point 'Associate = orangecontrib.associate.widgets'
Traceback (most recent call last):
  File "/home/jorge/.local/lib/python3.10/site-packages/orangecanvas/registry/discovery.py", line 122, in run
    point = entry_point.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2471, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/jorge/.local/lib/python3.10/site-packages/orangecontrib/associate/__init__.py", line 1, in <module>
    from .fpgrowth import \
  File "/home/jorge/.local/lib/python3.10/site-packages/orangecontrib/associate/fpgrowth.py", line 152, in <module>
    from collections import defaultdict, Iterator
ImportError: cannot import name 'Iterator' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

It happens everytime the application starts. Note that the application still runs fine and works, this error is just being logged in the console.

How can we reproduce the problem? Simply opening the application with the python command will throw this error

What's your environment?

markotoplak commented 1 year ago

Thanks. This was fixed in #50.