Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. "Error while finding spec for PyQt5.uic.pyuicr" while converting -ui file to .py

"Error while finding spec for PyQt5.uic.pyuicr" while converting -ui file to .py

Scheduled Pinned Locked Moved General and Desktop
pyqt5errorqt5pyuic5
1 Posts 1 Posters 2.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zandar
    wrote on last edited by zandar
    #1

    Hi,
    I'm a very beginner and I'm trying to make my first Qt application but I'm stuck with the very first step of converting the .ui file created with QT Designer into a .py file.
    I'm on windows 8 pro, python 3.4.3-x32, Qt 5.4.1 x32 and PyQT 5.4.1-Py3.4-Qt5.4.1-x32, with their dirs in the system path. PYTHONPATH is c:\python34.
    In a terminal window, from the directory containing the .ui file I run this command:

    pyuic5 -x mainform.ui -o mainform.py

    This raise the error::
    C:\python34\python.exe: Error while finding spec for 'PyQt5.uic.pyuic' (<class 'ImportError'>: No module named 'PyQt.uic.port_v3')

    Searching on Google for this kind of error gives only one result, so it seem quite an unusual situation.
    I tried to uninstall and reinstall all (python, Qt and PyQt, in this order) but the error does persist.
    Could somebody help me to solve this issue?

    Thanks in advance

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved