[PyQt] pyuic4 error / PyQt4 upgrade problem

science.assistance at videotron.ca science.assistance at videotron.ca
Thu Dec 6 12:49:57 GMT 2018


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 at riverbankcomputing.com <mailto:support at 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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20181206/ea60e604/attachment.html>


More information about the PyQt mailing list