Hi Patrick,
I encounter the same problem "dynamic module does not define init function" on ubuntu 18.04.3 LTS with mididings package from apt
and rebuilding mididings at first didn't fix the issue
here are the requirements I had to install
sudo apt-get install libboost-all-dev
libglib2.0-dev
libasound2-dev
sudo pip install decorator
and commands I run to build
/setup.py build --disable-jack-midi
sudo ./setup.py install --disable-jack-midi
and now mididings works like a charm
maybe two tips on why you're still geeting the problem, which on my side make me though at first the fix wasn't fixing anything
- do purge the mididngs apt package
- be sure to clear "build" folder in mididings source folder once you apply the fix, to rebuild everything with it
Good luck, and thanx Stefets for the fix