[PyQt] [pyqtdeploy] cpython library dynamic loading problem.

José Antonio Fernández Fernández aullasistemas at gmail.com
Thu Dec 6 18:02:41 GMT 2018


Good afternoon.

I'm having a problem that I can not solve, to see if someone can help me:

I try to shuffle psycopg2, which contains the file Cpython _
psycopg.cpython-37.so, this file has been compiled in static mode.

When I start, I get the following error:

Traceback (most recent call last):
  File ": /pineboolib/utils.py", line 534, in checkDependencies
  File ": / importlib / __ init__.py", line 127, in import_module
  File "bootstrap.py", line 1006, in _gcd_import
  File "bootstrap.py", line 983, in _find_and_load
  File "bootstrap.py", line 967, in _find_and_load_unlocked
  File "bootstrap.py", line 677, in _load_unlocked
  File "bootstrap_external.py", line 728, in exec_module
  File "bootstrap.py", line 219, in _call_with_frames_removed
  File
"/home/aulla/repos/github/pineboo/builds/linux-64/extra_libs/psycopg2/__init__.py",
line 50, in <module>
    from psycopg2._psycopg import (# noqa
  File "bootstrap.py", line 983, in _find_and_load
  File "bootstrap.py", line 967, in _find_and_load_unlocked
  File "bootstrap.py", line 670, in _load_unlocked
  File "bootstrap.py", line 583, in module_from_spec
  File "bootstrap_external.py", line 1043, in create_module
  File "bootstrap.py", line 219, in _call_with_frames_removed
ImportError:
/home/aulla/repos/github/pineboo/builds/linux-64/extra_libs/psycopg2/_
psycopg.cpython-37.so: undefined symbol: PyFloat_Type


The first thing I thought was that it was a dynamic compilation. Compile a
static version, but these symbols remain unresolved:

ldd -r _psycopg.cpython-37.so
    linux-vdso.so.1 (0x00007fff4f3c2000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f0eafa27000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0eaf83d000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f0eafadf000)
undefined symbol: PyFloat_Type    (./_psycopg.cpython-37.so)
undefined symbol: PyTuple_Type    (./_psycopg.cpython-37.so)
undefined symbol: PyByteArray_Type    (./_psycopg.cpython-37.so)
undefined symbol: PyBytes_Type    (./_psycopg.cpython-37.so)
undefined symbol: PyExc_Exception    (./_psycopg.cpython-37.so)
undefined symbol: PyExc_ValueError    (./_psycopg.cpython-37.so)
undefined symbol: PyExc_TypeError    (./_psycopg.cpython-37.so)
undefined symbol: PyMemoryView_Type    (./_psycopg.cpython-37.so)
undefined symbol: PyUnicode_DecodeLatin1    (./_psycopg.cpython-37.so)
undefined symbol: PyExc_OSError    (./_psycopg.cpython-37.so)
undefined symbol: _Py_FalseStruct    (./_psycopg.cpython-37.so)
undefined symbol: PyExc_OverflowError    (./_psycopg.cpython-37.so)
undefined symbol: PyType_Type    (./_psycopg.cpython-37.so)
undefined symbol: PyUnicode_DecodeUTF8    (./_psycopg.cpython-37.so)
undefined symbol: _Py_NoneStruct    (./_psycopg.cpython-37.so)
undefined symbol: _Py_TrueStruct    (./_psycopg.cpython-37.so)
undefined symbol: PyExc_IndexError    (./_psycopg.cpython-37.so)
undefined symbol: PyBool_Type    (./_psycopg.cpython-37.so)
undefined symbol: PyLong_Type    (./_psycopg.cpython-37.so)
undefined symbol: _PyObject_NextNotImplemented    (./_psycopg.cpython-37.so)
undefined symbol: PyExc_ImportError    (./_psycopg.cpython-37.so)
undefined symbol: PyUnicode_Type    (./_psycopg.cpython-37.so)
undefined symbol: PyList_Type    (./_psycopg.cpython-37.so)
undefined symbol: PyType_GenericNew    (./_psycopg.cpython-37.so)
undefined symbol: PyUnicode_FromFormat    (./_psycopg.cpython-37.so)
undefined symbol: PyList_New    (./_psycopg.cpython-37.so)
undefined symbol: PyDict_SetItemString    (./_psycopg.cpython-37.so)
undefined symbol: PyModule_AddIntConstant    (./_psycopg.cpython-37.so)
undefined symbol: _PyBytes_Resize    (./_psycopg.cpython-37.so)
undefined symbol: PyErr_Restore    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_ClearWeakRefs    (./_psycopg.cpython-37.so)
undefined symbol: PyEval_RestoreThread    (./_psycopg.cpython-37.so)
undefined symbol: PyMemoryView_FromObject    (./_psycopg.cpython-37.so)
undefined symbol: PyMem_Free    (./_psycopg.cpython-37.so)
undefined symbol: PyErr_SetFromErrno    (./_psycopg.cpython-37.so)
undefined symbol: PyBuffer_Release    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_GetAttrString    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_CallMethodObjArgs    (./_psycopg.cpython-37.so)
undefined symbol: PyDict_Contains    (./_psycopg.cpython-37.so)
undefined symbol: PyUnicode_AsUTF8String    (./_psycopg.cpython-37.so)
undefined symbol: PyBytes_FromStringAndSize    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_SetAttrString    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_HasAttrString    (./_psycopg.cpython-37.so)
undefined symbol: PyErr_NoMemory    (./_psycopg.cpython-37.so)
undefined symbol: PyErr_SetObject    (./_psycopg.cpython-37.so)
undefined symbol: PyErr_NormalizeException    (./_psycopg.cpython-37.so)
undefined symbol: _PyObject_CallFunction_SizeT    (./_psycopg.cpython-37.so)
undefined symbol: PyIter_Next    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_Str    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_RichCompare    (./_psycopg.cpython-37.so)
undefined symbol: PyCodec_Encoder    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_GC_Track    (./_psycopg.cpython-37.so)
undefined symbol: PyNumber_Long    (./_psycopg.cpython-37.so)
undefined symbol: PyErr_GivenExceptionMatches    (./_psycopg.cpython-37.so)
undefined symbol: PyErr_SetString    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_IsInstance    (./_psycopg.cpython-37.so)
undefined symbol: PyMapping_GetItemString    (./_psycopg.cpython-37.so)
undefined symbol: _PyObject_GC_New    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_GetItem    (./_psycopg.cpython-37.so)
undefined symbol: PyUnicode_AsEncodedString    (./_psycopg.cpython-37.so)
undefined symbol: PyTuple_GetItem    (./_psycopg.cpython-37.so)
undefined symbol: PyErr_Print    (./_psycopg.cpython-37.so)
undefined symbol: PyMem_Realloc    (./_psycopg.cpython-37.so)
undefined symbol: PyErr_ExceptionMatches    (./_psycopg.cpython-37.so)
undefined symbol: PySequence_SetItem    (./_psycopg.cpython-37.so)
undefined symbol: PyOS_snprintf    (./_psycopg.cpython-37.so)
undefined symbol: PySequence_GetItem    (./_psycopg.cpython-37.so)
undefined symbol: PyLong_FromSsize_t    (./_psycopg.cpython-37.so)
undefined symbol: PyCapsule_Import    (./_psycopg.cpython-37.so)
undefined symbol: PyType_Ready    (./_psycopg.cpython-37.so)
undefined symbol: PyLong_FromLong    (./_psycopg.cpython-37.so)
undefined symbol: PyDict_GetItem    (./_psycopg.cpython-37.so)
undefined symbol: PyBuffer_FillInfo    (./_psycopg.cpython-37.so)
undefined symbol: PySequence_Size    (./_psycopg.cpython-37.so)
undefined symbol: PyErr_NewException    (./_psycopg.cpython-37.so)
undefined symbol: PyErr_Clear    (./_psycopg.cpython-37.so)
undefined symbol: PySequence_DelSlice    (./_psycopg.cpython-37.so)
undefined symbol: PyList_Append    (./_psycopg.cpython-37.so)
undefined symbol: PyBytes_ConcatAndDel    (./_psycopg.cpython-37.so)
undefined symbol: PyTuple_New    (./_psycopg.cpython-37.so)
undefined symbol: PyThreadState_Get    (./_psycopg.cpython-37.so)
undefined symbol: PyBytes_FromString    (./_psycopg.cpython-37.so)
undefined symbol: PyErr_Occurred    (./_psycopg.cpython-37.so)
undefined symbol: PyModule_Create2    (./_psycopg.cpython-37.so)
undefined symbol: PyLong_AsLong    (./_psycopg.cpython-37.so)
undefined symbol: PyImport_ImportModule    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_CallObject    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_CallFunctionObjArgs    (./_psycopg.cpython-37.so)
undefined symbol: PyDict_GetItemString    (./_psycopg.cpython-37.so)
undefined symbol: _PyObject_CallMethod_SizeT    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_Size    (./_psycopg.cpython-37.so)
undefined symbol: _PyArg_ParseTuple_SizeT    (./_psycopg.cpython-37.so)
undefined symbol: PyFloat_AsDouble    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_IsTrue    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_Hash    (./_psycopg.cpython-37.so)
undefined symbol: PyWeakref_NewRef    (./_psycopg.cpython-37.so)
undefined symbol: _PyArg_ParseTupleAndKeywords_SizeT    (./_
psycopg.cpython-37.so)
undefined symbol: PyDict_New    (./_psycopg.cpython-37.so)
undefined symbol: PyCallable_Check    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_GetBuffer    (./_psycopg.cpython-37.so)
undefined symbol: _PyErr_BadInternalCall    (./_psycopg.cpython-37.so)
undefined symbol: PyWeakref_GetObject    (./_psycopg.cpython-37.so)
undefined symbol: PyDict_Keys    (./_psycopg.cpython-37.so)
undefined symbol: PyErr_Fetch    (./_psycopg.cpython-37.so)
undefined symbol: _PyObject_New    (./_psycopg.cpython-37.so)
undefined symbol: PyUnicode_FromString    (./_psycopg.cpython-37.so)
undefined symbol: PyModule_AddStringConstant    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_GetIter    (./_psycopg.cpython-37.so)
undefined symbol: PyEval_SaveThread    (./_psycopg.cpython-37.so)
undefined symbol: PyModule_AddObject    (./_psycopg.cpython-37.so)
undefined symbol: PyDict_SetItem    (./_psycopg.cpython-37.so)
undefined symbol: round    (./_psycopg.cpython-37.so)
undefined symbol: PyBytes_AsString    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_Repr    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_Call    (./_psycopg.cpython-37.so)
undefined symbol: PyErr_CheckSignals    (./_psycopg.cpython-37.so)
undefined symbol: PyType_IsSubtype    (./_psycopg.cpython-37.so)
undefined symbol: PyTuple_Size    (./_psycopg.cpython-37.so)
undefined symbol: PyErr_Format    (./_psycopg.cpython-37.so)
undefined symbol: _Py_BuildValue_SizeT    (./_psycopg.cpython-37.so)
undefined symbol: PyUnicode_FromStringAndSize    (./_psycopg.cpython-37.so)
undefined symbol: PyBytes_FromFormat    (./_psycopg.cpython-37.so)
undefined symbol: PyModule_GetDict    (./_psycopg.cpython-37.so)
undefined symbol: PyBytes_AsStringAndSize    (./_psycopg.cpython-37.so)
undefined symbol: PyUnicode_FromEncodedObject    (./_psycopg.cpython-37.so)
undefined symbol: PyInterpreterState_Head    (./_psycopg.cpython-37.so)
undefined symbol: PyList_GetItem    (./_psycopg.cpython-37.so)
undefined symbol: PyUnicode_Format    (./_psycopg.cpython-37.so)
undefined symbol: PyLong_FromString    (./_psycopg.cpython-37.so)
undefined symbol: PyMem_Malloc    (./_psycopg.cpython-37.so)
undefined symbol: floor    (./_psycopg.cpython-37.so)
undefined symbol: PyTuple_Pack    (./_psycopg.cpython-37.so)
undefined symbol: PyUnicode_DecodeASCII    (./_psycopg.cpython-37.so)
undefined symbol: PyObject_GC_UnTrack    (./_psycopg.cpython-37.so)
undefined symbol: PyCodec_Decoder    (./_psycopg.cpython-37.so)
undefined symbol: PyDict_Values    (./_psycopg.cpython-37.so)
undefined symbol: PyFloat_FromString    (./_psycopg.cpython-37.so)


The dynamic library that I use in my S.O. It's similar ...

ldd -r _psycopg.cpython-36m-x86_64-linux-gnu.so
    linux-vdso.so.1 (0x00007ffe21d45000)
    libpq-3a62a61f.so.5.11 =>
/usr/local/lib/python3.6/dist-packages/psycopg2/./.libs/libpq-3a62a61f.so.5.11
(0x00007fb514319000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007fb5142d9000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb5140ef000)
    libssl-1d6df745.so.1.0.2p =>
/usr/local/lib/python3.6/dist-packages/psycopg2/./.libs/./libssl-1d6df745.so.1.0.2p
(0x00007fb513e54000)
    libcrypto-1eaa0958.so.1.0.2p =>
/usr/local/lib/python3.6/dist-packages/psycopg2/./.libs/./libcrypto-1eaa0958.so.1.0.2p
(0x00007fb5139d1000)
    libgssapi_krb5-174f8956.so.2.2 =>
/usr/local/lib/python3.6/dist-packages/psycopg2/./.libs/./libgssapi_krb5-174f8956.so.2.2
(0x00007fb513794000)
    libldap_r-2-ac7aff4a.4.so.2.10.7 =>
/usr/local/lib/python3.6/dist-packages/psycopg2/./.libs/./libldap_r-2-ac7aff4a.4.so.2.10.7
(0x00007fb51352c000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fb5147a7000)
    libkrb5-fb0d2caa.so.3.3 =>
/usr/local/lib/python3.6/dist-packages/psycopg2/./.libs/libkrb5-fb0d2caa.so.3.3
(0x00007fb513278000)
    libcom_err-beb60336.so.2.1 =>
/usr/local/lib/python3.6/dist-packages/psycopg2/./.libs/libcom_err-beb60336.so.2.1
(0x00007fb513075000)
    libk5crypto-622ef25b.so.3.1 =>
/usr/local/lib/python3.6/dist-packages/psycopg2/./.libs/libk5crypto-622ef25b.so.3.1
(0x00007fb512e4c000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fb512e44000)
    libz-a147dcb0.so.1.2.3 =>
/usr/local/lib/python3.6/dist-packages/psycopg2/./.libs/libz-a147dcb0.so.1.2.3
(0x00007fb512c2f000)
    libkrb5support-d7ce89d4.so.0.1 =>
/usr/local/lib/python3.6/dist-packages/psycopg2/./.libs/libkrb5support-d7ce89d4.so.0.1
(0x00007fb512a24000)
    libkeyutils-1-ff31573b.2.so =>
/usr/local/lib/python3.6/dist-packages/psycopg2/./.libs/
libkeyutils-1-ff31573b.2.so (0x00007fb512821000)
    libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2
(0x00007fb512806000)
    liblber-2-d7edd0dc.4.so.2.10.7 =>
/usr/local/lib/python3.6/dist-packages/psycopg2/./.libs/././liblber-2-d7edd0dc.4.so.2.10.7
(0x00007fb5125f5000)
    libsasl2-e96a0dbf.so.2.0.22 =>
/usr/local/lib/python3.6/dist-packages/psycopg2/./.libs/././libsasl2-e96a0dbf.so.2.0.22
(0x00007fb5123da000)
    libselinux-cf8f9094.so.1 =>
/usr/local/lib/python3.6/dist-packages/psycopg2/./.libs/libselinux-cf8f9094.so.1
(0x00007fb5121be000)
    libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1
(0x00007fb512184000)
    libsepol-b4f5b513.so.1 =>
/usr/local/lib/python3.6/dist-packages/psycopg2/./.libs/libsepol-b4f5b513.so.1
(0x00007fb511f3c000)
undefined symbol: PyFloat_Type    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyTuple_Type    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyByteArray_Type    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyBytes_Type    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyExc_Exception    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyExc_ValueError    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyExc_TypeError    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyMemoryView_Type    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyUnicode_DecodeLatin1    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyExc_OSError    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: _Py_FalseStruct    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyExc_OverflowError    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyType_Type    (./_psycopg.cpython-36m-x86_64-linux-gnu.so
)
undefined symbol: PyUnicode_DecodeUTF8    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: _Py_NoneStruct    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: _Py_TrueStruct    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyExc_IndexError    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyBool_Type    (./_psycopg.cpython-36m-x86_64-linux-gnu.so
)
undefined symbol: PyLong_Type    (./_psycopg.cpython-36m-x86_64-linux-gnu.so
)
undefined symbol: _PyObject_NextNotImplemented    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyExc_ImportError    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyUnicode_Type    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyList_Type    (./_psycopg.cpython-36m-x86_64-linux-gnu.so
)
undefined symbol: PyType_GenericNew    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyUnicode_FromFormat    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyList_New    (./_psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyDict_SetItemString    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyModule_AddIntConstant    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: _PyBytes_Resize    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyErr_Restore    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_ClearWeakRefs    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: lround    (./_psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyEval_RestoreThread    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyMemoryView_FromObject    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyMem_Free    (./_psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyErr_SetFromErrno    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyBuffer_Release    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_GetAttrString    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_CallMethodObjArgs    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyDict_Contains    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyUnicode_AsUTF8String    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyBytes_FromStringAndSize    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_SetAttrString    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_HasAttrString    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyErr_NoMemory    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyErr_SetObject    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyErr_NormalizeException    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: _PyObject_CallFunction_SizeT    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyIter_Next    (./_psycopg.cpython-36m-x86_64-linux-gnu.so
)
undefined symbol: PyObject_Str    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_RichCompare    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyCodec_Encoder    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_GC_Track    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyNumber_Long    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyErr_GivenExceptionMatches    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyErr_SetString    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_IsInstance    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyMapping_GetItemString    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: _PyObject_GC_New    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_GetItem    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyUnicode_AsEncodedString    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyTuple_GetItem    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyErr_Print    (./_psycopg.cpython-36m-x86_64-linux-gnu.so
)
undefined symbol: PyMem_Realloc    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyErr_ExceptionMatches    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PySequence_SetItem    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyOS_snprintf    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PySequence_GetItem    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyLong_FromSsize_t    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyCapsule_Import    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyType_Ready    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyLong_FromLong    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyDict_GetItem    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyBuffer_FillInfo    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PySequence_Size    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyErr_NewException    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyErr_Clear    (./_psycopg.cpython-36m-x86_64-linux-gnu.so
)
undefined symbol: PySequence_DelSlice    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyList_Append    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyBytes_ConcatAndDel    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyTuple_New    (./_psycopg.cpython-36m-x86_64-linux-gnu.so
)
undefined symbol: PyThreadState_Get    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyBytes_FromString    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyErr_Occurred    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyModule_Create2    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyLong_AsLong    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyImport_ImportModule    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_CallObject    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_CallFunctionObjArgs    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyDict_GetItemString    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: _PyObject_CallMethod_SizeT    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_Size    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: _PyArg_ParseTuple_SizeT    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyFloat_AsDouble    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_IsTrue    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_Hash    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyWeakref_NewRef    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: _PyArg_ParseTupleAndKeywords_SizeT    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyDict_New    (./_psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyCallable_Check    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_GetBuffer    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: _PyErr_BadInternalCall    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyWeakref_GetObject    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyDict_Keys    (./_psycopg.cpython-36m-x86_64-linux-gnu.so
)
undefined symbol: PyErr_Fetch    (./_psycopg.cpython-36m-x86_64-linux-gnu.so
)
undefined symbol: _PyObject_New    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyUnicode_FromString    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyModule_AddStringConstant    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_GetIter    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyEval_SaveThread    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyModule_AddObject    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyDict_SetItem    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: round    (./_psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyBytes_AsString    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_Repr    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_Call    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyErr_CheckSignals    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyType_IsSubtype    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyTuple_Size    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyErr_Format    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: _Py_BuildValue_SizeT    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyUnicode_FromStringAndSize    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyBytes_FromFormat    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyModule_GetDict    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyBytes_AsStringAndSize    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyUnicode_FromEncodedObject    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyInterpreterState_Head    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyList_GetItem    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyUnicode_Format    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyLong_FromString    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyMem_Malloc    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: floor    (./_psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyTuple_Pack    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyUnicode_DecodeASCII    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyObject_GC_UnTrack    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyCodec_Decoder    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyDict_Values    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)
undefined symbol: PyFloat_FromString    (./_
psycopg.cpython-36m-x86_64-linux-gnu.so)

I understand that these symbols, should be provided by the python copy that
is embedded in the binary
and is not a problem of external dependencies.

https://docs.python.org/3/c-api/structures.html#c.PyObject



This is the content of my sysroot file:

{
    "Description": "Pineboo",

    "android|macos|win#openssl": {
        "android#source":   "openssl-1.0.*.tar.gz",
    "macos|win#source": "openssl-1.1.*.tar.gz"
    },

    "qt5": {
        "android#qt_dir":           "/opt/Qt5.*/*/android_armv7",
    "linux#qt_dir":           "/opt/Qt5.*/*/gcc_64",
        "ios#qt_dir":               "Qt/*/ios",
    "win#qt_dir":            "win64-mxe/usr/x86_64-w64-mingw32.static/qt5",

        "macos#source":   "qt-everywhere-*-src-5.*.tar.xz",

        "android|linux#ssl":        "openssl-runtime",
        "ios#ssl":                  "securetransport",
        "macos|win#ssl":            "openssl-linked",

        "static_msvc_runtime":      true
    },

    "python": {
        "build_host_from_source":   true,
        "build_target_from_source": true,
    "dynamic_loading":         true,
        "source":                   "Python-3.7.*.tar.xz"
    },

    "sip": {
    "module_name":  "PyQt5.sip",
        "source":   "sip-4.*.tar.gz"
    },

    "pyqt5": {
        "android#disabled_features":    [
                "PyQt_Desktop_OpenGL", "PyQt_Printer", "PyQt_PrintDialog",
                "PyQt_PrintPreviewDialog", "PyQt_PrintPreviewWidget"
        ],
        "android#modules":              [
                "QtCore", "QtGui", "QtXml", "QtNetwork", "QtPrintSupport",
"QtWidgets",
                "QtAndroidExtras"
        ],

        "ios#disabled_features":        [
                "PyQt_Desktop_OpenGL", "PyQt_MacOSXOnly",
                "PyQt_MacCocoaViewContainer", "PyQt_Printer",
                "PyQt_PrintDialog", "PyQt_PrintPreviewDialog",
                "PyQt_PrintPreviewWidget", "PyQt_Process",
                "PyQt_NotBootstrapped"
        ],
        "ios|macos#modules":            [
                "QtCore", "QtGui", "QtXml","QtNetwork", "QtPrintSupport",
"QtWidgets",
                "QtMacExtras"
        ],

        "linux#modules":                [
                "QtCore", "QtGui", "QtXml","QtNetwork", "QtPrintSupport",
"QtWidgets",
                "QtX11Extras","QtSvg"
        ],

        "win#disabled_features":        ["PyQt_Desktop_OpenGL"],
        "win#modules":                  [
                "QtCore", "QtGui", "QtXml","QtNetwork", "QtPrintSupport",
"QtWidgets",
                "QtWinExtras"
        ],

        "source":                   "PyQt5_*-5.*.tar.gz"
    }
}




How could I solve it, I still need to add something to the project? I have
to set a special path in the environment variables ?.

Thank you very much for the help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20181206/76abfaa7/attachment-0001.html>


More information about the PyQt mailing list