On 21 Ott, 02:08, StuartM <[EMAIL PROTECTED]> wrote:
> Hi. I'm trying to bundle a PyQt4 app on XP with some SVG icons and GIF
> graphics. I have been using pyrcc4 to compile the graphics to an
> icons.py file that I import. Works fine running the Python and running
> the PyInstaller-built exe on the same system but the graphics don't
> appear when I copy the PyInstaller bundle to another, fairly bare
> bones XP system. Oddly, a PNG handled the same way does appear. I am
> not sure the problem is related to pyrcc4 because I can't get them to
> load directly from the file into QPixmap either. I have tried about 20
> different approaches (depends, procmon, ...) but I can't find the
> cause. Is this a known problem and are there any work arounds?

On my Ubuntu box readers for the various image formats are plugins of
qt4

$ ll /usr/share/qt4/
totale 368
drwxr-xr-x  2 root root   4096 2008-11-14 19:26 bin
drwxr-xr-x  5 root root   4096 2008-11-14 19:26 doc
lrwxrwxrwx  1 root root     17 2008-11-02 23:01 include -> ../../
include/qt4
drwxr-xr-x  2 root root  12288 2008-11-14 19:26 lib
drwxr-xr-x 86 root root   4096 2008-11-14 19:26 mkspecs
drwxr-xr-x  2 root root   4096 2008-11-14 19:26 phrasebooks
lrwxrwxrwx  1 root root     21 2008-11-02 23:01 plugins -> ../../lib/
qt4/plugins
-rw-r--r--  1 root root 332055 2008-09-27 10:58 q3porting.xml
drwxr-xr-x  3 root root   4096 2008-11-02 23:40 qsci
drwxr-xr-x  2 root root   4096 2008-11-14 19:26 translations

$ ll /usr/share/qt4/plugins/imageformats/
totale 168
-rw-r--r-- 1 root root 27032 2008-11-14 12:41 libqgif.so
-rw-r--r-- 1 root root 27112 2008-11-14 12:41 libqico.so
-rw-r--r-- 1 root root 39640 2008-11-14 12:41 libqjpeg.so
-rw-r--r-- 1 root root 27304 2008-11-14 12:41 libqmng.so
-rw-r--r-- 1 root root 18776 2008-11-14 12:42 libqsvg.so
-rw-r--r-- 1 root root 22984 2008-11-14 12:41 libqtiff.so

Note that the PNG reader is not a plugin.

My guess is that pyinstaller don't includes plugins for image readers
in the bundle.
Can you confirm?
If my guess is right you could try to copy plugins manually or
explicitly set them in your config file.

I hope this helps

> I'm using current svn PyInstaller if that matters.
>
> Thanks.

cao

--
Antonio Valentino
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to