mara-example-project-1 icon indicating copy to clipboard operation
mara-example-project-1 copied to clipboard

flask mara_pipelines.ui.run_interactively does not work

Open ghost opened this issue 4 years ago • 7 comments

In the Readme.md it is written that I can use flask mara_pipelines.ui.run_interactively.

This does not work:

image

ghost avatar Aug 20 '20 13:08 ghost

Hi @hz-lschick.

Is this still a problem?

martin-loetzsch avatar Oct 26 '20 21:10 martin-loetzsch

@martin-loetzsch Yes. tested it again with the current version and checked the code but could not find the source of the issue

ghost avatar Oct 28 '20 11:10 ghost

@hz-lschick Can you just run flask Sometimes it spits out a better error message...

jankatins avatar Oct 28 '20 12:10 jankatins

@jankatins Hmm, don't know what you mean.

I can run 'flask mara_pilelines.ui.run --help' without any issue. How do I just call 'flask'?

ghost avatar Oct 28 '20 12:10 ghost

Ah. A while ago Flask changed how the names of these cli commands get derived from function names. So

flask mara_pipelines.ui.run_interactively

became

mara_pipelines.ui.run-interactively

You can see all available cli commands by just running flask

martin-loetzsch avatar Oct 28 '20 12:10 martin-loetzsch

@hz-lschick just flask (or flask --help -> that should usually show you any import problems, e.g. a missing import for the package which holds the command = no command shows. Or no command at all = missing spec for the app/app.py file).

But I just saw that there is a minus-vs-underscore issue in your screenshot: it should be mara_pipelines.ui.run-interactively (minus in the last part, underscore in the earlier parts). Could it be that?

jankatins avatar Oct 28 '20 12:10 jankatins

Yes, with flask mara_pipelines.ui.run-interactively it works just fine. The Readme should be fixed here

flask works as well as it should: image

ghost avatar Oct 28 '20 15:10 ghost