Centos 7 attempt to build PyQt5 5.12 - PyQt5.sip not found

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Centos 7 attempt to build PyQt5 5.12 - PyQt5.sip not found

Barry Scott
I am trying to build PyQt5 with QScintilla from source on Centos 7.6.

These are the steps I use:

tar xf sip-4.19.14.tar.gz
cd sip*
python3.6 configure.py
make
sudo python3.6 make install
cd ..

tar xf PyQt5_gpl-5.12.tar.gz
cd PyQt5*
python3.6 configure.py --qmake=/usr/bin/qmake-qt5
make
sudo make install
cd ..

$ python3.6
Python 3.6.6 (default, Aug 13 2018, 18:24:23)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5.QtCore
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt5.sip'
>>>

I did find that the Fedora src.rpm has a patch for configure.py but that made no difference.

If that had worked I was going to do:

tar xf QScintilla_gpl-2.11.1.tar.gz  
cd QScintilla*
cd Qt4Qt5
/usr/bin/qmake-qt5 qscintilla.pro
make
sudo make install
cd ../Python
python3.6 configure.py --pyqt=PyQt5 --qmake=/usr/bin/qmake-qt5
make
make install

Barry

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: Centos 7 attempt to build PyQt5 5.12 - PyQt5.sip not found

Kyle Altendorf


On 2019-03-11 15:30, Barry Scott wrote:
> I am trying to build PyQt5 with QScintilla from source on Centos 7.6.
>
> These are the steps I use:
>
> tar xf sip-4.19.14.tar.gz
> cd sip*
> python3.6 configure.py

http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#downloading-sip

Note the note about `--sip-module PyQt5.sip`.
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: Centos 7 attempt to build PyQt5 5.12 - PyQt5.sip not found

Barry Scott


> On 11 Mar 2019, at 20:05, Kyle Altendorf <[hidden email]> wrote:
>
>
>
> On 2019-03-11 15:30, Barry Scott wrote:
>> I am trying to build PyQt5 with QScintilla from source on Centos 7.6.
>> These are the steps I use:
>> tar xf sip-4.19.14.tar.gz
>> cd sip*
>> python3.6 configure.py
>
> http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#downloading-sip
>
> Note the note about `--sip-module PyQt5.sip`.
>

Doh! I even have the that link book marked.

The docs say to do this:

        python configure.py --sip-module PyQt5.sip --no-tools

But --no-tools means that there is not /usr/bin/sip installed or sip.h
so the build PyQt5 fails in configure.py as it needs both.

The --no-tools needs to be removed I think.

Barry

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: Centos 7 attempt to build PyQt5 5.12 - PyQt5.sip not found

Phil Thompson-5
On 13/03/2019 18:46, Barry Scott wrote:

>> On 11 Mar 2019, at 20:05, Kyle Altendorf <[hidden email]> wrote:
>>
>>
>>
>> On 2019-03-11 15:30, Barry Scott wrote:
>>> I am trying to build PyQt5 with QScintilla from source on Centos 7.6.
>>> These are the steps I use:
>>> tar xf sip-4.19.14.tar.gz
>>> cd sip*
>>> python3.6 configure.py
>>
>> http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#downloading-sip
>>
>> Note the note about `--sip-module PyQt5.sip`.
>>
>
> Doh! I even have the that link book marked.
>
> The docs say to do this:
>
> python configure.py --sip-module PyQt5.sip --no-tools
>
> But --no-tools means that there is not /usr/bin/sip installed or sip.h
> so the build PyQt5 fails in configure.py as it needs both.
>
> The --no-tools needs to be removed I think.

Update your bookmark, that’s out of date documentation. I’ll get around
to removing it at some point.

Phil

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: Centos 7 attempt to build PyQt5 5.12 - PyQt5.sip not found

Barry Scott


On 13 Mar 2019, at 19:26, Phil Thompson <[hidden email]> wrote:

On 13/03/2019 18:46, Barry Scott wrote:
On 11 Mar 2019, at 20:05, Kyle Altendorf <[hidden email]> wrote:
On 2019-03-11 15:30, Barry Scott wrote:
I am trying to build PyQt5 with QScintilla from source on Centos 7.6.
These are the steps I use:
tar xf sip-4.19.14.tar.gz
cd sip*
python3.6 configure.py
http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#downloading-sip
Note the note about `--sip-module PyQt5.sip`.
Doh! I even have the that link book marked.
The docs say to do this:
   python configure.py --sip-module PyQt5.sip --no-tools
But --no-tools means that there is not /usr/bin/sip installed or sip.h
so the build PyQt5 fails in configure.py as it needs both.
The --no-tools needs to be removed I think.

Update your bookmark, that’s out of date documentation. I’ll get around to removing it at some point.

If this is wrong what is the right one?


I looked on your riverbankcomputing.com and did not find a install guide, what did i miss?

Barry



Phil


_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: Centos 7 attempt to build PyQt5 5.12 - PyQt5.sip not found

Phil Thompson-5
On 13/03/2019 21:16, Barry wrote:

>> On 13 Mar 2019, at 19:26, Phil Thompson <[hidden email]>
>> wrote:
>>
>> On 13/03/2019 18:46, Barry Scott wrote:
>>>> On 11 Mar 2019, at 20:05, Kyle Altendorf <[hidden email]> wrote:
>>>>> On 2019-03-11 15:30, Barry Scott wrote:
>>>>> I am trying to build PyQt5 with QScintilla from source on Centos
>>>>> 7.6.
>>>>> These are the steps I use:
>>>>> tar xf sip-4.19.14.tar.gz
>>>>> cd sip*
>>>>> python3.6 configure.py
>>>> http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#downloading-sip
>>>> Note the note about `--sip-module PyQt5.sip`.
>>> Doh! I even have the that link book marked.
>>> The docs say to do this:
>>>    python configure.py --sip-module PyQt5.sip --no-tools
>>> But --no-tools means that there is not /usr/bin/sip installed or
>>> sip.h
>>> so the build PyQt5 fails in configure.py as it needs both.
>>> The --no-tools needs to be removed I think.
>>
>> Update your bookmark, that’s out of date documentation. I’ll get
>> around to removing it at some point.
>
> If this is wrong what is the right one?
>
> http://pyqt.sourceforge.net/Docs/PyQt5/installation.html
>
> I looked on your riverbankcomputing.com and did not find a install
> guide, what did i miss?

https://www.riverbankcomputing.com/static/Docs/PyQt5/installation.html

Phil
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt