# Python Integration 5.5.3 crashes on use of object that can't be converted to string

**URL:** <https://forum.knime.com/t/python-integration-5-5-3-crashes-on-use-of-object-that-cant-be-converted-to-string/91771>\
**Category:** KNIME Extensions\
**Tags:** scripting, python, bug\
**Created:** [April 9, 2026, 2:46pm UTC](https://forum.knime.com/t/python-integration-5-5-3-crashes-on-use-of-object-that-cant-be-converted-to-string/91771 "2026-04-09T14:46:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RNovak](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/e68b1a/32.png) [@RNovak](https://forum.knime.com/u/RNovak)\
**Post date:** [April 9, 2026, 2:46pm UTC](https://forum.knime.com/t/python-integration-5-5-3-crashes-on-use-of-object-that-cant-be-converted-to-string/91771/1 "2026-04-09T14:46:56Z")

</div>

I am having a critical issue and need to know if this is just a 5.5.x thing or if this affects the whole 5.x release.

I am attempting to use paramiko in a Python Script node under 5.5.3. The conda environment is configured with Python 3.11 and knime-python-\* v.5.5.0. This is running on osx-arm64.

Executing code to create this object:

```python
key_filehandle = open("path_to_ecdsa_key","r")
priv_key = paramiko.ECDSAKey.from_private_key(key_filehandle)

```

which creates an object priv\_key of type ECDSAKey, and causes the node to fail with the following:

_py4j.Py4JException: An exception was raised by the Python Proxy. Return Message: Traceback (most recent call last):_

_File “/Applications/KNIME 5.5.3.app/Contents/Eclipse/plugins/org.knime.python3.scripting.nodes\_5.5.1.v202507241235/src/main/python/\_knime\_scripting\_launcher.py”, line 282, in object\_to\_string_

```auto
string = str(obj)

```

_TypeError: \_str\_ returned non-string (type bytes)_

_The above exception was the direct cause of the following exception:_

_Traceback (most recent call last):_

_File “/Applications/KNIME 5.5.3.app/Contents/Eclipse/plugins/org.knime.python3.scripting.nodes\_5.5.1.v202507241235/src/main/python/\_knime\_scripting\_launcher.py”, line 192, in execute_

_“data”: self.\_getVariablesInWorkspace(),_

_File “/Applications/KNIME 5.5.3.app/Contents/Eclipse/plugins/org.knime.python3.scripting.nodes\_5.5.1.v202507241235/src/main/python/\_knime\_scripting\_launcher.py”, line 307, in \_getVariablesInWorkspace_

_var\_value = object\_to\_string(value)_

_File “/Applications/KNIME 5.5.3.app/Contents/Eclipse/plugins/org.knime.python3.scripting.nodes\_5.5.1.v202507241235/src/main/python/\_knime\_scripting\_launcher.py”, line 289, in object\_to\_string_

_raise KnimeUserError(_

_knime.scripting.\_backend.KnimeUserError: It was not possible to represent ECDSAKey as a string for the workspace._

The same code, using the same Python version and the same paramiko version runs just fine in the Python Script node under 4.7.8 and the variable pane shows the variable priv\_key of type ECDSAKey.

Why is 5.5.3 attempting to coerce ECDSAKey to type string unprompted? Indeed, outside of KNIME if you attempt to execute str(paramiko.ECDSAKey.from\_private\_key(key\_file)) it will throw

TypeError: \__str_\_ returned non-string (type bytes)

What gives? This also causes the node to fail when running on a KNIME server executor.

---

<div class="post-metadata">

**Author:** ![RNovak](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/e68b1a/32.png) [@RNovak](https://forum.knime.com/u/RNovak)\
**Post date:** [April 9, 2026, 3:20pm UTC](https://forum.knime.com/t/python-integration-5-5-3-crashes-on-use-of-object-that-cant-be-converted-to-string/91771/2 "2026-04-09T15:20:03Z")

</div>

4.7.8 Screenshot:

 ![Screenshot 2026-04-09 at 9.44.38 AM](https://forum-cdn.knime.com/uploads/default/original/3X/d/b/db6aef1efa7baf2fc5d7ae67c4b428eedf26e0d8.png)

---

<div class="post-metadata">

**Author:** ![RNovak](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/e68b1a/32.png) [@RNovak](https://forum.knime.com/u/RNovak)\
**Post date:** [April 9, 2026, 5:50pm UTC](https://forum.knime.com/t/python-integration-5-5-3-crashes-on-use-of-object-that-cant-be-converted-to-string/91771/3 "2026-04-09T17:50:19Z")

</div>

This behavior carries forward into every 5.x version I tested. Both Windows (64-bit) and osx-arm64.

It seems to be triggered when the python runtime environment finishes executing, and the framework attempts to collect all of the variables into the node’s status.

The only workaround seems to be to _del_ any variable that can’t be coerced to string using the str() function prior to the end of the script.

Can we get this fixed as 5.5.4/5.8.4LTS, please?

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [July 8, 2026, 5:50pm UTC](https://forum.knime.com/t/python-integration-5-5-3-crashes-on-use-of-object-that-cant-be-converted-to-string/91771/4 "2026-07-08T17:50:45Z")

</div>

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