<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. 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)
mdoified to match my PyQt5 configuration:<br>
<br>
</font></font><font size="-1"><font face="Bitstream Vera Sans">1.
Click Run -> External Tools -> 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" "${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>
File
"D:\Development\Python33\Lib\site-packages\PyQt5\uic\pyuic.py",
line 28, in <module><br>
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>