Python plugins not working due to missing pyqt4

Bug #1956008 reported by Bernhard Trummer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
muse (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi.

I'm using muse 3.0.2+ds1-2build1 on Ubuntu 20.04.

When opening a MIDI track segment, there's a "Plugins" menu providing some Python-based scripts.
However, selecting one of them (e.g. RandomizeVelocityRelative) to be executed on some selected MIDI events leads to an error popup and as nasty side effect the previously selected MIDI events are deleted:

MusE was unable to launch the script, error message:
Traceback (most recent call last):
  File "/usr/share/muse/scripts/RandomizeVelocityRelative", line 31, in <module>
    from PyQt4 import QtGui, QtCore
ModuleNotFoundError: No module named 'PyQt4'
...

PyQt4 doesn't seem to be "easily" available anymore.
So what I did was to look at the upstream repository of muse on github.
It turned out, that all these scripts are already updated to use PyQt5, but only for versions 4.0pre1 or higher.
So I just opened the current scripts from https://github.com/muse-sequencer/muse/tree/master/src/share/scripts and overwrote "RandomizeVelocityRelative" and "SwingQuantize1" in my /usr/share/muse/scripts and ... it works. :-)
At least those two are working fine for me now, because I'm using them quite frequently.

So coming to my request:
Would it be possible to patch these Python scripts with the content from upstream/master to make them "just work" again in muse as provided by Ubuntu 20.04 (and later LTS releases that are not shipping muse 4.0 yet)?

Thanks and regards.

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.