# Error in Knime python integration

**URL:** <https://forum.knime.com/t/error-in-knime-python-integration/21489>\
**Category:** KNIME Analytics Platform\
**Tags:** python\
**Created:** [March 2, 2020, 7:36pm UTC](https://forum.knime.com/t/error-in-knime-python-integration/21489 "2020-03-02T19:36:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmonno](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/l/b19c9b/32.png) [@lmonno](https://forum.knime.com/u/lmonno)\
**Post date:** [March 2, 2020, 7:36pm UTC](https://forum.knime.com/t/error-in-knime-python-integration/21489/1 "2020-03-02T19:36:53Z")

</div>

Hi, I have a python script that run regularly when I execute it in the Python Source node “execute script”.  
The problem is when I run it in the workflow I get this error:

```auto
ERROR PythonKernel LookupError: No serializer extension having the id or processing python type "pandas._libs.tslibs.timestamps.Timestamp" could be found.
ERROR Python Source 0:306 Execute failed: An exception occured while running the python kernel. See console and log for details.

```

I have KNIME 3.7, python 3.6  
thank you very much

---

<div class="post-metadata">

**Author:** ![MarcelW](https://forum-cdn.knime.com/user_avatar/forum.knime.com/marcelw/32/352_2.png) [@MarcelW](https://forum.knime.com/u/MarcelW)\
**Post date:** [March 2, 2020, 10:14pm UTC](https://forum.knime.com/t/error-in-knime-python-integration/21489/2 "2020-03-02T22:14:46Z")

</div>

Hi @lmonno,

Errors like this may be caused by pandas versions that are not compatbile with KNIME. What version of pandas are you using? Could you try to replace it with `pandas 0.23` and see if the error vanishes?

Version requirements and recommendations are also documented in our [Python installation guide](https://docs.knime.com/2019-12/python_installation_guide/). There, it is also described how environments that follow these recommendations can easily be created within KNIME.

Marcel

---

<div class="post-metadata">

**Author:** ![lmonno](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/l/b19c9b/32.png) [@lmonno](https://forum.knime.com/u/lmonno)\
**Post date:** [March 3, 2020, 7:24am UTC](https://forum.knime.com/t/error-in-knime-python-integration/21489/3 "2020-03-03T07:24:04Z")

</div>

Thank you Marcel for the answer.  
I followed the reccomendation in your guide for versione 3.7 ([here](https://docs.knime.com/2018-12/python_installation_guide/python_installation_guide.pdf)) and I created a yml file with pandas 0.23.  
What I find strange is that I can run code without problems in the node (evaluate code) but not in the workflow.  
Could be a format problem of my dataframe?

---

<div class="post-metadata">

**Author:** ![lmonno](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/l/b19c9b/32.png) [@lmonno](https://forum.knime.com/u/lmonno)\
**Post date:** [March 3, 2020, 10:04am UTC](https://forum.knime.com/t/error-in-knime-python-integration/21489/4 "2020-03-03T10:04:32Z")

</div>

I solved changing the format of the date with

> my\_table[‘my\_date’]=my\_table[‘my\_date’].dt.strftime(‘%Y-%m-%d’)

Thanks anyway

---

<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:** [March 10, 2020, 10:04am UTC](https://forum.knime.com/t/error-in-knime-python-integration/21489/5 "2020-03-10T10:04:34Z")

</div>

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