I’m trying to run a Jupyter Notebook using Python script node, but usually i face a common problems related to “missing dependencies”. For this time, it’s assuming IPython & nbformat are not installed:
I’ve checked KNIME Python Integration Installation Guide and followed the steps, but it’s still present and having an unstable behavior.
I would truly appreciate your advise to fix this problem, and any tips to avoid such problems “missing dependencies” in future.
@JayR welcome back to the KNIME forum. It says missing dependencies. Which means that the package is there but a dependency could be missing. And you should make sure that your environment is actually used in the python script node.
nice that you try that out! It is, however, completely unclear which version of KNIME Analytics Platform you are using. The link you sent is for version 3.7, is that the one you are using? Otherwise, I suggest updating, the current link is KNIME Python Integration Guide
Either way, please have a look at that link on how to set up the Conda Environment Propagation node, and let us know whether there was an issue with the configuration or not. You can confirm that you have the correct version of some package, e.g. nbformat by writing in the Python Script node:
Thankfully, I was able to resolve the issues related to “missing dependencies”, however, now I’m encountering another unstable behavior while running Python script node on Knime Server, which throws an incompatible error messages, for example the images below:
Even though, these two packages are already installed and included in conda propagation node.
So, i started thinking whether the package’s version might be the reason here behind this confusion?
Could you send the knime log of the error? That would help regarding the first screenshot.
About the second. Can you verify that in that node you have the correct environment and that the environment is used there has the correct package installed? I don’t think that this is related to the version.
Check within the Python Script node the version via
I’m sorry, but it seems i can’t find the log error message when running it as a job on the server, otherwise, the log error shows this message: “ERROR Python Script 0:21 Execute failed: No module named ‘threadpoolctl’”
Regarding the second image, I’m using the same selected library in conda propagation node (py38), and it already includes the two packages as shown below:
Regarding the workflow that contains jupyter notebook, i don’t have one; I’m running my notebook through Python script node as shown in the second image above.