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

ImportError: libQt6Core.so.6 when import PySide6.QtCore on python:3.8-slim-bullseye

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.5.1.1
    • PySide
    • None
    • docker python:3.8-slim-bullseye
    • Linux/X11

      When importing pySide6.QtCore, the library libQt6Core.so.6 cannot be found.  

      To reproduce:

      docker run -it --rm python:3.8-slim-bullseye bash
      Unable to find image 'python:3.8-slim-bullseye' locally
      3.8-slim-bullseye: Pulling from library/python
      9d21b12d5fab: Already exists
      40b9e4b957ee: Pull complete
      bc34c42614f4: Pull complete
      b7fea7b0ca3b: Pull complete
      836510502716: Pull complete
      Digest: sha256:8a480b6d42f10928986a503e03a1a492068c6fc71538ae9ca2cbb9279d6f1552
      Status: Downloaded newer image for python:3.8-slim-bullseye
      root@f977d34b0db4:/# pip install pyside6
      Collecting pyside6
        Downloading PySide6-6.5.1.1-cp37-abi3-manylinux_2_28_x86_64.whl (6.7 kB)
      Collecting PySide6-Addons==6.5.1.1
        Downloading PySide6_Addons-6.5.1.1-cp37-abi3-manylinux_2_28_x86_64.whl (126.2 MB)
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 126.2/126.2 MB 16.4 MB/s eta 0:00:00
      Collecting shiboken6==6.5.1.1
        Downloading shiboken6-6.5.1.1-cp37-abi3-manylinux_2_28_x86_64.whl (173 kB)
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 173.9/173.9 kB 41.4 MB/s eta 0:00:00
      Collecting PySide6-Essentials==6.5.1.1
        Downloading PySide6_Essentials-6.5.1.1-cp37-abi3-manylinux_2_28_x86_64.whl (80.9 MB)
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.9/80.9 MB 13.9 MB/s eta 0:00:00
      Installing collected packages: shiboken6, PySide6-Essentials, PySide6-Addons, pyside6
      Successfully installed PySide6-Addons-6.5.1.1 PySide6-Essentials-6.5.1.1 pyside6-6.5.1.1 shiboken6-6.5.1.1
      WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv[notice] A new release of pip is available: 23.0.1 -> 23.1.2
      [notice] To update, run: pip install --upgrade pip
      root@f977d34b0db4:/# python -c 'import PySide6.QtCore'
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
      ImportError: libQt6Core.so.6: cannot open shared object file: No such file or directory
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            crmaurei Cristian Maureira-Fredes
            gaetan Gaetan Schneller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes