ITK Python Wrapping error: void value not ignored as it ought to be

I tried to change the variable : PYTHON_LIBRARY from FILEPATH TO PATH as below:
From: PYTHON_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libpython3.6m.so
To: PYTHON_LIBRARY:PATH=/usr/lib/python3.6

I dont get the above errors, however, I get the other errors:

/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyObject_Hash’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyObject_GetBuffer’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyObject_Repr’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyExc_ValueError’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyLong_AsLong’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyBool_Type’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyObject_GetAttr’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyExc_KeyError’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘_Py_TrueStruct’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyNumber_And’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyTuple_Pack’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyUnicode_GetLength’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘Py_ReprLeave’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘_Py_HashPointer’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyObject_Str’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyObject_GetAttrString’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyModule_Type’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyErr_Restore’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyType_IsSubtype’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyModule_GetDict’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyNumber_Power’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyNumber_Index’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyUnicode_InternFromString’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyTuple_New’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyNumber_Divmod’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyUnicode_GetSize’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyExc_KeyboardInterrupt’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘_Py_NoneStruct’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyExc_AttributeError’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyNumber_Float’
/usr/local/lib/libvtkWrappingPython36Core-8.2.so.1: error: undefined reference to ‘PyNumber_Add’

There are a lots of “undefnied reference”. Not sure if you have ever seen them ?

1 Like