5.4 error installing Knime AI extension

Hi - I have started a new post given this is a 5.4 extension rather than the previous post regarding 5.3 that I had open and the error message seems to be different.

A new install of 5.4 today on my works laptop, these laptops are closed from the internet so I am using the latest 5.4 .zip extension archives locally to add new the features. Python extension installed ok and I am pointed at a MiniConda local instaaltion.

The error message is below and the .out, .err are attached.

An 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.0.v202409121240, action=org.knime.product.p2.actions.ShellExec).
ShellExec command exited non-zero exit value:
Installation of the Python extension failed:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000014DAEE14410>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’)‘: /packages/f7/d8/120cd0fe3e8530df0539e71ba9683eade12cae103dd7543e50d15f737917/aiohappyeyeballs-2.4.3-py3-none-any.whl
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000014DAEE6BD90>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’)‘: /packages/f7/d8/120cd0fe3e8530df0539e71ba9683eade12cae103dd7543e50d15f737917/aiohappyeyeballs-2.4.3-py3-none-any.whl
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000014DAEE6B710>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’)‘: /packages/f7/d8/120cd0fe3e8530df0539e71ba9683eade12cae103dd7543e50d15f737917/aiohappyeyeballs-2.4.3-py3-none-any.whl
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000014DAEEFF6D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’)‘: /packages/f7/d8/120cd0fe3e8530df0539e71ba9683eade12cae103dd7543e50d15f737917/aiohappyeyeballs-2.4.3-py3-none-any.whl
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000014DAEEFE350>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’)‘: /packages/f7/d8/120cd0fe3e8530df0539e71ba9683eade12cae103dd7543e50d15f737917/aiohappyeyeballs-2.4.3-py3-none-any.whl
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Max retries exceeded with url: /packages/f7/d8/120cd0fe3e8530df0539e71ba9683eade12cae103dd7543e50d15f737917/aiohappyeyeballs-2.4.3-py3-none-any.whl (Caused by NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000014DAEEFDA50>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’))
See the files “C:\programs\knime\plugins\org.knime.python.llm.channel.bin.win32.x86_64_5.4.0.v202409121240\bin\create_env.out” and “C:\programs\knime\plugins\org.knime.python.llm.channel.bin.win32.x86_64_5.4.0.v202409121240\bin\create_env.err” for details.
Please refer to the documentation at Create a New Python based KNIME Extension.

create_env.out (54.1 KB)
create_env.err (2.4 KB)

Hello @mgirdwood ,
Thanks for reporting this. I have asked about this internally.

Thank you,
Sanket

1 Like

Hi @sanket_2012
Was there any further info on this issue ? Thanks - mark

Hi @mgirdwood,

Thank you for reaching out and providing detailed information about the issue.

We attempted to reproduce the problem across multiple machines but were unsuccessful.

Starting with version 5.4, we include the necessary Python packages within the update site itself, located in a “pkgs” folder inside the plugin. This folder is used to create the Conda environment for the extension, irrespective of internet connectivity. After a successful setup, the “pkgs” folder is removed to avoid unused binaries.

Based on the details in your create_env.out, it seems that the locally available “pkgs” were not utilized during the environment setup. This typically happens if you successfully installed the extension, uninstalled it, and then re-installed it.

To debug further, could you please check the following:

  1. Does the folder C:\programs\knime\plugins\org.knime.python.llm.channel.bin.win32.x86_64_5.4.0.v202409121240\pkgs exist, and does it contain the Conda and pip package archives?
  2. What is the content of the file C:\programs\knime\plugins\org.knime.python.llm.channel.bin.win32.x86_64_5.4.0.v202409121240\bin\conda_pkg_urls.txt?
  3. What is the content of the file C:\programs\knime\plugins\org.knime.python.llm.channel.bin.win32.x86_64_5.4.0.v202409121240\bin\pip_pkg_urls.txt?

This information should help us identify why the local packages were not used. Looking forward to your feedback so we can assist further.

2 Likes

Hi @bwilhelm

Sorry for the delay in replying.

  1. there is no sub directory C:\programs\knime\plugins\org.knime.python.llm.channel.bin.win32.x86_64_5.4.0.v202409121240\pkgs : Only \bin and META-INF

I have attached the 2 .txt files.
pip_pkg_urls.txt (10.0 KB)
conda_pkg_urls.txt (26.8 KB)

Let me know if I missed anything
Mark

Hi @mgirdwood,

Thanks for the update! From the script’s perspective, it looks like environment creation actually finished successfully at some point—so it removed the pkgs folder. But something else in the Eclipse/P2 installation chain must have failed afterward, leaving you with an “Installation failed” but no local pkgs . This would explain why you’re now seeing connection errors offline.

If you have the chance, could you try a fully “clean” install with a freshly extracted KNIME AP 5.4 (possibly in a separate folder)? Note that uninstalling extensions in the “About KNIME” screen won’t cause the plugin to be re-extracted from the ZIP update site.

This should ensure the installer can find its local packages again and won’t attempt to download from the internet. Let me know how it goes!

1 Like

Hi @bwilhelm

Just for info this will take some time as we are not allowed to install software and I will need to request an IT installation. And all the questions that go along with that…

We have no access to the Internet extensions and must use the offline zip archives to add new functions.

Hi @bwilhelm

I was able to have the latest 5.4.2 install on the works PC and I think that the issue with the AI nodes is for the moment finished. Another issue has risen but I will raie a new Chat on that one so I think we can close this thread.

2 Likes

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