Python code error when running in knime

I am running the program successfully in pycharm, but when I run in knime, I get an error, as shown below, why is this? I am using python 3.6.5.

Hi Xiaochao,

Can you please post the code you’re trying to execute or upload a workflow that reproduces the error? Thanks!

Marcel

First of all, thank you very much for your listening. I want to implement the algorithm and then process the output and read it into the database. When I adjust the code in pycharm, I put it in the python script node and found it. The error shown is not a version incompatibility issue?

Hi Xiaochao,

Can you please show me this code? That would make helping you much easier.