Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused import causing Pandas error #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 "<string>", line 2, in <module> 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 <module> 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"
  • Loading branch information
jobs-git authored Feb 3, 2025
commit eef03e141a8d121d5248df73886f434a3df4b26a
3 changes: 0 additions & 3 deletions org.knime.dl.python/py/DLPythonNetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@

import abc

from pandas.util.testing import network


_networks = {}

_network_id_suffix = 0
Expand Down