Frescobaldi missing dependency on python3-pypm | libportmidi0 | python3-pygame

Bug #1572566 reported by Emmanuel Castro
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
frescobaldi (Ubuntu)
Fix Released
Undecided
Anthony Fok

Bug Description

Frescobaldi (as for version 2.18.1+ds1-2ubuntu) on Ubuntu 15.10 often fails to detect Midi devices. In such cases Midi playback fails to run.

*Analysis:
It appears that Midi playback relies on various Midi Python packages not available in Python3. It provides a bridge to libportmidi0 (ctypes_pypm.py and pm_ctypes.py).
This bridge is ineffective if libportmidi0 is not installed.

*Workaround:
When installing Frescobaldi, install libportmidi0 too.
>sudo apt-get install libportmidi0

*Correction suggestion:
Add the libportmidi0 package in the dependecy list of package frescobaldi.

Note :
When users struggle to solve this problem, they often install various Midi related packages. They end up with libportmidi0 package installed.

Tags: unmetdeps
Revision history for this message
Emmanuel Castro (emmanuel-castro) wrote :

Tested with QSynth, Patchage et VMPK midi tools.

Anthony Fok (foka)
Changed in frescobaldi (Ubuntu):
status: New → Confirmed
assignee: nobody → Anthony Fok (foka)
tags: added: unmetdeps
Anthony Fok (foka)
summary: - Frescobaldi fails to detect Midi
+ Frescobaldi missing dependency on libportmidi0
summary: - Frescobaldi missing dependency on libportmidi0
+ Frescobaldi 2 missing dependency on libportmidi0
Anthony Fok (foka)
summary: - Frescobaldi 2 missing dependency on libportmidi0
+ Frescobaldi missing dependency on python-pm (hence libportmidi0)
Anthony Fok (foka)
summary: - Frescobaldi missing dependency on python-pm (hence libportmidi0)
+ Frescobaldi missing dependency on python3-pypm | libportmidi0 |
+ python3-pygame
Revision history for this message
Anthony Fok (foka) wrote :

Hello Emmanuel,

Thank you very much for reporting this bug, and for providing an accurate solution to the problem.

I currently maintain the "frescobaldi" package for Debian, which gets imported into Ubuntu for every 6 months or so.

With your posted solution, I finally realized my carelessness when I made the switch from Python 2 to Python 3 for Frescobaldi 2.18.1+ds1-1 in September 2015, where I removed the Python-2-only "python-pypm" from the dependency list, and failed to add back "libportmidi0". Sorry for causing you the trouble!

By the way, python3-pygame, which includes pypm the PortMidi binding for Python, has landed in Debian "experimental". It is also available or from the upstream PyGame repository at https://bitbucket.org/pygame/pygame/src as src/pypm.pyx and src/pypm.c (compiled with Cython instead of Pyrex), so perhaps other developers or I will eventually use that work to make python3-pypm available. For the time being, "libportmidi0" alone would do.

The fix will go into frescobaldi_3.0.0-1 or one of its pre-releases.

Thanks again for reporting this issue!

Cheers,

Anthony

P.S. I am not sure if I would have the time to backport the fix to frescobaldi 2.18.x in Ubuntu 16.04... I am not yet a Ubuntu developer...

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package frescobaldi - 2.19.0+ds1-1

---------------
frescobaldi (2.19.0+ds1-1) unstable; urgency=medium

  * New upstream release.
  * Use secure URI for Vcs-Browser field in debian/control (Lintian).
  * Update years and fix duplicate "the" in debian/copyright (Lintian).

 -- Anthony Fok <email address hidden> Sun, 13 Nov 2016 03:09:08 -0700

Changed in frescobaldi (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Anthony Fok (foka) wrote :

The bug was actually fixed in the short-lived 2.18.2+ds1-2 version because I uploaded 2.19.0+ds-1 half an hour later. Anyhow, the actual log entries that record the bug fix is as follows:

---------------
frescobaldi (2.18.2+ds1-2) unstable; urgency=medium

  * Add missing dependency on libportmidi0 or its future equivalents
    "python3-pypm" or "python3-pygame". This fixes the bug that I
    introduced in 2.18.1+ds1-1 when I decided to switch to Python 3
    but neglected this dependency. Special thanks to Emmanuel Castro
    for reporting this bug on Launchpad. (LP: #1572566)
  * Bump Standards-Version to 3.9.8 (no change)
  * Add "repack" and "compression=xz" to debian/watch,
    and adjust debian/rules accordingly.

 -- Anthony Fok <email address hidden> Sun, 13 Nov 2016 02:37:56 -0700

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.