title: PyInstaller error with PyQt when trying to build --onefile
body: <p>I'm trying to compile a PyQt program using PyInstaller 1.5. Both of the following programs work fine for me when I use --onedir (the default), but this creates rather large programs. I want to use the --onefile option, but when I run the created onefile app, I get the error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;string&gt;", line 11, in &lt;module&gt;
    File "pyinstaller/PyInstaller/loader/iu.py", line 468, in importHook
  raise ImportError("No module named %s" % fqname)
  ImportError: No module named PyQt4.QtCore
  </code></pre>
  
  <p>This error occurs for both this:</p>
  
  <pre><code>import sys 
  from PyQt4 import QtCore, QtGui 
  
  app =QtGui.QApplication(sys.argv) 
  window =QtGui.QMainWindow() 
  window.setCentralWidget(QtGui.QLabel("Hello")) 
  window.show() 
  sys.exit(app.exec_()) 
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>import sys
  import PyQt4.QtCore, PyQt4.QtGui 
  
  app = PyQt4.QtGui.QApplication(sys.argv) 
  window = PyQt4.QtGui.QMainWindow() 
  window.setCentralWidget(PyQt4.QtGui.QLabel("Hello")) 
  window.show() 
  sys.exit(app.exec_()) 
  </code></pre>
  
  <p>Does anyone have any ideas?</p>