Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2250

pyside6-designer object 'libpython3.10.so' from LD_PRELOAD cannot be preloaded in virtual environment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 6.4.2
    • PySide
    • None
    • Ubuntu 22.04.2
      Python 3.10.10
      PySide 6.4.2
    • Linux/Wayland, Linux/X11, Linux/Yocto, Linux/Other display system

    Description

      By default, the virtual environment does not copy libpythonX.X.so to the .venv/lib/ directory. Thus, with the venv activated, running pyside6-designer would showing the following error.

       

      Error: ERROR: ld.so: object 'libpython3.10.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. 

      This might affect the ability to load custom widgets in Qt Designer.

      Steps to Reproduce with Poetry (to create virtual environment):

      1. Create a virtual environment by 'python -m venv ./test/.venv'
      2. Activate the virtual environment by 'source ./test/.venv/bin/activate'
      3. Invoke 'pyside6-designer' in the activated virtual environment
      4. No plugins and custom widgets are loaded
      5. Close the designer GUI app
      6. The error mentioned above shows in the terminal after the app exited

      This behavior is mentioned in https://github.com/python/cpython/issues/87500 from the official repo.

      Attachments

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            alan13wake Sean Wu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: