Compiling PyQt5 on Debian


#1

I’m trying to Compiling PyQt5 on Debian.
I have a question, python2.7 is in the version:
Python 2.7.9 (default, Jun 29 2016, 13:08:31)
[GCC 4.9.2] on linux2
It will work with the actions that are indicated in the url:


Or I have to upload the version of python2.7
regards


#2

Hi @hquintanaro,

What have you tried so far, and how did it go? Did you experience any issues?


#3

Try to perform the installation in centos 7. But I had problems, the most common:
when compiling the binaries:

root@PyblishRG:/home/hquintanaro/Descargas/PyQt-gpl-5.3.2# python configure.py --qmake /opt/Qt5.3.1/5.3/gcc_64/bin/qmake --sip-incdir …/sip-4.16.5/siplib
Querying qmake about your Qt installation…
Determining the details of your Qt installation…
This is the GPL version of PyQt 5.3.2 (licensed under the GNU General Public
License) for Python 2.7.9 on linux2.

Type ‘L’ to view the license.
Type ‘yes’ to accept the terms of the license.
Type ‘no’ to decline the terms of the license.

Do you accept the terms of the license? yes
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built…
Checking to see if the QtWidgets module should be built…

It did not generate the module for some cases, among them QtWidgets module

Generating the C++ source for the QtWidgets module…

Then I finished compiling and performing the Testing. Appear legend of module not found with the instruction from PyQt5 import QtWidgets

Applied the instructions of the url:


Unsuccessfully.
Always do it with python2.7.15.

Hence my question?
If I do it with Debian 8, should I have the latest version of puthon?
Finally, apply the instructions of the url:


The installation is successful on the first attempt.
Now I will continue with the necessary requirements to have the environment prepared in Pyblish and try to publish in Nuke and Maya.


#4

You might be missing a few system packages required by QtWidgets.

Have a look here: https://stackoverflow.com/questions/22598333/pyqt5-error-import-qtwidgets-qtgui