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

pyside2uic of pyside-tools installs for Python 3 only

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • None
    • PySide
    • None
    • Linux/X11

    Description

      When installing pyside2-tools in Ubuntu 16.04 using the pyside2-tools package by Thomas Pietrowski and pyside2uic Python module gets installed for Python 3... even thought it is completely unusable that way.

      This causes the pyside2-uic executable to complain about not finding the pyside2uic module:

      Traceback (most recent call last):
        File "/usr/bin/pyside2-uic", line 28, in <module>
          from pyside2uic.driver import Driver
      ImportError: No module named pyside2uic.driver
      

       

      This was reported here before, but is still not fixed:

      https://bugreports.qt.io/browse/PYSIDE-356

      Here is a docker file to reproduce the error:

      FROM ubuntu:16.04
      
      RUN apt-get update \
       && apt-get install --yes \
            software-properties-common \
       && add-apt-repository -y ppa:thopiekar/pyside-git \
       && apt-get update \
       && apt-get install --yes \
            pyside2-tools \
       && rm -rf /var/lib/apt/lists/*
      
      #RUN cp -r /usr/lib/python3/dist-packages/pyside2uic /usr/local/lib/python2.7/dist-packages
      
      RUN pyside2-uic --help
      

      Adding the commented out line makes it work.

       

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            brugger Christian Brugger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes