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

Hello world tutorial doesn't work :-( #2

Open
NicoSolALBA opened this issue Apr 14, 2021 · 0 comments
Open

Hello world tutorial doesn't work :-( #2

NicoSolALBA opened this issue Apr 14, 2021 · 0 comments

Comments

@NicoSolALBA
Copy link

Hi, I'm planning to use EDNA for building a new task so I'm playing around. It seems that the simple tutorial you provide in the documentation doesn't work.

edna2.py --inData '{"name": "Someone"}' HelloWorldTask

When looking at edna2.py, I realized that this case goes directly to the 'else' block.

87 if taskName is None:
88 parser.print_help()
89 sys.exit(1)
90 elif inData is None and inDataFile is not None:
91 with open(inDataFile) as fd:
92 inData = fd.read()
93 else:
94 print("Error - no indata provided!")
95 parser.print_help()
96 sys.exit(1)
97

Of course if I send the data with the --inDataFile option and a json file then it's ok.
Cheers
Nico

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

1 participant