Running the in-software update and I get the following error
An error occurred while installing the items
session context was:(profile=KNIMEProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=[R]org.knime.python.llm.channel.bin.win32.x86_64 5.4.2.v202409121240 → [R]org.knime.python.llm.channel.bin.win32.x86_64 5.4.3.v202503041757, action=org.knime.product.p2.actions.ShellExec).
ShellExec command exited non-zero exit value:
Installation of the Python extension failed:
See the files “D:\knime_5.4.2\plugins\org.knime.python.llm.channel.bin.win32.x86_64_5.4.3.v202503041757\bin\create_env.out” and “D:\knime_5.4.2\plugins\org.knime.python.llm.channel.bin.win32.x86_64_5.4.3.v202503041757\bin\create_env.err” for details.
Please refer to the documentation at Create a New Python based KNIME Extension.
This is occurring in the Knime AI extensions update:
create_env.out.txt (97.1 KB)
.err file is empty.
Any Ideas would be appreciated
Hi @mgirdwood
From the log you attached, it looks like the environment installation process abruptly stops during the Conda installation, specifically between the “downloading” and “linking” steps. Below are a few suggestions to help troubleshoot:
1. Check for Permissions or Antivirus Interference
- Ensure you’re running KNIME and its updates with write permissions to the KNIME installation folder.
- Temporarily disable any antivirus or security software that might be preventing Conda from linking the packages.
2. Run the Setup Script Manually
D:\knime_5.4.2\plugins\org.knime.python.llm.channel.bin.win32.x86_64_5.4.3.v202503041757\bin
- Run create_env.bat script from a command prompt to see if Conda reports any specific errors in real time.
3. Path Length Issues on Windows
- Windows can sometimes fail silently if your path names are too long.
- Consider enabling Windows long path support
4. Try a Clean Installation
- Maybe something is corrupted
compare Error installing Knime AI Extension 5.4.3
2 Likes
Hi @Marc_Lehner
Thanks for replying -
-
I can install other extensions so I dont see this as a Permissions issue, Tried it also using the Offline Zip method with the same problem
-
Trying the Manual gives a fail also: (Transaction starting
Installation of the Python extension failed:
See the files “D:\knime_5.4.2\plugins\org.knime.python.llm.channel.bin.win32.x86_64_5.4.3.v202503041757\bin\create_env.out” and “D:\knime_5.4.2\plugins\org.knime.python.llm.channel.bin.win32.x86_64_5.4.3.v202503041757\bin\create_env.err” for details.
Please refer to the documentation at Create a New Python based KNIME Extension)
-
The long Paths has been checked a dozen times so that is ok
-
Having to uninstall and reinstall after each upgrade seems to hint at some deeper issue. Perhaps one should wait for full 5.x revision Updates.
I am trying to get a working process to be able to know that if I suggest using Knime alongside Alteryx at work, which doesn’t allow access to the Internet for updates etc, I can be sure this will not cause problems for any users. So far it has been a difficult journey.
I can uninstall and try 5.4.3
Hi @Marc_Lehner
I reinstalled the Latest 5.4.3 ( build 12 March ) as i wasn’t getting anywhere.
I tried the windows Installer first but that gave errors so i went with the - KNIME Analytics Platform for Windows (zip archive) - version.
Windows Defender is off.
- After extracting I updated the core as it requested.
- Then installed the Python Extension - ok
- In Preferences associated Conda to the Anaconda directory and linked Deep learning and Python to separate environments
- Tried to install the AI extension and
received the error:
n error occurred while installing the items
session context was:(profile=KNIMEProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null → [R]org.knime.python.llm.channel.bin.win32.x86_64 5.4.3.v202503041757, action=org.knime.product.p2.actions.ShellExec).
ShellExec command exited non-zero exit value:
Installation of the Python extension failed:
See the files “D:\Program Files\knime_5.4.3\plugins\org.knime.python.llm.channel.bin.win32.x86_64_5.4.3.v202503041757\bin\create_env.out” and “D:\Program Files\knime_5.4.3\plugins\org.knime.python.llm.channel.bin.win32.x86_64_5.4.3.v202503041757\bin\create_env.err” for details.
Please refer to the documentation at Create a New Python based KNIME Extension.
.create_env.out file attached again
create_env.out (106.7 KB)
.err file is empty.
Any further “hints” would be welcome. I must be cursed as I havent had a single install of Knime work OOB with these extensions
Hi @mgirdwood
The KNIME LLM extension differs from most other KNIME extensions because it’s Python-based rather than Java-based. In other words, it needs to set up its own Conda environment behind the scenes. The create_env.out file suddenly stops right in the installation step of conda. The fact that there’s no error file means that it gets killed quickly. This led me to the assumption that an antivirus is killing the process (as this is what most users seem to find). But it could also be missing permissions to execute Python scripts on this system or similar admin settings? Here are a few steps that I would try:
-
Install a different Python Extension
- Try installing something like the web interaction extension. This is a different extension that is also Python-based. Just to test if the installation of Python extensions in general fails, or if it’s a specific problem with the LLM environment.
-
Manually Run the create_env.bat
Script
- Inside the extension’s plugin folder, you’ll find a script called
create_env.bat
. Try executing it in a command line and observe the console log. Maybe some errors are printed before the process is killed (D:\Program Files\knime_5.4.3\plugins\org.knime.python.llm.channel.bin.win32.x86_64_5.4.3.v202503041757\bin\create_env.bat
)
- See if anything changes if executed with admin privileges.
-
Check Conda Installation and Path
- The LLM extension typically includes its own Conda, but if your system already has Conda installed, the environment creation process can get confused if paths are overridden or if there is a conflict.
- If you have an existing Conda installation, make sure it isn’t interfering. If you rely on KNIME’s bundled Conda, verify that it’s accessible and that no environment variables (like
PATH
) are being overridden.
2 Likes
Hi @Marc_Lehne, based on your point.
1.
Tested the installation of the Web Interaction extension and it installed - So okay
I ran the .bat file using Cmd and the error was :
The system cannot find the file specified.
No KNIME_PYTHON_PACKAGE_REPO_URL set, downloading packages
The system cannot find the file specified.
The extension is channel=
The bundling home is set to: D:\bundling\envs
The bundling_parent contains a backslash.
FINDSTR: Cannot open D:\Program Files..\META-INF\MANIFEST.MF
The bundle path is set to: D:\bundling\envs_channel=
‘.\micromamba.exe’ is not recognized as an internal or external command,
operable program or batch file.
Installation of the Python extension failed:
See the files “D:\Program Files\create_env.out” and “D:\Program Files\create_env.err” for details.
Please refer to the documentation at Create a New Python based KNIME Extension.
As the LLM extension is not installing I assume that the Knime conda package is not available. I am not clear on how to prevent the Anaconda installation “interfering” with the LLM extension. Or how to point Preferences/Conda to the Knime Conda installation if it was implemented.
I can try to delete Anaconda and delete Knime again, but this seems extreme