Error in importing ipaddress module for python scripting

Member for

2 weeks 5 days 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

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).