py2exe, PyQT, QtWebKit and jpeg problem
carbonimax at gmail.com
Mon Jun 23 14:51:48 CEST 2008
On Jun 21, 12:21 am, David Boddie <da... at boddie.org.uk> wrote:
> On Friday 20 June 2008 17:24, Phil Thompson wrote:
> > On Fri, 20 Jun 2008 08:04:57 -0700 (PDT),Carbonimax
> > <carboni... at gmail.com> wrote:
> >> I have a problem with py2exe and QtWebKit :
> >> I make a program with a QtWebKit view.
> >> If I launch the .py directly, all images (jpg, png) are displayed but
> >> if I compile it with py2exe I have only png images. No jpg !
> >> No error message, nothing.
> >> Have you a solution ? Thank you.
> > At a guess, the JPEG support is implemented as a Qt plugin which you are
> > not including.
> Yes, that would appear to the be most obvious cause. See here for another
> report about this:
How can I do that ?
If I copy the dll in the dist directory, and I use QLibrary() and
it does work in the .py but it doesn't in .exe made with py2exe
my code :
dll = QLibrary(path_to_dll)
res = dll.load()
res == true in the .py
res == false in the .exe
More information about the Python-list