Python kernel not found when running Workflow via command prompt

I have a workflow that uses KerasDL with Python and it works absolutly fine when I run it with the KNIME front-end. When I try to run it using the Windows command prompt, it throws an errors and quits.

An error occurred while trying to launch Python: Could not start Python kernel. Error during Python installation test: Could not start Python executable at the given location (no_conda_environment_selected\python.exe): Cannot run program “no_conda_environment_selected\python.exe”: CreateProcess error=2, The system cannot find the file specified

The relevant portion of the log is attached with additional debug info and my settings below.

Any ideas how I can get this to work in the command line?

Thanks!




knime.log (13.4 KB)

Hi @cybrkup,

You need to explicitly point KNIME to a file containing your preferences using command line option -preferences=your-preferences-file.epf. You can export such a file via File > Export Preferences… inside the graphical KNIME workbench. (Also see here for some more information on KNIME’s batch mode.)

Marcel

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.