[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#963709: pyside2: FTBFS with Qt 5.14: 'PySide2.QtCore.QDate' called with wrong argument types: PySide2.QtCore.QDate(date)



On Fri, Jun 26, 2020 at 03:27:58PM +0300, Dmitry Shachnev wrote:
> I tried to debug it, and found out that for some reason
> __glXLookupVendorByName("mesa") fails, so __glXLookupVendorByScreen
> falls back to FALLBACK_VENDOR_NAME (= "indirect") which does not work
> properly. No time to debug further...
>
> This issue happens with PySide and PyQt programs, but not with C++.
> Maybe it's the same issue as #960073.

Some more information on this: it looks like dlopen'ing libGLX_mesa.so.0
returns NULL (src/GLX/libglxmapping.c:430).

LD_PRELOAD'ing that library helps. Adding the following two lines to top
of web_engine_initialize.py also helps:

import ctypes
ctypes.CDLL('libGLX_mesa.so.0', ctypes.RTLD_GLOBAL)

I can't say why dlopen fails without that, though.

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature


Reply to: