[PyQt] Images not showing in WebView after cx_Freeze
Hans-Peter Jansen
hpj at urpla.net
Mon Jan 3 11:19:57 GMT 2011
On Monday 03 January 2011, 11:41:22 Mikael Modin wrote:
> Hi,
>
> Just thought I'd ask you a favor, it seems it doesn't handle
> everything automatically. pyInstaller seem to have the same problems
> as cx_Freeze without a fix, doesn't recognise that I'm using
> QtWebKit, I get this:
>
> File "d:\code\pyinstaller-1.5-rc1\iu.py", line 455, in importHook
> raise ImportError, "No module named %s" % fqname
> ImportError: No module named QtWebKit
Check out the current svn, please. If that fails, there's an ML here:
http://groups.google.com/group/pyinstaller?hl=en
Please attach a full build log, when reporting there.
Pete
> Kind regards,
> Mikael
>
> On 3 January 2011 21:09, Mikael Modin <micke.modin at gmail.com> wrote:
> > Hi,
> >
> >
> > As I understood it png support is built-in and doesn't need a
> > module for that. Might have changed since that mail thread was
> > written though.
> >
> > I will look into pyInstaller as well then.
> >
> > /Mikael
> >
> > On 3 January 2011 21:03, Hans-Peter Jansen <hpj at urpla.net> wrote:
> >> On Monday 03 January 2011, 04:10:08 Mikael Modin wrote:
> >>> Hi,
> >>>
> >>> I'm currently developing a small tool for taking and sending
> >>> screnshots, time-reporting for freelancers, and am using
> >>> cx_Freeze to avoid having the users install python, pyqt and all
> >>> other dependencies.
> >>>
> >>> The problem I'm having is that after running the code through
> >>> cx_Freeze images on a web page doesn't seem to work.
> >>> 1) All I get is the grey box with a question mark inside of it.
> >>> 2) The same setup works when I run the python code by itself
> >>> without cx_Freeze. 3) Loading a local html-page that just
> >>> contains an img-tag works fine, so the actual image loading and
> >>> showing seem to work fine. Loading Google and that works, so
> >>> images over network work fine. The server send the images in png
> >>> format.
> >>>
> >>> These three combined leave me very confused. Has anybody else had
> >>> any similar trouble?
> >>
> >> Most probably, your app suffers from missing Qt image format
> >> plugins, or, equally likely, cx_freeze failed to include them in a
> >> way, that Qt is able to use them properly.
> >>
> >> You might try PyInstaller, that is prepared for such (Qt/PyQt)
> >> needs.
> >>
> >> Good luck,
> >> Pete
> >> _______________________________________________
> >> PyQt mailing list PyQt at riverbankcomputing.com
> >> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
More information about the PyQt
mailing list