All,

I answered my own question: PyInstaller does support pkgutil.iter_modules,
assuming the source .py files are available. I'll pass on a pull request to
make this easier to do.

I modified the hook-PyQt4.QtWebKit.py, but it's not getting called, even
when QtWebKit is included. I'm stuck trying to figure that out. Any ideas?

Bryan


On Mon, Nov 25, 2013 at 3:16 PM, Bryan A. Jones <[email protected]>wrote:

> All,
>
> When freezing an app for Windows that searches for the imports plug-in
> modules at run time, I noticed that pkgutil.iter_modules from the Python
> standard library returned an empty tuple, while running it un-frozen
> returned a populated tuple. Should I work this up into a more formal bug
> report / test case, or is this an area of the standard library that
> PyInstaller can't / won't support?
>
> On a related side note, PyQt4 code
> (C:\Python27\Lib\site-packages\PyQt4\uic\objcreator.py line 73) attempts to
> do something similar (dynamically discover modules), which also fails when
> frozen. IMHO, PyInstaller can't support this case, since PyQt4 is using
> os.listdir on .py files, which when frozen get packing into an archive.
> Therefore, PyQt4.uic.loadUi files for these dynamically-loaded widgets
> (phonon, qaxcontainer, qscintilla, qtdeclarative, qtwebkit, and qwt).
>
> Bryan
> --
> Bryan A. Jones, Ph.D.
> Associate Professor
> Department of Electrical and Computer Engineering
> 231 Simrall / PO Box 9571
> Mississippi State University
> Mississippi state, MS 39762
> http://www.ece.msstate.edu/~bjones
> bjones AT ece DOT msstate DOT edu
> voice 662-325-3149
> fax 662-325-2298
>
> Our Master, Jesus Christ, is on his way. He'll show up right on
> time, his arrival guaranteed by the Blessed and Undisputed Ruler,
> High King, High God.
> - 1 Tim. 6:14b-15 (The Message)
>



-- 
Bryan A. Jones, Ph.D.
Associate Professor
Department of Electrical and Computer Engineering
231 Simrall / PO Box 9571
Mississippi State University
Mississippi state, MS 39762
http://www.ece.msstate.edu/~bjones
bjones AT ece DOT msstate DOT edu
voice 662-325-3149
fax 662-325-2298

Our Master, Jesus Christ, is on his way. He'll show up right on
time, his arrival guaranteed by the Blessed and Undisputed Ruler,
High King, High God.
- 1 Tim. 6:14b-15 (The Message)

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to