Write a hook to import the missing class/module. Try using: hiddenimports = [ "blah...blah.DynamicUILoader" ]
See if that addresses it for you. Look at some of the existing hooks and see if the hiddenimports deal works. You may have to play with it. Greg On Aug 21, 9:57 am, ak <[EMAIL PROTECTED]> wrote: > hi. > > attached to this mail is test-code and an ui-file. when using pyinstaller(on > windows) the resulting binary will fail to import a class from PyQt4.uic > > can anyone reproduce the error? > > cheers, > > alexander > > hmpf.py > 1KDownload > > [untitled.ui]<ui version="4.0" > > <class>Dialog</class> > <widget class="QDialog" name="Dialog" > > <property name="geometry" > > <rect> > <x>0</x> > <y>0</y> > <width>400</width> > <height>300</height> > </rect> > </property> > <property name="windowTitle" > > <string>Dialog</string> > </property> > <widget class="QDialogButtonBox" name="buttonBox" > > <property name="geometry" > > <rect> > <x>30</x> > <y>240</y> > <width>341</width> > <height>32</height> > </rect> > </property> > <property name="orientation" > > <enum>Qt::Horizontal</enum> > </property> > <property name="standardButtons" > > > <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set> > </property> > </widget> > </widget> > <resources/> > <connections> > <connection> > <sender>buttonBox</sender> > <signal>accepted()</signal> > <receiver>Dialog</receiver> > <slot>accept()</slot> > <hints> > <hint type="sourcelabel" > > <x>248</x> > <y>254</y> > </hint> > <hint type="destinationlabel" > > <x>157</x> > <y>274</y> > </hint> > </hints> > </connection> > <connection> > <sender>buttonBox</sender> > <signal>rejected()</signal> > <receiver>Dialog</receiver> > <slot>reject()</slot> > <hints> > <hint type="sourcelabel" > > <x>316</x> > <y>260</y> > </hint> > <hint type="destinationlabel" > > <x>286</x> > <y>274</y> > </hint> > </hints> > </connection> > </connections> > </ui> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
