Hello,
I have a problem with “import numpy” in the python scripting node 1-1. Numpy is already installed in the environment but when I try to use it in Knime I will get following error:
Source code that caused failure:
Traceback (most recent call last):
File “/Applications/KNIME 3.5.3.app/Contents/Eclipse/plugins/org.knime.python2_3.6.0.v201807061638/py/PythonKernelBase.py”, line 278, in execute
exec(source_code, self._exec_env, self._exec_env)
File “”, line 1
Traceback (most recent call last):
File “/Applications/KNIME 3.5.3.app/Contents/Eclipse/plugins/org.knime.python2_3.6.0.v201807061638/py/PythonKernelLauncher.py”, line 86, in
traceback.print_exc(file=sys.stdout)
File “/Users/jngo/anaconda2/envs/py35_knime/lib/python3.5/traceback.py”, line 159, in print_exc
print_exception(*sys.exc_info(), limit=limit, file=file, chain=chain)
File “/Users/jngo/anaconda2/envs/py35_knime/lib/python3.5/traceback.py”, line 101, in print_exception
print(line, file=file, end=“”)
File “/Applications/KNIME 3.5.3.app/Contents/Eclipse/plugins/org.knime.python2_3.6.0.v201807061638/py/PythonKernelBase.py”, line 382, in write
self.stdstream.write(message)
UnicodeEncodeError: ‘ascii’ codec can’t encode character ‘\xa0’ in position 10: ordinal not in range(128)
Can someone please help?
Thanks in advance!!
Jngo