I’m using the knime python script node and no matter what I do I cannot get it to see the igraph module. I set up the conda environment and installed the igraph module in it (I also installed networkx module and it sees that just fine). Is this a known bug or does anyone know if there is a work around?
Hey there,
can you share some more details around your set up?
I understand you have created a custom conda env using:
conda create --name my_python_env -c knime -c conda-forge knime-python-scripting=5.3 python=3.11
then activated the env and ran
pip install networkx
pip install igraph
After that:
- have you set up the env as the “default” for KNIME via Preferences or
- are you using Conda environment propagation node in your workflow?
When you say “you cannot see” igraph - does this mean when you import the igraph module you are getting an error in KNIME that it cannot be found?
can you activate the environment and then:
conda list
pip list
Is igraph listed?
2 Likes
The error was between the keyboard and the chair. It turns out that this problem was happening in al of the environments and IDEs and it is because in conda i have to install both the “igraph” and “python-igraph” modules
3 Likes
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.