[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Error using PyUIC from eclipse
From:       Steve Simmons <square.steve () gmail ! com>
Date:       2014-04-29 22:03:32
Message-ID: 536021B4.2 () gmail ! com
[Download RAW message or body]

[Attachment #2 (text/html)]

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font size="-1"><font face="Bitstream Vera Sans">I'm trying to set
        up a new dev environment using Windows 7; Eclipse Kepler; Python
        3.3, PyDev and PyQt 5 and I'm having issues getting PyUIC to
        generate a python Qt class.&nbsp; I tried this on Qt4 a week or so ago
        and it worked OK but Qt5 is giving me an error message.<br>
        <br>
        I'm using the following setup process (from Google Groups)&nbsp;
        mdoified to match my PyQt5 configuration:<br>
        <br>
      </font></font><font size="-1"><font face="Bitstream Vera Sans">1.
        Click Run -&gt; External Tools -&gt; External Tools
        Configurations ...
        <br>
        2. In the resulting dialog, click 'New' icon in the top left
        <br>
        3. Under 'Name' put 'PyUIC'
        <br>
        4. Under 'Location' enter 'C:\Program
        Files\Python\2.5\Python.exe' or
        <br>
        the path to your Python executable (probably
        C:\Python25\Python.exe)
        <br>
        5. Under 'Arguments' enter '"C:\Program
        Files\Python\2.5\Lib\site-
        <br>
        packages\PyQt4\uic\pyuic.py" &nbsp;"${resource_loc}"' substituting
        the path
        <br>
        to your PyQt4 installation - be sure also to include the double
        quotes
        <br>
        6. Change to the 'Common' tab and check 'File' under 'Standard
        Input/
        <br>
        Output' and enter '${resource_loc}.py'
        <br>
        7. Change to the 'Build' tab and uncheck 'Build before launch'
        <br>
        8. Change to the 'Refresh' tab and check 'Refresh resources upon
        <br>
        completion'
        <br>
        9. Click 'Apply' then 'Run'
        <br>
        <br>
        <br>
        and I'm getting the following traceback:<br>
        <br>
        Traceback (most recent call last):<br>
        &nbsp; File
        "D:\Development\Python33\Lib\site-packages\PyQt5\uic\pyuic.py",
        line 28, in &lt;module&gt;<br>
        &nbsp;&nbsp;&nbsp; from .driver import Driver<br>
        SystemError: Parent module '' not loaded, cannot perform
        relative import<br>
        <br>
        I'm relatively new to Python so I'd appreciate some
        help/pointers please<br>
        <br>
        Steve Simmons<br>
      </font></font>
  </body>
</html>

[Attachment #3 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic