"orange-canvas" command fails with import error in Orange 3

Bug #2063870 reported by Mario Abarca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
orange3 (Ubuntu)
New
Undecided
Unassigned

Bug Description

When attempting to run the "orange-canvas" command, I encountered an import error in Python that prevented me from running the app.

Traceback (most recent call last):
  File "/bin/orange-canvas", line 5, in <module>
    from Orange.canvas.__main__ import main
  File "/usr/lib/python3/dist-packages/Orange/__init__.py", line 4, in <module>
    from Orange import data
  File "/usr/lib/python3/dist-packages/Orange/data/__init__.py", line 4, in <module>
    from .variable import *
  File "/usr/lib/python3/dist-packages/Orange/data/variable.py", line 15, in <module>
    from Orange.data import _variable
ImportError: cannot import name '_variable' from partially initialized module 'Orange.data' (most likely due to a circular import) (/usr/lib/python3/dist-packages/Orange/data/__init__.py)

Ubuntu release: Ubuntu 24.04 LTS
Package name: python3-orange3
Version: 3.35.0+ds1-5build2
Expected Behavior: The "orange-canvas" command should open the Orange canvas window or welcome screen as usual.
Actual Behavior: I received an ImportError when running the `orange-canvas` command, which prevented me from opening the Orange canvas window.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.