Python Script pointing out problems that aren't there

My Python Script node has tagged these lines with errors that aren’t accurate. For example, I have these lines of code:

import knime.scripting.io as k
...
k.output_tables[0] = k.input_tables[0]

I haven’t touched the last line yet and while I was working on my code the errors
“undefined name ‘u’ pyflakes
appeared on the last line and
“undefined name ‘tput_tables’ pyflakes
appears just above it.

Everything runs as it should and it compiles fine so it’s not the end of the world but it is annoying

@marksmiley maybe you could provide a full example that reproduces this phenomenon.

3 Likes

I’ll see if it comes up again while I’m working. What would a full example look like? I’m new to forums and the coding community

1 Like

@marksmiley one thing you can do is provide a log file where the problem occurs

https://forum.knime.com/t/error-installing-python-extensions/82904/4?u=mlauber71

Next thing would be a minimal example workflow that reproduces the problem on your machine without spelling and secrets so others could investigate if it is a general problem.

1 Like

Thank you for the resources. I’ll try these out and see if I can reproduce the problem

1 Like

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