The following small example will reproduce the error:
from PyQt4 import QtGui, QtCore
import sys
def main():
app = QtGui.QApplication(sys.argv)
window = QtGui.QMainWindow()
window.show()
sys.exit(app.exec_())
if __name__ == '__main__':
main()
Yifei
On Sun, Apr 15, 2012 at 4:25 PM, Yifei Li <[email protected]> wrote:
> Thanks. I downloaded the latest version from Github.
>
> However, I had a different error when I tried to run the binary:
>
> Traceback (most recent call last):
> File "<string>", line 21, in <module>
> File
> "C:\Users\yifli\Downloads\pyinstaller-devel\PyInstaller\loader\iu.py", line
> 409, in importHook
> raise ImportError("No module named %s" % fqname)
> ImportError: No module named PyQt4.QtCore
>
> I replaced all the occurrences of 'from PyQt4.QtCore import' with 'from
> PyQt4 import QtCore', and then did a grep for 'PyQt4.QtCore' to make sure
> nothing is left. I removed all *.pyc files.
>
> But I still got the same error. Could you please help me fix this issue?
>
> Thanks
>
> Yifei
>
> On Sun, Apr 15, 2012 at 3:53 PM, Hartmut Goebel <
> [email protected]> wrote:
>
>> Am 15.04.2012 20:29, schrieb Yifei Li:
>> > I had the same error when I tried to run the binary generated on Mac
>> > OS Lion ( I checked out pyinstaller revision 1899 ).
>>
>> PyInstaller lives on Github since start of the year, so there is no
>> "revision 1899" anymore. Please get the recent development from github.
>>
>> If this does not solve the problem, please see the FAQ about what you
>> can do yourself or what information we need to help you soling your
>> problem.
>>
>> --
>> Schönen Gruß - Regards
>> Hartmut Goebel
>> Dipl.-Informatiker (univ.), CISSP, CSSLP
>>
>> Goebel Consult
>> Spezialist für IT-Sicherheit in komplexen Umgebungen
>> http://www.goebel-consult.de
>>
>> Monatliche Kolumne: http://www.cissp-gefluester.de/
>> Goebel Consult ist Mitglied bei http://www.7-it.de
>>
>>
>>
>
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.