[PyQt] cls not declared error.

José Antonio Fernández Fernández aullasistemas at gmail.com
Tue Nov 20 12:49:13 GMT 2018


Hi all. I found a bug in the last release 2.3.

In the file pyqtdeploy / sysroot / plugins / python / python.py: 407,
the variable cls is referenced, but it does not exist:

@staticmethod
    def _major_minor_as_string (sysroot):
        "" "Return the Python major.minor as a string." ""

        major, minor = cls._major_minor (sysroot)

        return str (major) + '.' + str (minor)

I have solved it like this:


    @staticmethod
    def _major_minor_as_string (sysroot):
        "" "Return the Python major.minor as a string." ""

        major, minor, _ = sysroot.decode_version_nr (
                sysroot.target_py_version_nr)

I hope to be helpful. regards



-- 
Cuenta de correo propiedad de FERNÁNDEZ FERNÁNDEZ, JOSÉ ANTONIO y de uso
estrictamente profesional. Este mensaje electrónico está dirigido
únicamente a la(s) direcciones indicadas anteriormente: el carácter
confidencial, personal e intransferible del mismo está protegido legalmente.
Cualquier revelación, uso o reenvío no autorizado, completo o en parte está
prohibido. Si ha recibido este mensaje por equivocación notifíquelo
inmediatamente a la persona que lo remite y borre el mensaje original junto
con sus ficheros anexos sin leerlo ni grabarlo total o parcialmente. Si
usted no desea recibir correos de nuestra empresa, por favor, envíenos un
correo a AULLASISTEMAS at GMAIL.COM manifestando tal deseo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20181120/0d7a3ba2/attachment.html>


More information about the PyQt mailing list