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

Any successful WSL use? ("Windows Subsystem for Linux") #376

Open
JohnnyMarnell opened this issue Oct 17, 2024 · 0 comments
Open

Any successful WSL use? ("Windows Subsystem for Linux") #376

JohnnyMarnell opened this issue Oct 17, 2024 · 0 comments

Comments

@JohnnyMarnell
Copy link

Hello @psobot old friend!

I can't seem to get pedalboard VST3's to load on WSL, in case anyone is equally masochistic and had success? (It works on Mac + Windows native and probably Linux native, but this plugin binary isn't Linux, plus I don't have a machine to test on hand).

Easy way to get more info here?

% scp /tmp/vst.py desktop_windows: ; scp /tmp/vst.py desktop_wsl:
% python3.12 /tmp/vst.py ; ssh desktop_windows 'python vst.py' ; ssh desktop_wsl 'python3.12 vst.py'
OS Darwin py 3.12.4 is using /Library/Audio/Plug-Ins/VST3/FabFilter Pro-Q 3.vst3
Loaded Pro-Q 3
OS Windows py 3.12.7 is using C:\Program Files\Common Files\VST3\FabFilter Pro-Q 3.vst3
Loaded Pro-Q 3
OS Linux py 3.12.7 is using /mnt/c/Program Files/Common Files/VST3/FabFilter Pro-Q 3.vst3
Traceback (most recent call last):
  File "/home/jmarnell/vst.py", line 25, in <module>
    plugin = VST3Plugin(vst_path())
             ^^^^^^^^^^^^^^^^^^^^^^
ImportError: Unable to scan plugin /mnt/c/Program Files/Common Files/VST3/FabFilter Pro-Q 3.vst3: unsupported plugin format or scan failure.

This simple hello world I'm using:

import os
import platform
from pedalboard import VST3Plugin
import sys


def vst_path():
    system = platform.system()

    if system == "Darwin":
        return "/Library/Audio/Plug-Ins/VST3/FabFilter Pro-Q 3.vst3"
    elif system == "Linux":
        if "microsoft" in platform.uname().release.lower():
            return "/mnt/c/Program Files/Common Files/VST3/FabFilter Pro-Q 3.vst3"
        else:
            raise Exception("No Linux binary, plus I no have-y machine-y")
    elif system == "Windows":
        return r"C:\Program Files\Common Files\VST3\FabFilter Pro-Q 3.vst3"
    else:
        raise Exception("Unknown environment")


print(f"OS {platform.system()} py {sys.version.split()[0]} is using {vst_path()}")
assert os.path.exists(vst_path()), "VST3 plugin not found"
plugin = VST3Plugin(vst_path())
print(f"Loaded {plugin.descriptive_name}")
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

No branches or pull requests

1 participant