Closed woutdenolf closed 9 months ago
Seems like there are several places where this can occur:
The distribution variable seems to be of type pkg_resources.DistInfoDistribution
which does not have a name
attribute.
Problem seems to be this commit: https://github.com/biolab/orange-canvas-core/commit/488f691d1dbd3dda3c764703a62f96e6be8c4979#diff-8a4d7e657dbf9ce778437786cf1a4cfb7df551c2faf7792be0b7cd65ff191587
Ping @ales-erjavec
When running the tests of this project the distribution variable type is importlib.metadata.PathDistribution
which does have a name
attribute.
However when getting the distribution from an entry point (not covered by the unit test but happens in reality) you get distribution variable type pkg_resources.DistInfoDistribution
which does not have a name
attribute (called project_name
instead).
In fact the issue lies in some of our projects:
So this is not a bug but a breaking change for addons that define widget_discovery
(similar to https://github.com/biolab/orange3/blob/master/Orange/widgets/__init__.py).
@woutdenolf, yes, orange-canvas-core 0.2.0 is indeed also incompatible with the current master of Orange (which depended on orange-canvas-core<0.2 for a long time now.
See https://github.com/biolab/orange3/pull/6655 for more info.