MIDI input module not loading

126 views
Skip to first unread message

Neil Ford

unread,
Feb 20, 2016, 7:05:42 AM2/20/16
to Node-RED
Having got more verbose output on my PI, I now have an error to look at. But being a relative Node-RED noob, I'm not sure what it means.

The error output is:

20 Feb 11:56:27 - [warn] [midi] Error: Could not locate the bindings file. Tried:
 → /home/pi/.node-red/node_modules/node-red-contrib-midi/node_modules/midi/build/midi.node
 → /home/pi/.node-red/node_modules/node-red-contrib-midi/node_modules/midi/build/Debug/midi.node
 → /home/pi/.node-red/node_modules/node-red-contrib-midi/node_modules/midi/build/Release/midi.node
 → /home/pi/.node-red/node_modules/node-red-contrib-midi/node_modules/midi/out/Debug/midi.node
 → /home/pi/.node-red/node_modules/node-red-contrib-midi/node_modules/midi/Debug/midi.node
 → /home/pi/.node-red/node_modules/node-red-contrib-midi/node_modules/midi/out/Release/midi.node
 → /home/pi/.node-red/node_modules/node-red-contrib-midi/node_modules/midi/Release/midi.node
 → /home/pi/.node-red/node_modules/node-red-contrib-midi/node_modules/midi/build/default/midi.node
 → /home/pi/.node-red/node_modules/node-red-contrib-midi/node_modules/midi/compiled/0.10.29/linux/arm/midi.node

I'm guessing it might be a version compatibility problem. The node (http://flows.nodered.org/node/node-red-contrib-midi) was written 7 months ago and may not be up to current spec.

As always, pointers of where I should be looking / reading up on stuff to dig in to this are appreciated.

Neil.

Mark Setrem

unread,
Feb 20, 2016, 7:31:37 AM2/20/16
to Node-RED
Are you running on the version of nodejs that comes installed on the Jessie image?

There is an issue open within the node midi package that is a dependency of the node-red-node, of it not working on that version of nodejs on a Pi
(there should have been errors when you installed the node-red-node)

See https://github.com/justinlatimer/node-midi/issues/89

Neil Ford

unread,
Feb 20, 2016, 10:58:31 AM2/20/16
to Node-RED
Thank you Mark, that has helped a lot. Teach me to not just sudo a module install (old habits die hard).

Neil Ford

unread,
Feb 20, 2016, 11:37:01 AM2/20/16
to Node-RED
And of course it turned out being something stupid...

I was missing the sound library files which the node-midi needed to build. So a quick sudo apt-get install libasound2-dev later, everything installed fine and the node appears in the advanced section. This is on a Pi2 with a fully updated Jessie install.

Thanks everyone for your help debugging stuff today. I'm now off to look at MIDI controllers and the MIDI spec.

Neil.
Reply all
Reply to author
Forward
0 new messages