Cannot install jazz-midi and web-midi-api

Low level MIDI support for Node.js

Cannot install jazz-midi and web-midi-api

Postby pierredewilde » Tue Apr 07, 2015 6:39 am

Hi,

I am trying to install jazz-midi as node package (macosx 10.10.2 - node 0.12.2 - npm 2.7.4):
https://www.npmjs.com/package/jazz-midi

Code: Select all
$ sudo npm install jazz-midi
npm WARN package.json jazz-midi@1.4.1 No repository field.
jazz-midi@1.4.1 node_modules/jazz-midi

Besides the WARNing message, I cannot get it running:
Code: Select all
$ node
> var jazz = require('jazz-midi')
Error: Module did not self-register.
    at Error (native)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/Pierre/Documents/Music/apps/node_modules/jazz-midi/index.js:2:73)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

web-midi-api (Node.js version of Chris Wilson's WebMIDIAPIShim) has the same issue:
https://www.npmjs.com/package/web-midi-api
Code: Select all
$ sudo npm install web-midi-api
npm WARN package.json jazz-midi@1.4.1 No repository field.
web-midi-api@1.4.1 node_modules/web-midi-api
$ cd node_modules/web-midi-api/
$ node test.js
module.js:355
  Module._extensions[extension](this, filename);
Error: Module did not self-register.
    at Error (native)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/Pierre/Documents/Music/apps/node_modules/jazz-midi/index.js:2:73)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

Thanks in advance for your support,
Pierre
pierredewilde
 
Posts: 1
Joined: Mon Apr 06, 2015 10:56 pm

Re: Cannot install jazz-midi and web-midi-api

Postby sema » Sat Apr 11, 2015 5:19 pm

Thank you for heads-up!
There were some API changes in the new V8, so the job happened to be a bit bigger than just recompile.
https://strongloop.com/strongblog/node- ... s-breaking
I'm working on the issue.
Hope I'll be able to publish the new version on NPM soon.
sema
Site Admin
 
Posts: 314
Joined: Mon Oct 17, 2011 7:28 pm

Re: Cannot install jazz-midi and web-midi-api

Postby sema » Tue Apr 21, 2015 7:05 pm

Good news, everybody!
I've just published jazz-midi 1.4.2 on npm.
It works with both v.0.10 and v.0.12 Node.js.
https://www.npmjs.com/package/jazz-midi
sema
Site Admin
 
Posts: 314
Joined: Mon Oct 17, 2011 7:28 pm

Re: Cannot install jazz-midi and web-midi-api

Postby abudaan » Thu May 07, 2015 7:43 am

This test on OSX 10.10.3:
Code: Select all
mkdir test_jazz-midi
cd test_jazz-midi
npm install jazz-midi
cd node_modules/jazz-midi
node test.js


yields this error:
Code: Select all
module.js:355
  Module._extensions[extension](this, filename);
                               ^
Error: dlopen(/Users/abudaan/test_jazz-midi/node_modules/jazz-midi/bin/macos64/jazz.node, 1): no suitable image found.  Did find:
  /Users/abudaan/test_jazz-midi/node_modules/jazz-midi/bin/macos64/jazz.node: mach-o, but wrong architecture
    at Error (native)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/abudaan/test_jazz-midi/node_modules/jazz-midi/index.js:9:16)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
abudaan
 
Posts: 23
Joined: Thu Apr 19, 2012 7:43 am
Location: Planet Ulft

Re: Cannot install jazz-midi and web-midi-api

Postby sema » Thu May 07, 2015 7:51 am

First of all, did it work on Linux and Windows?
Second, is there anything special about your Mac? - Works fine on mine.
sema
Site Admin
 
Posts: 314
Joined: Mon Oct 17, 2011 7:28 pm

Re: Cannot install jazz-midi and web-midi-api

Postby abudaan » Thu May 07, 2015 8:16 am

Runs fine on Linux (Ubuntu 15.04 64bits)

I tested on a Mac Mini mid 2010, with SSD and 6GB RAM, a clean install of OSX 10.10.3, and no external sound cards.

Same test on Windows 8.1 yields these errors:

Code: Select all
C:\Users\abudaan\test_jazz-midi\node_modules\jazz-midi>node test.js
module.js:355
  Module._extensions[extension](this, filename);
                               ^
Error: error: 193C:\Users\abudaan\test_jazz-midi\node_modules\jazz-midi\bin\win32\jazz.node
    at Error (native)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (C:\Users\abudaan\test_jazz-midi\node_modules\jazz-midi\index.js:9:16)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
abudaan
 
Posts: 23
Joined: Thu Apr 19, 2012 7:43 am
Location: Planet Ulft

Re: Cannot install jazz-midi and web-midi-api

Postby sema » Thu May 07, 2015 8:47 am

Strange... This is exactly the output I had from the old version.
Is there any chance that jazz-midi was not properly updated?

what are the sizes of these files on your machine?
bin/macos64/jazz.node
bin/win64/jazz.node
sema
Site Admin
 
Posts: 314
Joined: Mon Oct 17, 2011 7:28 pm

Re: Cannot install jazz-midi and web-midi-api

Postby abudaan » Thu May 07, 2015 1:15 pm

On Linux, OSX and Windows the version number in package.json in 1.4.2

On all platforms there is no folder bin/win64

There is a folder bin/win32 and the size of jazz.node in that folder is 206336 on all platforms.

The size of jazz.node in bin/macos32 and in bin/macos64 is 121276 on all platforms.

On all platforms I ran the test in a newly created folder and with a fresh local install of jazz-midi (npm install jazz-midi), and I don´t have jazz-midi installed as a global package.
abudaan
 
Posts: 23
Joined: Thu Apr 19, 2012 7:43 am
Location: Planet Ulft

Re: Cannot install jazz-midi and web-midi-api

Postby abudaan » Fri May 08, 2015 1:59 am

Also cleaning the npm cache had no effect.

Code: Select all
npm cache clean jazz-midi
abudaan
 
Posts: 23
Joined: Thu Apr 19, 2012 7:43 am
Location: Planet Ulft

Re: Cannot install jazz-midi and web-midi-api

Postby sema » Fri May 08, 2015 5:03 pm

Ok, I think I got the clue. Will publish the fix shortly.
Thanks a lot for the info!
sema
Site Admin
 
Posts: 314
Joined: Mon Oct 17, 2011 7:28 pm

Re: Cannot install jazz-midi and web-midi-api

Postby sema » Fri May 08, 2015 7:29 pm

Mac version should work by now, please try it.
Unfortunately, I'll not have access to my 64-bit Windows compiler until Monday.
sema
Site Admin
 
Posts: 314
Joined: Mon Oct 17, 2011 7:28 pm

Re: Cannot install jazz-midi and web-midi-api

Postby abudaan » Sat May 09, 2015 9:53 am

Works like a charm! Thanks!
abudaan
 
Posts: 23
Joined: Thu Apr 19, 2012 7:43 am
Location: Planet Ulft

Re: Cannot install jazz-midi and web-midi-api

Postby sema » Sat May 09, 2015 5:32 pm

Just published v.1.4.4.
https://www.npmjs.com/package/jazz-midi
64-bit Windows build is fixed too.
sema
Site Admin
 
Posts: 314
Joined: Mon Oct 17, 2011 7:28 pm

Re: Cannot install jazz-midi and web-midi-api

Postby abudaan » Mon May 11, 2015 8:42 am

Great work! Thanks!
abudaan
 
Posts: 23
Joined: Thu Apr 19, 2012 7:43 am
Location: Planet Ulft


Return to jazz-midi

Who is online

Users browsing this forum: No registered users and 1 guest

cron