I follow the instructions for building desktop applications. with python and qt4, I downloaded and installed qt creator ide, created a .ui file, and then I had to convert it with pyuic4, I tried a lot of things and can't do it.
I thought pyuic4 would be installed with the Qt creator IDE, but it doesn't seem to be that way, so I installed pyqt through macports:
sudo port install py26-pyqt4
I did not know, but it was with qt, so there were about 3 hours of its creation.
after installing it, I tried to convert .ui again:
$ pyuic4-2.6 principal.ui -o prin.py Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyQt4/uic/pyuic.py", line 4, in <module> from PyQt4 import QtCore ImportError: No module named PyQt4
No module named PyQt4? wasn’t what I just installed?
Thank you, and sorry if my English is not 100% good.
source share