Giter Site home page Giter Site logo

Comments (7)

markotoplak avatar markotoplak commented on June 26, 2024 1

See biolab/orange3#6655 for more info.

from orange-canvas-core.

woutdenolf avatar woutdenolf commented on June 26, 2024

Seems like there are several places where this can occur:

cat_desc.project_name = distribution.name

desc.project_name = distribution.name

project_name = distribution.name

if entry.project_name != distribution.name or \

from orange-canvas-core.

woutdenolf avatar woutdenolf commented on June 26, 2024

The distribution variable seems to be of type pkg_resources.DistInfoDistribution which does not have a name attribute.

from orange-canvas-core.

woutdenolf avatar woutdenolf commented on June 26, 2024

Problem seems to be this commit: 488f691#diff-8a4d7e657dbf9ce778437786cf1a4cfb7df551c2faf7792be0b7cd65ff191587

Ping @ales-erjavec

from orange-canvas-core.

woutdenolf avatar woutdenolf commented on June 26, 2024

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).

from orange-canvas-core.

woutdenolf avatar woutdenolf commented on June 26, 2024

In fact the issue lies in some of our projects:

  1. https://gitlab.esrf.fr/tomotools/tomwer/-/blob/main/orangecontrib/tomwer/widgets/__init__.py?ref_type=heads
  2. https://gitlab.esrf.fr/workflow/ewoks/ewoksorange/-/blob/main/src/ewoksorange/canvas/config.py?ref_type=heads

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).

from orange-canvas-core.

markotoplak avatar markotoplak commented on June 26, 2024

@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.

from orange-canvas-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.