473,419 Members | 1,635 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

py2exe, PyQT, QtWebKit and jpeg problem

hello

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.
Jun 27 '08 #1
8 4930
On Fri, 20 Jun 2008 08:04:57 -0700 (PDT), Carbonimax <ca********@gmail.com>
wrote:
hello

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.

Phil

Jun 27 '08 #2
On Friday 20 June 2008 17:24, Phil Thompson wrote:
On Fri, 20 Jun 2008 08:04:57 -0700 (PDT), Carbonimax
<ca********@gmail.comwrote:
>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:

http://lists.trolltech.com/qt4-previ.../msg00064.html

David
Jun 27 '08 #3
On Jun 21, 12:21*am, David Boddie <da...@boddie.org.ukwrote:
On Friday 20 June 2008 17:24, Phil Thompson wrote:
On Fri, 20 Jun 2008 08:04:57 -0700 (PDT),Carbonimax
<carboni...@gmail.comwrote:
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:

http://lists.trolltech.com/qt4-previ.../msg00064.html

David
How can I do that ?
If I copy the dll in the dist directory, and I use QLibrary() and
load(),
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

:-/
Jun 27 '08 #4
On Jun 21, 12:21*am, David Boddie <da...@boddie.org.ukwrote:
On Friday 20 June 2008 17:24, Phil Thompson wrote:
On Fri, 20 Jun 2008 08:04:57 -0700 (PDT), Carbonimax
<carboni...@gmail.comwrote:
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:

http://lists.trolltech.com/qt4-previ.../msg00064.html

David
How can I do that ?
If I copy the dll in the dist directory, and I use QPluginLoader() and
load(),
it does work in the .py but it doesn't in .exe made with py2exe

my code :
dll = QPluginLoader(path_to_dll)
res = dll.load()

res == true in the .py
res == false in the .exe

:-/
Jun 27 '08 #5
On Monday 23 June 2008 15:02, Carbonimax wrote:
If I copy the dll in the dist directory, and I use QPluginLoader() and
load(),
it does work in the .py but it doesn't in .exe made with py2exe

my code :
dll = QPluginLoader(path_to_dll)
res = dll.load()

res == true in the .py
res == false in the .exe

:-/
Maybe py2exe builds executables that can't load DLLs in this way.
In any case, it might be worth asking about this on the PyQt
mailing list

http://www.riverbankcomputing.com/mailman/listinfo/pyqt

or on the py2exe mailing list

https://lists.sourceforge.net/lists/...o/py2exe-users

where there may well be people who have solved this problem
independently.

David
Jun 27 '08 #6
On 6ÔÂ20ÈÕ, ÏÂÎç11ʱ04·Ö, Carbonimax <carboni...@gmail.comwrote:
hello

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.

I have the same problem with you. I find a way to fix it:
1. Copy Qt plugins to the directory: $YOUR_DIST_PATH/PyQt4/plugins;
2. Copy qt.conf to youar dist directory;
3. Edit qt.conf, change Prefix to $YOUR_DIST_PATH/PyQt4

Orit
Jun 29 '08 #7
On Jun 29, 4:14 pm, yang.zenggu...@gmail.com wrote:
On 6ÔÂ20ÈÕ, ÏÂÎç11ʱ04·Ö, Carbonimax <carboni...@gmail.comwrote:
hello
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.

I have the same problem with you. I find a way to fix it:
1. Copy Qt plugins to the directory: $YOUR_DIST_PATH/PyQt4/plugins;
2. Copy qt.conf to youar dist directory;
3. Edit qt.conf, change Prefix to $YOUR_DIST_PATH/PyQt4

Orit
It work, thank you :)
Jul 8 '08 #8
On Jun 29, 4:14 pm, yang.zenggu...@gmail.com wrote:
On 6ÔÂ20ÈÕ, ÏÂÎç11ʱ04·Ö, Carbonimax <carboni...@gmail.comwrote:
hello
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.

I have the same problem with you. I find a way to fix it:
1. Copy Qt plugins to the directory: $YOUR_DIST_PATH/PyQt4/plugins;
2. Copy qt.conf to youar dist directory;
3. Edit qt.conf, change Prefix to $YOUR_DIST_PATH/PyQt4

Orit
It works, thank you :-)
Jul 8 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
2
by: Stefan Behrens | last post by:
Hi, does anybody know how I can get py2exe to work with wxPython's wxCalendarCtrl? Currently, I have just a "standard" setup.py, and py2exe gives me a syntax error. Do I need to include any...
0
by: Kathleen Kudzma | last post by:
I'm having a problem with py2exe for Python 2.3. I got fixed the Lookuperror no codec search functions registered: can't find encoding by following the instructions on the py2exe page (added...
8
by: Kathleen Kudzma | last post by:
Does anyone know how to resolve the following problem that I'm getting in Python 2.2 and 2.3? PROBLEM: When I try to create a classReader object I get an exception: "SAXReaderNotAvailable: No...
6
by: Luc Saffre | last post by:
Hello, I had a strange problem when freezing (using either py2exe or McMillan installer) a script that imports reportlab (which imports PIL (which imports FixTk))). - Python 2.3.3c (also with...
4
by: bwaha | last post by:
First time trying to create an executable with py2exe. I have a small program which makes use of python23 (2.3.5?), wxpython ('2.6.2.1'), matplotlib ('0.83.2'), win32com (latest?), Numeric...
1
by: aljosa | last post by:
i'm trying to convert python (image resizer script using PyQt4) script to exe but support for jpeg and tiff image formats is located in Qt4.1\plugins\imageformats (dll files) and when script is...
1
by: shane.external | last post by:
I'm having trouble using Py2exe with a PyQT-based python project. Or possibly I'm having a problem with PyQT and Py2exe makes it apparent. Whichever it is, I run into trouble with importing QtCore...
0
by: ilochab | last post by:
I wrote an application that uses PyQt4 to access a sqlite DB. Now I'm trying to convert it using py2exe and I found some problems. The last one, that I'm not able to avoid, is that when I launch...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.