From eef03e141a8d121d5248df73886f434a3df4b26a Mon Sep 17 00:00:00 2001 From: James Guana Date: Tue, 4 Feb 2025 05:54:45 +0800 Subject: [PATCH] Remove unused import causing Pandas error Errors out in: pandas.util.testing import network checking the pandas source code shows that the network method is not available. ```bash Execute failed: An error occurred while creating the Keras network from its layer specifications. Details: No module named 'pandas.util.testing' Traceback (most recent call last): File "", line 2, in File "/opt/knime_5.4.0.linux.gtk.x86_64/knime_5.4.0/plugins/org.knime.dl.python_5.4.0.v202407310837/py/DLPythonNetwork.py", line 53, in from pandas.util.testing import network ModuleNotFoundError: No module named 'pandas.util.testing' ``` Checking the code shows that its not used in file. There is a variable name so this must have been accidentally resolved by "intellisense" --- org.knime.dl.python/py/DLPythonNetwork.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/org.knime.dl.python/py/DLPythonNetwork.py b/org.knime.dl.python/py/DLPythonNetwork.py index d47275cb..69ffa08e 100644 --- a/org.knime.dl.python/py/DLPythonNetwork.py +++ b/org.knime.dl.python/py/DLPythonNetwork.py @@ -50,9 +50,6 @@ import abc -from pandas.util.testing import network - - _networks = {} _network_id_suffix = 0