ImportError("Couldn't find the FluidSynth library.")

Viewed 782

I have installed fluidsynth version 2.0.5 and am using it in mingus. However, when i ran the code

from mingus.midi import fluidsynth

It return this

Traceback (most recent call last):
  File "/Users/rudiherrig 1 2/Desktop/pythonstuff/musicExp.py", line 1, in <module>
    from mingus.midi import fluidsynth
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mingus/midi/fluidsynth.py", line 37, in <module>
    from mingus.midi import pyfluidsynth as fs
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mingus/midi/pyfluidsynth.py", line 41, in <module>
    raise ImportError("Couldn't find the FluidSynth library.")
ImportError: Couldn't find the FluidSynth library.

I find this quite confusing as i have fluidsynth installed. Any ideas on how to fix this? Edit: I found a file called fluidsynth_dll.dsp in my library so i dont know why it is returning this error.

1 Answers

You need to install libfluidsynth.dll

  1. Download precompiled DLL from: https://zdoom.org/downloads#Support
  2. If you use 64x version rename file from libfluidsynth64.dll to libfluidsynth.dll
  3. Place it into C:\Windows\System32

You can also compile it by yourself using GitHub project

Related