Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: spawn swipl ENOENT #118

Open
moltar opened this issue Jan 30, 2020 · 2 comments
Open

Error: spawn swipl ENOENT #118

moltar opened this issue Jan 30, 2020 · 2 comments

Comments

@moltar
Copy link

moltar commented Jan 30, 2020

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
Copy link
Author

moltar commented Jan 30, 2020

Btw, SWI-Prolog is installed via brew:

❯ brew install swi-prolog

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

@fnogatz
Copy link
Owner

fnogatz commented Mar 12, 2020

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants