[PyKDE] eric3 compileing from a ui to .py , generating large image data and .py file giving segfaults

achiestdragon at gmail.com achiestdragon at gmail.com
Fri Feb 25 15:13:18 GMT 2005


hi 
firstly sorry if this has been covered before but im getting address not found 
when trying to search archives

i wrote a ui using qt designer 
imported it into eric
then in eric compiled it into a .py file 

other than having to add
from kdeui import * 
this method appears to work ok 

2 problems here , 

1/. first the original pixmap is 93.4Kb and the .py script with the image is  
686.7Kb this is a very large increse in file size concidering there is only  
about 100 lines of other python code and about 3 times the size of the ui 
file 
the problem is the ui has a large pixmap file 
that eric translates to :-

image0_data = \
    "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d" \
    "\x49\x48\x44\x52\x00\x00\x02\x64\x00\x00\x00\xb9" \      
    and so on for the next 12273 lines of code


2/. it wont run the script and gives segfaults 
i first thought it was dew to the way that the image data is compiled into 
python but after some experimentation it seems not to be 

using the same ui but with the pixmap removed from it  compiles into a py file 
fine but still gives segfaults ? 
including the pixmap in to another ui that previously compiled and ran ok
works ok 

the ui is a basic dialog with a contaner, pixmap, some text lables
and input line and a password line :-

Kpushbutton
LineEdit
KPasswordEdit 

how come im getting segfaults 

also eric3 when trying to profile or run the script gives no message or debug 
info to the segfault error just seems to sit there and do nothing

Versions :-
python 2.3.4
kde 3.3.0
pykde 3.11.3
qt 3.3.3
pyqt 3.14
qscintilla 1.5
eric 3.6.2
from bicycle repair man cvs-20041120

Dave
P.S.
i can email a copy of the ui and py files on request 
as they are too big to post here :- .ui is 294Kb and .py is 687Kb 




More information about the PyQt mailing list