Bug 45501 - ImportError: cannot import name '_backend_gtk' from 'matplotlib.backends'
Summary: ImportError: cannot import name '_backend_gtk' from 'matplotlib.backends'
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: python3-module-matplotlib-gtk3 (show other bugs)
Version: unstable
Hardware: all Linux
: P5 normal
Assignee: Grigory Ustinov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-06 12:49 MSK by Антон Мидюков
Modified: 2024-05-23 19:53 MSK (History)
19 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Антон Мидюков 2023-03-06 12:49:53 MSK
Не работают, зависящие от python3-module-matplotlib-gtk3 пакеты:
cpu-g
image-analyzer
pitivi
gwe

При старте одна и та же проблема.

$ image-analyzer 
Traceback (most recent call last):
  File "/usr/bin/image-analyzer", line 45, in <module>
    from matplotlib.backends.backend_gtk3cairo import FigureCanvasGTK3Cairo as FigureCanvas
  File "/usr/lib64/python3/site-packages/matplotlib/backends/backend_gtk3cairo.py", line 5, in <module>
    from .backend_gtk3 import Gtk, FigureCanvasGTK3, _BackendGTK3
  File "/usr/lib64/python3/site-packages/matplotlib/backends/backend_gtk3.py", line 28, in <module>
    from . import _backend_gtk
ImportError: cannot import name '_backend_gtk' from 'matplotlib.backends' (/usr/lib64/python3/site-packages/matplotlib/backends/__init__.py)

$ gwe
Traceback (most recent call last):
  File "/usr/bin/gwe", line 53, in <module>
    from gwe import __main__
  File "/usr/lib/python3/site-packages/gwe/__main__.py", line 41, in <module>
    from gwe.app import Application
  File "/usr/lib/python3/site-packages/gwe/app.py", line 31, in <module>
    from gwe.presenter.main_presenter import MainPresenter
  File "/usr/lib/python3/site-packages/gwe/presenter/main_presenter.py", line 50, in <module>
    from gwe.presenter.edit_fan_profile_presenter import EditFanProfilePresenter
  File "/usr/lib/python3/site-packages/gwe/presenter/edit_fan_profile_presenter.py", line 26, in <module>
    from gwe.util.view import hide_on_delete
  File "/usr/lib/python3/site-packages/gwe/util/view.py", line 21, in <module>
    from matplotlib.backends.backend_gtk3agg import FigureCanvasGTK3Agg as FigureCanvas
  File "/usr/lib64/python3/site-packages/matplotlib/backends/backend_gtk3agg.py", line 4, in <module>
    from . import backend_agg, backend_gtk3
  File "/usr/lib64/python3/site-packages/matplotlib/backends/backend_gtk3.py", line 28, in <module>
    from . import _backend_gtk
ImportError: cannot import name '_backend_gtk' from 'matplotlib.backends' (/usr/lib64/python3/site-packages/matplotlib/backends/__init__.py)

$ pitivi
Отсутствующая необязательная зависимость:
— librosa не найден в системе
    -> включает возможность обнаружения тактов
Traceback (most recent call last):
  File "/usr/bin/pitivi", line 172, in <module>
    _run_pitivi()
  File "/usr/bin/pitivi", line 143, in _run_pitivi
    from pitivi import application
  File "/usr/lib64/pitivi/python/pitivi/application.py", line 33, in <module>
    from pitivi.mainwindow import MainWindow
  File "/usr/lib64/pitivi/python/pitivi/mainwindow.py", line 29, in <module>
    from pitivi.editorperspective import EditorPerspective
  File "/usr/lib64/pitivi/python/pitivi/editorperspective.py", line 41, in <module>
    from pitivi.timeline.timeline import TimelineContainer
  File "/usr/lib64/pitivi/python/pitivi/timeline/timeline.py", line 38, in <module>
    from pitivi.timeline.elements import Clip
  File "/usr/lib64/pitivi/python/pitivi/timeline/elements.py", line 32, in <module>
    from matplotlib.backends.backend_gtk3cairo import FigureCanvasGTK3Cairo
  File "/usr/lib64/python3/site-packages/matplotlib/backends/backend_gtk3cairo.py", line 5, in <module>
    from .backend_gtk3 import Gtk, FigureCanvasGTK3, _BackendGTK3
  File "/usr/lib64/python3/site-packages/matplotlib/backends/backend_gtk3.py", line 28, in <module>
    from . import _backend_gtk
ImportError: cannot import name '_backend_gtk' from 'matplotlib.backends' (/usr/lib64/python3/site-packages/matplotlib/backends/__init__.py)

$ cpu-g
[Errno 2] No translation file found for domain: 'cpu-g'
Traceback (most recent call last):
  File "/usr/bin/cpu-g", line 41, in <module>
    from cpug import CPUG
  File "/usr/share/cpu-g/cpug.py", line 41, in <module>
    from matplotlib.backends.backend_gtk3cairo import FigureCanvasGTK3Cairo as\
  File "/usr/lib64/python3/site-packages/matplotlib/backends/backend_gtk3cairo.py", line 5, in <module>
    from .backend_gtk3 import Gtk, FigureCanvasGTK3, _BackendGTK3
  File "/usr/lib64/python3/site-packages/matplotlib/backends/backend_gtk3.py", line 28, in <module>
    from . import _backend_gtk
ImportError: cannot import name '_backend_gtk' from 'matplotlib.backends' (/usr/lib64/python3/site-packages/matplotlib/backends/__init__.py)
Comment 1 Repository Robot 2024-05-23 19:53:34 MSK
python3-module-matplotlib-3.8.4-alt1 -> sisyphus:

 Wed Apr 10 2024 Grigory Ustinov <grenka@altlinux> 3.8.4-alt1
 - Automatically updated to 3.8.4 (Closes: #45501).
 - Added python3-module-matplotlib-qt6 subpackage (Closes: #49264).
 - Made tkAgg default backend.