Bug ID 1207084
Summary Piviti cannot be started due to "ImportError: cannot import name 'MouseButton'"
Classification openSUSE
Product openSUSE Distribution
Version Leap 15.4
Hardware Other
OS openSUSE Leap 15.4
Status NEW
Severity Normal
Priority P5 - None
Component GNOME
Assignee gnome-bugs@suse.de
Reporter fgruener@web.de
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Pitivi cannot be started as it cannot import MouseButton from matplotlib.

Error Message:
bash> pitivi
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 32, 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 37, in
<module>
    from pitivi.timeline.elements import Clip
  File "/usr/lib64/pitivi/python/pitivi/timeline/elements.py", line 30, in
<module>
    from matplotlib.backend_bases import MouseButton
ImportError: cannot import name 'MouseButton'

Installed packages:
bash> zypper search -s -i matplotlib
Loading repository data...
Reading installed packages...

S  | Name                     | Type    | Version          | Arch   |
Repository
---+--------------------------+---------+------------------+--------+-----------------------
i+ | python3-matplotlib       | package | 2.2.5-150400.9.4 | x86_64 |
openSUSE-Leap_15.4-OSS
i+ | python3-matplotlib-cairo | package | 2.2.5-150400.9.4 | x86_64 |
openSUSE-Leap_15.4-OSS
i+ | python3-matplotlib-gtk3  | package | 2.2.5-150400.9.4 | x86_64 |
openSUSE-Leap_15.4-OSS
i+ | python3-matplotlib-qt5   | package | 2.2.5-150400.9.4 | x86_64 |
openSUSE-Leap_15.4-OSS
i+ | python3-matplotlib-tk    | package | 2.2.5-150400.9.4 | x86_64 |
openSUSE-Leap_15.4-OSS

I found out, that the matplotlib provided by the release 15.4 is too old. It is
version 2.2.5, while Mousebutton seems to be introduced around version 3.1.0.
In the version 2.2.5 MouseButton was not yet implemented as you can see under:
https://matplotlib.org/2.2.5/api/backend_bases_api.html. While in 3.1.0 it is
documented: https://matplotlib.org/3.1.0/api/backend_bases_api.html


You are receiving this mail because: