[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] pyuic4 error / PyQt4 upgrade problem
From: <science.assistance () videotron ! ca>
Date: 2018-12-06 12:49:57
Message-ID: 003f01d48d62$31fcf5c0$95f6e140$ () videotron ! ca
[Download RAW message or body]
This is a multipart message in MIME format.
[Attachment #2 (multipart/alternative)]
This is a multipart message in MIME format.
Good morning.
Is it possible to help me in resolving this error. Puic4 can not convert .ui
file into .py file.
Error message :
(base) E:\Developpement\ISSRF\GUI>pyuic4 -o
Fenetre_Principale_Coordinateur.py Fenetre_Principale_Coordinateur.ui
An unexpected error occurred.
Check that you are using the latest version of PyQt and send an error report
to
support@riverbankcomputing.com <mailto:support@riverbankcomputing.com> ,
including the following information:
* your version of PyQt (4.11.4)
* the UI file that caused this error
* the debug output of pyuic4 (use the -d flag when calling pyuic4)
(base) E:\Developpement\ISSRF\GUI>pyuic4 -d -x -o
Fenetre_Principale_Coordinateur.py Fenetre_Principale_Coordinateur.ui
Traceback (most recent call last):
File
"C:\Users\scien\AppData\Roaming\Python\Python27\site-packages\PyQt4\uic\port
_v2\invoke.py", line 34, in invoke
exit_status = driver.invoke()
File
"C:\Users\scien\AppData\Roaming\Python\Python27\site-packages\PyQt4\uic\driv
er.py", line 59, in invoke
self._generate()
File
"C:\Users\scien\AppData\Roaming\Python\Python27\site-packages\PyQt4\uic\driv
er.py", line 98, in _generate
self._opts.resource_suffix)
AttributeError: Values instance has no attribute 'resource_suffix'
----------------------------------------------------------------------------
------------------------------------------------------------------
As the error message suggested I tried to upgrade PyQt4 to the latest
version 4.12.3. :
python configure.py
----------------------------------------------------------------------------
------------------------------------------------------------------
(base) E:\Developpement\PyQt4\PyQt4_gpl_win-4.12.3>python configure.py
Error: This version of PyQt requires SIP v4.19.12 or later
(base) E:\Developpement\PyQt4\PyQt4_gpl_win-4.12.3>
----------------------------------------------------------------------------
------------------------------------------------------------------
But I got another error message saying to updrade SIP to the latest version.
So I tried to upgrade SIP :
python configure.py
----------------------------------------------------------------------------
------------------------------------------------------------------
(base) E:\Developpement\PyQt4\sip-4.19.13>python configure.py
This is SIP 4.19.13 for Python 2.7.15 on win32.
The SIP code generator will be installed in E:\ProgramData\Anaconda2.
The sip.h header file will be installed in E:\ProgramData\Anaconda2\include.
The sip module will be installed in
E:\ProgramData\Anaconda2\Lib\site-packages.
The sip.pyi stub file will be installed in
E:\ProgramData\Anaconda2\Lib\site-packages.
The default directory to install .sip files in is
E:\ProgramData\Anaconda2\sip.
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...
(base) E:\Developpement\PyQt4\sip-4.19.13>
I got no error message but when I verified the SIP version it is still the
old version (did not upgrade) :
sip -V
----------------------------------------------------------------------------
------------------------------------------------------------------
(base) E:\Developpement\PyQt4\sip-4.19.13>sip -V
4.18.1
(base) E:\Developpement\PyQt4\sip-4.19.13>
CONCLUSION :
Because i am not able to upgrade SIP, I am not able to upgrade PyQt4.
Do you have an idea to help me with this problem ?
Thanks,
François Robichaud
[Attachment #5 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type \
content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word \
15 (filtered medium)"><style><!-- /* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR-CA link="#0563C1" \
vlink="#954F72"><div class=WordSection1><p class=MsoNormal><b><span lang=EN-CA>Good \
morning.<o:p></o:p></span></b></p><p class=MsoNormal><b><span \
lang=EN-CA><o:p> </o:p></span></b></p><p class=MsoNormal><b><span lang=EN-CA>Is \
it possible to help me in resolving this error. Puic4 can not convert .ui file into \
.py file.<o:p></o:p></span></b></p><p class=MsoNormal><span \
lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><b><u><span \
lang=EN-CA>Error message :<o:p></o:p></span></u></b></p><p class=MsoNormal><span \
lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><i><span lang=EN-CA>(base) \
E:\Developpement\ISSRF\GUI>pyuic4 -o Fenetre_Principale_Coordinateur.py \
Fenetre_Principale_Coordinateur.ui<o:p></o:p></span></i></p><p \
class=MsoNormal><i><span lang=EN-CA>An unexpected error \
occurred.<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-CA>Check that \
you are using the latest version of PyQt and send an error report \
to<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-CA><a \
href="mailto:support@riverbankcomputing.com">support@riverbankcomputing.com</a>, \
including the following information:<o:p></o:p></span></i></p><p \
class=MsoNormal><i><span lang=EN-CA><o:p> </o:p></span></i></p><p \
class=MsoNormal><i><span lang=EN-CA> * your version of PyQt \
(4.11.4)<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-CA> * the \
UI file that caused this error<o:p></o:p></span></i></p><p class=MsoNormal><i><span \
lang=EN-CA> * the debug output of pyuic4 (use the -d flag when calling \
pyuic4)<o:p></o:p></span></i></p><p class=MsoNormal><i><span \
lang=EN-CA><o:p> </o:p></span></i></p><p class=MsoNormal><i><span \
lang=EN-CA>(base) E:\Developpement\ISSRF\GUI>pyuic4 -d -x -o \
Fenetre_Principale_Coordinateur.py \
Fenetre_Principale_Coordinateur.ui<o:p></o:p></span></i></p><p \
class=MsoNormal><i><span lang=EN-CA>Traceback (most recent call \
last):<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-CA> File \
"C:\Users\scien\AppData\Roaming\Python\Python27\site-packages\PyQt4\uic\port_v2\invoke.py", \
line 34, in invoke<o:p></o:p></span></i></p><p class=MsoNormal><i><span \
lang=EN-CA> exit_status = \
driver.invoke()<o:p></o:p></span></i></p><p class=MsoNormal><i><span \
lang=EN-CA> File \
"C:\Users\scien\AppData\Roaming\Python\Python27\site-packages\PyQt4\uic\driver.py", \
line 59, in invoke<o:p></o:p></span></i></p><p class=MsoNormal><i><span \
lang=EN-CA> self._generate()<o:p></o:p></span></i></p><p \
class=MsoNormal><i><span lang=EN-CA> File \
"C:\Users\scien\AppData\Roaming\Python\Python27\site-packages\PyQt4\uic\driver.py", \
line 98, in _generate<o:p></o:p></span></i></p><p class=MsoNormal><i><span \
lang=EN-CA> self._opts.resource_suffix)<o:p></o:p></span></i></p><p \
class=MsoNormal><i><span lang=EN-CA>AttributeError: Values instance has no attribute \
'resource_suffix'<o:p></o:p></span></i></p><p class=MsoNormal><span \
lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><span \
lang=EN-CA>--------------------------------------------------------------------------- \
-------------------------------------------------------------------<o:p></o:p></span></p><p \
class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p \
class=MsoNormal><b><span lang=EN-CA>As the error message suggested I tried to upgrade \
PyQt4 to the latest version 4.12.3. :<o:p></o:p></span></b></p><p \
class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p \
class=MsoNormal><b><i><span lang=EN-CA>python \
configure.py<o:p></o:p></span></i></b></p><p class=MsoNormal><span \
lang=EN-CA>--------------------------------------------------------------------------- \
-------------------------------------------------------------------<o:p></o:p></span></p><p \
class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p \
class=MsoNormal><i>(base) E:\Developpement\PyQt4\PyQt4_gpl_win-4.12.3>python \
configure.py<o:p></o:p></i></p><p class=MsoNormal><i><span lang=EN-CA>Error: This \
version of PyQt requires SIP v4.19.12 or later<o:p></o:p></span></i></p><p \
class=MsoNormal><i><span lang=EN-CA><o:p> </o:p></span></i></p><p \
class=MsoNormal><i>(base) \
E:\Developpement\PyQt4\PyQt4_gpl_win-4.12.3><o:p></o:p></i></p><p \
class=MsoNormal><i><o:p> </o:p></i></p><p class=MsoNormal><span \
lang=EN-CA>--------------------------------------------------------------------------- \
-------------------------------------------------------------------<o:p></o:p></span></p><p \
class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span lang=EN-CA>But I got \
another error message saying to updrade SIP to the latest version. So I tried to \
upgrade SIP :<o:p></o:p></span></b></p><p class=MsoNormal><b><span \
lang=EN-CA><o:p> </o:p></span></b></p><p class=MsoNormal><b><span \
lang=EN-CA>python configure.py<o:p></o:p></span></b></p><p class=MsoNormal><b><span \
lang=EN-CA><o:p> </o:p></span></b></p><p class=MsoNormal><span \
lang=EN-CA>--------------------------------------------------------------------------- \
-------------------------------------------------------------------<o:p></o:p></span></p><p \
class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p \
class=MsoNormal><i>(base) E:\Developpement\PyQt4\sip-4.19.13>python \
configure.py<o:p></o:p></i></p><p class=MsoNormal><i><span lang=EN-CA>This is SIP \
4.19.13 for Python 2.7.15 on win32.<o:p></o:p></span></i></p><p \
class=MsoNormal><i><span lang=EN-CA>The SIP code generator will be installed in \
E:\ProgramData\Anaconda2.<o:p></o:p></span></i></p><p class=MsoNormal><i><span \
lang=EN-CA>The sip.h header file will be installed in \
E:\ProgramData\Anaconda2\include.<o:p></o:p></span></i></p><p \
class=MsoNormal><i><span lang=EN-CA>The sip module will be installed in \
E:\ProgramData\Anaconda2\Lib\site-packages.<o:p></o:p></span></i></p><p \
class=MsoNormal><i><span lang=EN-CA>The sip.pyi stub file will be installed \
in<o:p></o:p></span></i></p><p class=MsoNormal><i><span \
lang=EN-CA>E:\ProgramData\Anaconda2\Lib\site-packages.<o:p></o:p></span></i></p><p \
class=MsoNormal><i><span lang=EN-CA>The default directory to install .sip files in is \
E:\ProgramData\Anaconda2\sip.<o:p></o:p></span></i></p><p class=MsoNormal><i><span \
lang=EN-CA>Creating sipconfig.py...<o:p></o:p></span></i></p><p \
class=MsoNormal><i><span lang=EN-CA>Creating top level \
Makefile...<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-CA>Creating \
sip code generator Makefile...<o:p></o:p></span></i></p><p class=MsoNormal><i><span \
lang=EN-CA>Creating sip module Makefile...<o:p></o:p></span></i></p><p \
class=MsoNormal><i><span lang=EN-CA><o:p> </o:p></span></i></p><p \
class=MsoNormal><i><span lang=EN-CA>(base) \
E:\Developpement\PyQt4\sip-4.19.13><o:p></o:p></span></i></p><div \
style='mso-element:para-border-div;border:none;border-bottom:solid windowtext \
1.0pt;padding:0cm 0cm 1.0pt 0cm'><p class=MsoNormal \
style='border:none;padding:0cm'><span lang=EN-CA><o:p> </o:p></span></p></div><p \
class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p \
class=MsoNormal><b><span lang=EN-CA>I got no error message but when I verified the \
SIP version it is still the old version (did not upgrade) \
:<o:p></o:p></span></b></p><p class=MsoNormal><b><span \
lang=EN-CA><o:p> </o:p></span></b></p><p class=MsoNormal><b><span lang=EN-CA>sip \
-V<o:p></o:p></span></b></p><p class=MsoNormal><span \
lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><span \
lang=EN-CA>--------------------------------------------------------------------------- \
-------------------------------------------------------------------<o:p></o:p></span></p><p \
class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p \
class=MsoNormal><i>(base) E:\Developpement\PyQt4\sip-4.19.13>sip \
-V<o:p></o:p></i></p><p class=MsoNormal><i>4.18.1<o:p></o:p></i></p><p \
class=MsoNormal><i><o:p> </o:p></i></p><p class=MsoNormal><i>(base) \
E:\Developpement\PyQt4\sip-4.19.13><o:p></o:p></i></p><div \
style='mso-element:para-border-div;border:none;border-bottom:solid windowtext \
1.0pt;padding:0cm 0cm 1.0pt 0cm'><p class=MsoNormal \
style='border:none;padding:0cm'><o:p> </o:p></p></div><p \
class=MsoNormal><b><o:p> </o:p></b></p><p class=MsoNormal><b>CONCLUSION : \
<o:p></o:p></b></p><p class=MsoNormal><b><o:p> </o:p></b></p><p \
class=MsoNormal><b><span lang=EN-CA>Because i am not able to upgrade SIP, I am not \
able to upgrade PyQt4.<o:p></o:p></span></b></p><p class=MsoNormal><b><span \
lang=EN-CA><o:p> </o:p></span></b></p><p class=MsoNormal><b><span lang=EN-CA>Do \
you have an idea to help me with this problem ?<o:p></o:p></span></b></p><p \
class=MsoNormal><b><span lang=EN-CA><o:p> </o:p></span></b></p><p \
class=MsoNormal><b><span lang=EN-CA>Thanks,<o:p></o:p></span></b></p><p \
class=MsoNormal><b><span lang=EN-CA><o:p> </o:p></span></b></p><p \
class=MsoNormal><b><span lang=EN-CA>François Robichaud<o:p></o:p></span></b></p><p \
class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p></div></body></html>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic