Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error: This version of PyQt5 and the commercial version of Qt have incompatible licenses.
Qt 6.11 is out! See what's new in the release blog

Error: This version of PyQt5 and the commercial version of Qt have incompatible licenses.

Scheduled Pinned Locked Moved General and Desktop
15 Posts 10 Posters 19.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #4

    Hi and welcome to devnet,

    Maybe a silly idea but did you check whether you have an old license file around ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    Q 1 Reply Last reply
    0
    • SGaistS SGaist

      Hi and welcome to devnet,

      Maybe a silly idea but did you check whether you have an old license file around ?

      Q Offline
      Q Offline
      qkthr
      wrote on last edited by
      #5

      @SGaist Thank you for welcoming me.

      I'm installing this again because I did a full system wipe (all my data and my OSs data); I don't have old files around that could be interfering with the newer installation of Qt/PyQt.

      Is there any way to know the dependencies the wizard installed so I can wipe the Qt installation and try again? I had a network error when downloading it; maybe that's the issue.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #6

        Everything the wizard installs goes in the Qt folder created by him, there's nothing running around except maybe the license file

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qkthr
          wrote on last edited by
          #7

          Thank you.

          Since I ran out of ideas and I don't want to waste too much time on this I just downgraded to PyQt4. I'm using ubuntu at the moment and installed qt4 from the repos.

          # apt-get install qt-sdk
          

          Everything is working fine now. Hope this will help someone else.

          B 1 Reply Last reply
          0
          • S Offline
            S Offline
            syracus
            wrote on last edited by
            #8

            I've run into the exact same problem as described here for
            PyQt-gpl-5.4.2
            qt-unified-linux-x64-2.0.2-1-online.run
            -> /opt/Qt/5.5$ qmake --version
            QMake version 3.0
            Using Qt version 5.5.0 in /opt/Qt/5.5/gcc_64/lib

            As I'm forced to go with QT 5 for several reasons, this is a little bit anoying. Are there solution to get the GPL versions working together either in a Linux or Windows environment ?

            Thanks
            Syracus

            B 1 Reply Last reply
            0
            • S syracus

              I've run into the exact same problem as described here for
              PyQt-gpl-5.4.2
              qt-unified-linux-x64-2.0.2-1-online.run
              -> /opt/Qt/5.5$ qmake --version
              QMake version 3.0
              Using Qt version 5.5.0 in /opt/Qt/5.5/gcc_64/lib

              As I'm forced to go with QT 5 for several reasons, this is a little bit anoying. Are there solution to get the GPL versions working together either in a Linux or Windows environment ?

              Thanks
              Syracus

              B Offline
              B Offline
              barbul
              wrote on last edited by
              #9

              @syracus I ran into the same problem under OSX. My local open source QT5 reports "Builder" instead of the expected "Open Source" for target_config.qt_licensee in PyQT's configure.py. The compilation goes through smoothly once you uncomment the offending lines though.

              1 Reply Last reply
              2
              • Q qkthr

                Thank you.

                Since I ran out of ideas and I don't want to waste too much time on this I just downgraded to PyQt4. I'm using ubuntu at the moment and installed qt4 from the repos.

                # apt-get install qt-sdk
                

                Everything is working fine now. Hope this will help someone else.

                B Offline
                B Offline
                barbul
                wrote on last edited by
                #10

                @qkthr pinging you directly in case you didn't get a notification from my earlier message.

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  j2lrc
                  wrote on last edited by
                  #11

                  @barbul - could you elaborate more on how you fixed this? I'm clueless as to how to get Qt5 to report anything but "Builder".

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    AdrianH
                    wrote on last edited by AdrianH
                    #12

                    In the 'configure.py' script of PyQt, just comment out lines 2591 to 2594, where it compares whatever it thinks the Qt license type is to "Open Source"

                    1 Reply Last reply
                    1
                    • K Offline
                      K Offline
                      kabin pokhrel
                      wrote on last edited by
                      #13

                      Commenting out lines 2591 to 2594 in configure.py PyQt5.5.0 solved the problem. Successfully installed PyQt inside virtual environment on Os X with Python3.5, PyQt5.5 and Sip4.16.9 configurations.

                      1 Reply Last reply
                      1
                      • S Offline
                        S Offline
                        Smoketurtt
                        wrote on last edited by
                        #14

                        Looks like configure.py got updated so the line numbers need to comment out the license error have changed. Commenting out lines 2681 to 2684 worked for me. Hopefully this helps someone.

                        1 Reply Last reply
                        0
                        • I Offline
                          I Offline
                          Ionut
                          wrote on last edited by
                          #15

                          @Smoketurtt said in Error: This version of PyQt5 and the commercial version of Qt have incompatible licenses.:

                          Looks like configure.py got updated

                          Looks like configure.py got updated AGAIN. I comented out lines from 2674 to 2677.

                              # Common checks.
                          #    if introspecting and target_config.qt_licensee not in OPEN_SOURCE_LICENSEES and ltype == 'GPL':
                          #        error(
                          #                "This version of PyQt5 and the commercial version of Qt have "
                          #                "incompatible licenses.")
                          
                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved