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

qtpip not working correctly with conda environment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.7.1
    • PySide
    • None
    • Windows

    Description

      When installing pyside6 commercial inside conda, at the start there is an odd error about not being in a virtual environment:

      (venvqt) PS C:\Users\USER\PycharmProjects\qtTestCommercialLicenseProject> qtpip install pyside6 --force-reinstall
      [WARNING] You are not using a virtual environment.
      [INFO] Commercial License found
      [INFO] Starting downloading wheels
      [INFO] Downloading wheels (1/4) : "6.7.1-202405240857PySide6-6.7.1.commercial-cp39-abi3-win_amd64.whl.7z"
      [INFO] Downloading wheels (2/4) : "6.7.1-202405240857shiboken6-6.7.1.commercial-cp39-abi3-win_amd64.whl.7z"
      [INFO] Downloading wheels (3/4) : "6.7.1-202405240857PySide6_Essentials-6.7.1.commercial-cp39-abi3-win_amd64.whl.7z"
      [INFO] Downloading wheels (4/4) : "6.7.1-202405240857PySide6_Addons-6.7.1.commercial-cp39-abi3-win_amd64.whl.7z"
      [INFO] Unpacking packages for installing them, this might take some seconds.
      Processing c:\users\USER\appdata\local\qtpip\cache\qtforpython\6.7.1\pyside6-6.7.1.commercial-cp39-abi3-win_amd64.whl
      Processing c:\users\USER\appdata\local\qtpip\cache\qtforpython\6.7.1\shiboken6-6.7.1.commercial-cp39-abi3-win_amd64.whl
      Processing c:\users\USER\appdata\local\qtpip\cache\qtforpython\6.7.1\pyside6_essentials-6.7.1.commercial-cp39-abi3-win_amd64.whl
      Processing c:\users\USER\appdata\local\qtpip\cache\qtforpython\6.7.1\pyside6_addons-6.7.1.commercial-cp39-abi3-win_amd64.whl
      Installing collected packages: shiboken6, PySide6-Essentials, PySide6-Addons, PySide6
        Attempting uninstall: shiboken6
          Found existing installation: shiboken6 6.7.1+commercial
          Uninstalling shiboken6-6.7.1+commercial:
            Successfully uninstalled shiboken6-6.7.1+commercial
        Attempting uninstall: PySide6-Essentials
          Found existing installation: PySide6_Essentials 6.7.1+commercial
          Uninstalling PySide6_Essentials-6.7.1+commercial:
        Attempting uninstall: PySide6-Addons
          Found existing installation: PySide6_Addons 6.7.1+commercial
          Uninstalling PySide6_Addons-6.7.1+commercial:
            Successfully uninstalled PySide6_Addons-6.7.1+commercial
        Attempting uninstall: PySide6
          Found existing installation: PySide6 6.7.1+commercial
          Uninstalling PySide6-6.7.1+commercial:
            Successfully uninstalled PySide6-6.7.1+commercial
      Successfully installed PySide6-6.7.1+commercial PySide6-Addons-6.7.1+commercial PySide6-Essentials-6.7.1+commercial shiboken6-6.7.1+commercial

      Afterwards inside PIP list i can see it installed correctly, but it is not available under conda list.

      When running the application i get the following error:

      Traceback (most recent call last):
        File "C:\Users\USER\PycharmProjects\qtTestCommercialLicenseProject\main.py", line 1, in <module>
          from PySide6 import QtWidgets
      ModuleNotFoundError: No module named 'PySide6

      Because of this issue i am not able to actually use QT inside conda which is pretty much blocking for the project.
      Is there maybe a workaround available for using it with conda?

      Attachments

        Issue Links

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

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              knowndead Gerdtinus Netten
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes