Skip to content

Conversation

@mzero
Copy link

@mzero mzero commented Dec 16, 2024

These two fixes address problems with touchosc2midi when trying to get it to run with current Debian (12 Bookworm) python3 packages for the requirements.

The first handles a breaking API change in Zeroconf, that happened in 0.27.0.

  • requirements.txt lists 0.17.7
  • Debian 12 Bookworm has 0.47.3

The second handles a bug in mido when using rt-midi/ALSA as the backend, which causes awful port names(*).

  • requirements.txt lists 1.1.24, which doesn't have the bug.
  • The bug was introduced in 1.2.0, then fixed in mido 1.3.0.
  • Alas, Debian 12 Bookworm, and all upcoming Debian releases, have 1.2.10

(*): Just how awful? Here's the ports touchosc2midi creates when using mido 1.2.10:

    RtMidiIn Client  : TouchOSC Bridge                       [129:0] <--
    RtMidiOut Client : RtMidiIn Client:TouchOSC Bridge 129:0 [130:0] -->

Yep - the whole string RtMidiIn Client:TouchOSC Bridge 129:0 is the output port name!

The deprecated ServiceInfo address parameter/property was removed from in:

python-zeroconf/python-zeroconf@ab72aa8
Works around a bug in mido prior to 1.3.0.
Alas Debian is still pushing out 1.2.10
@mzero
Copy link
Author

mzero commented Dec 18, 2024

We have submitted a fix to the Debian package maintainer of python3-mido - if they accept that, and so distribute patched, fixed 1.2.10 versions of python-mido, then the second of the two commits is not needed, though does no harm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant