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

Compiler module missing from pyside2uic



    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: dev
    • Fix Version/s: 5.6, 5.11.0
    • Component/s: PySide
    • Labels:
    • Commits:
      c50004a5fec7bebaa957596a91a43959c85da8a5 (pyside-setup/5.6, 17.1.2018, 5.6)


      The pyside2uic Python module is installed when pip installing the PySide2 wheel built from pyside-setup. It's just that the Compiler module isn't included.

      Here I'm trying to execute the pyside2-uic executable in Ubuntu 14.04:

      $ pyside2-uic 
      Traceback (most recent call last):
        File "/usr/local/bin/pyside2-uic", line 7, in <module>
          from PySide2.scripts.uic import main
        File "/usr/local/lib/python2.7/dist-packages/PySide2/scripts/uic.py", line 28, in <module>
          from pyside2uic.driver import Driver
        File "/usr/local/lib/python2.7/dist-packages/pyside2uic/__init__.py", line 27, in <module>
          from pyside2uic.Compiler import indenter, compiler
      ImportError: No module named Compiler

      I'm also seeing this on OS X. Here's how you can repro this in Ubuntu 14.04:

      $ apt-get install wget python-pip python-dev software-properties-common
      $ add-apt-repository ppa:beineri/opt-qt561-trusty
      $ apt-get update
      $ apt-get install qt56-meta-full
      $ . /opt/qt56/bin/qt56-env.sh
      $ wget https://bintray.com/fredrikaverpil/pyside2-wheels/download_file?file_path=ubuntu14.04%2FPySide2-2.0.0.dev0-cp27-none-linux_x86_64.whl -O PySide2-2.0.0.dev0-cp27-none-linux_x86_64.whl
      $ pip install PySide2-2.0.0.dev0-cp27-none-linux_x86_64.whl
      $ pyside2-uic

      The wheel comes from my wheel building Github repo (Travis CI builds the wheels): https://github.com/fredrikaverpil/pyside2-wheels/
      You can review the complete build log in Travis CI.

      The bintray holding the wheels: https://bintray.com/fredrikaverpil/pyside2-wheels/pyside2/2.0.0.dev0#files


        For Gerrit Dashboard: PYSIDE-357
        # Subject Branch Project Status CR V



            • Assignee:
              kleint Friedemann Kleint
              fredrikaverpil Fredrik Averpil
            • Votes:
              1 Vote for this issue
              3 Start watching this issue


              • Created:

                Gerrit Reviews

                There is 1 open Gerrit change