xsd2json icon indicating copy to clipboard operation
xsd2json copied to clipboard

Error: spawn swipl ENOENT

Open moltar opened this issue 5 years ago • 3 comments

Getting the following error:

❯ xsd2json2 Inventory.xsd
events.js:174
      throw er; // Unhandled 'error' event
      ^

Error: spawn swipl ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Reproduce

wget https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_4_1/Inventory.xsd
wget https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_4_1/amzn-base.xsd
xsd2json2 Inventory.xsd

Any ideas?

Thanks.

moltar avatar Jan 30 '20 09:01 moltar

Btw, SWI-Prolog is installed via brew:

❯ brew install swi-prolog

❯ swipl --version
SWI-Prolog version 8.0.3 for x86_64-darwin

moltar avatar Jan 30 '20 09:01 moltar

Just to be sure: you are using this module, and not the fork by MGDIS? Because your command xsd2json2 (instead of xsd2json) looks like different :)

fnogatz avatar Mar 12 '20 21:03 fnogatz