pyuic4 error / PyQt4 upgrade problem

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pyuic4 error / PyQt4 upgrade problem

science.assistance

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

[hidden email], 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\driver.py", line 59, in invoke

    self._generate()

  File "C:\Users\scien\AppData\Roaming\Python\Python27\site-packages\PyQt4\uic\driver.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

 


_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt