Python Error

Hi All,

I've got Python installed on my Windows machine (2.7.11) and now trying the Python nodes (I'm new to Python though so please bear with me).

I'm running a code to construct the RDKit bit vector object as below:

from rdkit import DataStructs
for fps in input_table['Fingerprint']:
	fp = DataStructs.CreateFromBitString(fps)

However, I got this error here:

Traceback (most recent call last):
  File "C:\Program Files\KNIME\plugins\org.knime.python_3.1.2.v201603040957\py\PythonKernel.py", line 282, in execute
    exec(source_code, _exec_env, _exec_env)
  File "<string>", line 6, in <module>
ArgumentError: Python argument types in
    rdkit.DataStructs.cDataStructs.CreateFromBitString(unicode)
did not match C++ signature:
    CreateFromBitString(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)

Does anyone know if there's anything that I did wrong with the installation?

Thanks.

LM.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.