[EXTERNAL] Re: Error building PyQt5 from source

Gehlhaar, Daniel Kurt dan.gehlhaar at pfizer.com
Wed Feb 24 17:38:50 GMT 2021


Phil,

Turns out there were several problems as revealed by "sip-install --verbose". If sip-install could be modified to surface some of these errors by default, it would be immensely helpful.  For example, I did not have QT_LICENSE_FILE properly set so there was this error from qmake -- sip-install should have said something, but did not, it just moved on.  For example, without "--verbose" it just printed the first line, and I thought everything was fine.

Checking to see if the QtQuick3D bindings can be built...
c:\Users\gehlhaar\Qt\qt-5.15.2-build\deploy\bin\qmake.exe QtQuick3D.pro

NOTICE  NOTICE  NOTICE  NOTICE

  You are not licensed to use this version of Qt.

  Please log into your Qt Account at https://account.qt.io/
  to renew your license.

  Refer to Qt Support FAQ for known resolutions in license issues:
  https://wiki.qt.io/index.php?title=KnowledgeBase:SupportFAQ

NOTICE  NOTICE  NOTICE  NOTICE

Project ERROR: License check failed! Giving up ...

Regards,
Dan
-----Original Message-----
From: Phil Thompson <phil at riverbankcomputing.com> 
Sent: Wednesday, February 24, 2021 1:47 AM
To: Gehlhaar, Daniel Kurt <dan.gehlhaar at pfizer.com>
Cc: 'pyqt at riverbankcomputing.com' <pyqt at riverbankcomputing.com>
Subject: [EXTERNAL] Re: Error building PyQt5 from source

On 23/02/2021 18:19, Gehlhaar, Daniel Kurt wrote:
> All,
> 
> I am trying to follow the directions to build PyQt5 from source. My 
> ultimate goal is to use my custom-built Qt installation.
> 
> I started with a clean Python 3.6 (no sip or PyQt5 installed).  I have 
> my python and Qt directories in my PATH. I did the following steps as 
> per the web page instructions:
> 
> 
>   *   pip install PyQt5

...you mean PyQt5-sip

>   *   pip install PyQt5-builder
> 
> I downloaded the latest PyQt5 source distribution from PyPi and 
> unpacked it. I changed to that directory and did:
> 
>   *   sip-install
> 
> I got the following error:
> 
> Checking to see if the QtXmlPatterns bindings can be built...
> Checking to see if the dbus-python support should be built...
> The dbus-python package does not seem to be installed.
> These bindings will be built: Qt, pylupdate, pyrcc.
> Generating the Qt bindings...
> Generating the pylupdate bindings...
> sip-install:
> C:/Users/gehlhaar/Qt/PyQt5-5.15.2/sip/QtCore/QtCoremod.sip:25: At most 
> one of this %Timeline must be specified with the -t flag
> 
> I tried to dig into this .sip file and figure out the source of the 
> error, but I don't understand the build process well enough (it seemed 
> like there was only one %Timeline specified). I tried looking for a 
> nightly build but there are none on the distribution page at 
> https://riverbankcomputing.com/software/pyqt/download.
> 
> Any help would be appreciated.

Works fine for me in a clean venv.

Phil


More information about the PyQt mailing list