I’m trying to use networkx module in GH python. I’ve added the source path in python editor, and the sys.path also shows the correct local folder. Somehow, it still fails to import the networkx module.
IronPython version is 2.7.5
Could be that you didn’t unpack/unzip/install the networkx module properly, I wrote a bit about this here that might help. You can also try moving the module to the default Rhino script folder* to help troubleshoot/rule out potential path issues. Also note that networkx version beyond 1.5 may not work with IronPython.
You save my day. Once I download networkx1.5 and place in Rhino script folder, everything works very well! Just out of curiosity, I still don’t get it why gh python doesn’t recognize the indicated path.
Thanks for your help.
Any path that you have added using this method should work with GHPython as well:
If not, something might be broken with your setup and we would need to investigate further.
Glad it helped
I did follow your procedure to place networkx at the beginning. And that’s why I thought GH python suppose to find the folder but it doesn’t.