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.
QtWS25 Last Chance

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 16.0k Views
  • 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.
  • W Offline
    W Offline
    Walker Rowe
    wrote on last edited by
    #1

    I am trying to set up PyQt. I thinks I have the commercial license of QT when I run this:

    python ./configure.py --qmake="/home/walker/Qt/5.5/gcc_64/bin/qmake"

    If I look at the LICENSE file in QT is does not specifically say I have the commercial license. It says this (and a few hundred pages more):

    GPLv3 and LGPLv3

            GNU LESSER GENERAL PUBLIC LICENSE
    

    The Qt Toolkit is Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
    Contact: http://www.qt.io/licensing

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

      Hi,

      How did you install Qt on your computer ?

      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
        #3

        Hello.

        I hope that Walker Rowe doesn't mind me hijacking his thread. I've installed several times both pyqt5 and pyqt4, with their corresponding qt core and this is the first time I'm getting the license errors. I've been looking over the internet but I didn't find much relating to this error, except for this practically newly created thread.

        In my case, I've installed Qt through this link: http://www.qt.io/download-open-source/ and pyqt5 alongside sip in a python virtual environment.

        $ wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.8/sip-4.16.8.tar.gz
        $ wget http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.4.2/PyQt-gpl-5.4.2.tar.gz
        

        This is the console output after trying to configure PyQt:

        $ python configure.py --qmake '~/Apps/.Qt/5.5/gcc_64/bin/qmake'
        Querying qmake about your Qt installation...
        Determining the details of your Qt installation...
        This is the GPL version of PyQt 5.4.2 (licensed under the GNU General Public
        License) for Python 3.4.0 on linux.
        Error: This version of PyQt5 and the commercial version of Qt have incompatible
        licenses.
        

        I've done basically the same thing I've done in the past and, as far as I know, I'm with the correct Qt license. What can I do? I've tried deleting the Qt folder and reinstalling it again with the wizard.

        1 Reply Last reply
        0
        • 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