Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

carla_host_control: import from pyliblo3 if available #1933

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AdamWill
Copy link

pyliblo has not been touched upstream since 2015 and doesn't work out of the box with Python releases since 3.11. There is an actively-maintained fork called 'pyliblo3' at
https://github.com/gesellkammer/pyliblo3 which does work with current upstream Python releases. It provides a library called 'pyliblo3' rather than 'liblo'. Let's support it, and prefer it over the dead library (though the dead one will still be used if it is present and pyliblo3 is not).

pyliblo has not been touched upstream since 2015 and doesn't
work out of the box with Python releases since 3.11. There is an
actively-maintained fork called 'pyliblo3' at
https://github.com/gesellkammer/pyliblo3 which *does* work with
current upstream Python releases. It provides a library called
'pyliblo3' rather than 'liblo'. Let's support it, and prefer it
over the dead library (though the dead one will still be used if
it is present and pyliblo3 is not).

Signed-off-by: Adam Williamson <[email protected]>
@AdamWill
Copy link
Author

I tested that, on Fedora 41 with Python 3.13 and the pyliblo3 library installed, with this patch, carla-control starts up successfully and shows its main window. I have no idea how to actually use it so can't see if there are any sneaky issues beyond that, but it's much better than the alternative (it crashes on start because we have no 'liblo' library any more).

@falkTX
Copy link
Owner

falkTX commented Sep 27, 2024

please test if it actually works.
you can just have 1 carla instance open where OSC is enabled in its settings, then start carla-control and try to add a plugin. both instances should be in sync in terms of plugins loaded, connections on the patchbay and transport info

@AdamWill
Copy link
Author

Well I'm not really sure I'm doing it right (I only vaguely know what any of this stuff is, I'm a distro quality/Python person, not an audio engineer :>) but it seems to work, yeah.

@ahesford
Copy link

The pyliblo package is broken in more ways than one---it depends on long-deprecated and since-removed Python interfaces, and won't even build with new Cython. One way or another, this dependency has to go.

@AdamWill
Copy link
Author

I backported this for Fedora 41 and, as I said, Carla seems to work as far as a non-specialist can test it. Haven't had any bug reports yet.

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.

3 participants