There is a new KNIME forum. You can still browse and read content from our old forum but if you want to create new posts or join ongoing discussions, please visit our new KNIME forum: https://forum.knime.com

Error in importing ipaddress module for python scripting

Member for

9 months 2 weeks Ehsan

Hello every one,

I want to use  ipaddress module for python scripting,but when I import  ipaddress module and run it, got this error:

-----------

Traceback (most recent call last):
  File "/Applications/KNIME 3.4.0.app/Contents/Eclipse/plugins/org.knime.python_3.4.1.v201709070953/py/PythonKernel.py", line 286, in execute
    exec(source_code, _exec_env, _exec_env)
  File "<string>", line 5, in <module>
ImportError: No module named ipaddress

-----------

it is interesting that in python_IDLE , I can import ipaddress.I use python 3.6.3  

Thanks for your reply

Comments
Thu, 10/05/2017 - 04:12

Member for

1 year 9 months

Tom Hawkins

Are you sure that KNIME is configured to use the same Python 3 executable that you are using in IDLE? Especially if you use any kind of Python environment manager (e.g. Anaconda etc).