phaplt / winpython

Automatically exported from code.google.com/p/winpython
0 stars 0 forks source link

Unable to use pyuic, fixed with __init__.py in port_v2 folder #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to run pyuic in order to compile a pyqt ui file into a py file

What is the expected output? What do you see instead?
Expect pyuic to generate a py file from the ui file.

Instead get an import error:
from PyQt4.uic.port_v2.ascii_upper import ascii_upper
ImportError: No module named port_v2.ascii_upper

What version of the product are you using? On what operating system?
WinPython Beta 3 and Beta 5

Please provide any additional information below.
Was able to solve by adding an empty __init__.py to 
...\python-2.7.3\Lib\site-packages\PyQt4\uic\port_v2
Adding the __init__.py file allows the "port_v2" folder to be recognized as a 
module.

Original issue reported on code.google.com by flutefre...@gmail.com on 6 Sep 2012 at 8:39

GoogleCodeExporter commented 9 years ago
Thanks for the feedback. 

I remember fixing the exact same issue for Python(x,y) PyQt4 plugin but I 
completely forgot to handle this for WinPython as I'm using the official PyQt 
installer which is made that way (I wonder how or if it works when installing 
it the conventional way). I'll handle this issue in WPPM directly. 

Original comment by pierre.raybaut on 6 Sep 2012 at 8:50

GoogleCodeExporter commented 9 years ago
This issue was closed by revision d1182a963a4c.

Original comment by pierre.raybaut on 13 Sep 2012 at 7:33