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

Cannot find module yargs #13

Open
LJWilliams opened this issue Jun 1, 2017 · 8 comments
Open

Cannot find module yargs #13

LJWilliams opened this issue Jun 1, 2017 · 8 comments

Comments

@LJWilliams
Copy link

LJWilliams commented Jun 1, 2017

I just installed oppni from the docker image and I cannot get it to run. The file has already run with several other apps that require bids format.

Suggestions would be greatly appreciated.


docker run --rm -v /Users/lwilliams/Documents/Studies/Test:/data:ro -v /Users/lwilliams/Documents/Studies/Test/derivatives/oppni:/out default/oppni /data /out participant --participant_label sub-01

Traceback (most recent call last):
File "/oppni/oppni.py", line 222, in
run_oppni()
File "/oppni/oppni.py", line 185, in run_oppni
validate_bids_spec(args.bids_dir)
File "/oppni/oppni.py", line 78, in validate_bids_spec
run_cmd(cmd)
File "/oppni/oppni.py", line 67, in run_cmd
raise Exception("Non zero return code: %d"%process.returncode)
Exception: Non zero return code: 1
module.js:471
throw err;
^

Error: Cannot find module 'yargs'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/usr/lib/node_modules/bids-validator/bin/bids-validator:25:5)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

@raamana
Copy link
Collaborator

raamana commented Jun 1, 2017

Hey Lynne, the issue seems to be with validating BIDS specification, done via a javascript ouside OPPNI.

Do you by chance have the BIDS validator installed? If not could try installing this: https://www.npmjs.com/package/bids-validator

@LJWilliams
Copy link
Author

LJWilliams commented Jun 1, 2017 via email

@raamana
Copy link
Collaborator

raamana commented Jun 1, 2017

Actually, @chrisfilo has a better idea to make the installation of BIDS validator, part of OPPNI itself. This additional feature is being tested, and will update you in a bit.

@LJWilliams
Copy link
Author

LJWilliams commented Jun 1, 2017 via email

@LJWilliams
Copy link
Author

LJWilliams commented Jun 1, 2017 via email

@LJWilliams
Copy link
Author

LJWilliams commented Jun 2, 2017 via email

@raamana
Copy link
Collaborator

raamana commented Jun 5, 2017

Hi Lynne, thank you for trying it. We are doing some more internal tests to track the source of this error, and will update this app shortly with the latest code. Please wait for me to push these updates, so you give it another try. Thanks.

@LJWilliams
Copy link
Author

LJWilliams commented Jun 5, 2017 via email

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