I’m trying to use the HoughCircle Component and get the foilowing error:
ERROR Python Script (1⇒2) (deprecated) 3:7:0:19 Execute failed: No module named ‘skimage’
Traceback (most recent call last):
File “”, line 4, in
ModuleNotFoundError: No module named ‘skimage’
I have scikit-image installed in my python environment. When HoughCircle was released scikit-image was at 0.15. I have version 0.29 installed. Could that be the problem?
you are using a node which is deprecated and its environment should be set in Preferences -> KNIME -> Python (legacy) and not in ... -> Python (assuming that you are not using a Conda Environment Propagation node).
Can you verify that you have the environment containing scikit-image selected in the preferences of Python (legacy)? And, please, can you send me a screenshot of the description of that node? I assume that it is misleading and not pointing to Python (legacy). Thanks!
This function is deprecated and will be removed in scikit-image 0.19.
Please use the function named disk instead.
Could you replace skimage.draw by skimage.disk in the import and also the occurrences within the Python snippet and see whether that works? (And maybe re-upload this component? That would be awesome )
Copy the corresponding node outside the component to alter it because I have no idea which input for this component is needed (If you want to, upload a workflow demonstrating the use-case of this component maybe?)
I changed in line six the last word: circle to disk. That was my error, I did not check thoroughly and thought the module is changed, but it is only the method circle which disappeared and which is replaced by disk. If you change just this line, at least I do not get any other import errors.
Thanks for the prompt reply. My currrent workflow is posted in JKISeason2-21. I point you to that since the post has some further explanation. I’ll try your suggestion and get back to you.
now we’re doing a real update of that component
According to StackOverflow, pandas removed the append method. See the link on how to replace it with concat. I can only do Fernwartung (German: remote maintenance) here as long as I have no example workflow (do you have a link to the JKISeason post you mentioned?). But I hope this is the last issue now
It makes sense then in the components description to mention besides scikit-image==0.21 also pandas>=2.0 (or the exact version).