I tried down grading to the same versions as in Ubuntu and I could load my ui 
files, however the script runs painfully slow. This leads me to believe that 
porting python scripts that use certain qt functionality isn't fully supported. 
Does anyone know another way to load Qt ui files on windows?. Please specify 
the versions of all the packages involved. Thanks.



----- Forwarded Message ----
From: Aminu D <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, 25 August, 2008 1:31:48 PM
Subject: [PyQt] PyQt4.uic Error!!..


Hi,
   I installed PyQt4 and Python on windows and tried to run
a script that I have tested and ran on Ubuntu. When I try to run my
script, at the point were I try to load a ui file...ie : uifile =
uic.loadUi("MyUIFile.ui"), it always gives me an attribute error that
occurred in the icon_cache.py library file "AttributeError: 'NoneType'
object has no attribute 'replace'" in __init__ when it tried to execute
: "self._roles[i.tag] = i.text.replace("\\", "\\\\")" . This script
works fine on Ubuntu, and being that the Qt ui files are xml, I thought
it would be trivial to port it to windows. Below is the list of packages I'm 
running on each OS. Windows has the most up to date packages.
On windows:
PyQt is 4.4.3-1, Qt is version 4.4.1, and python is version 2.5
On Ubuntu (8.04):
PyQt is 4.3.3-2, Qt is 4.4.0, Python is version 2.5.2-0

I haven't made any changes
to any of the libraries and therefore don't understand, why I am
getting this error. I apologize if my problem is not clear enough but
would appreciate all the help I can get, please feel free to ask any question 
for
clarity. Thank you for your time.
Send instant messages to your online friends http://uk.messenger.yahoo.com 

Send instant messages to your online friends http://uk.messenger.yahoo.com 
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to