[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] PyQt5.sip Not Generated
From:       FiFo <fifothekid () gmail ! com>
Date:       2018-09-17 16:36:12
Message-ID: CAOp7GT5dVvzyZQ2Jw13_srs+yaiKHT245_j=5z1ANTw8SzxtYg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


great! I downloaded the latest snapshot of SIP and PyQt and now I'm
compiling
I used the following command for configuring PyQt:
python configure.py --qmake d:\qt5_32\bin\qmake.exe --static --sip-incdir
..\sip-4.19.13.dev1809111822\siplib --sip
d:\opencv\sip-4.19.13.dev1809111822\sipgen\sip.exe --confirm-license

On Mon, Sep 17, 2018 at 5:28 AM Phil Thompson <phil@riverbankcomputing.com>
wrote:

> On 17 Sep 2018, at 3:20 am, FiFo <fifothekid@gmail.com> wrote:
> >
> > Hi all,
> >
> > I'm building SIP 4.19.12 and PyQt 5.11.2 on Windows 10 with Visual
> Studio 2017. I'm planning to do that for Python x86 2.7.15.
> > I downloaded the versions above and extracted them, installed enum34
> with pip, the configured SIP with
> > python configure.py --sip-module PyQt5.sip --no-tools
> > This is SIP 4.19.12 for Python 2.7.15 on win32.
> > The PyQt5.sip module will be installed in
> >
> C:\Users\FiFo\AppData\Local\Programs\Python\Python27\Lib\site-packages\PyQt5.
> > The sip.pyi stub file will be installed in
> >
> C:\Users\FiFo\AppData\Local\Programs\Python\Python27\Lib\site-packages\PyQt5.
> > The default directory to install .sip files in is
> > C:\Users\FiFo\AppData\Local\Programs\Python\Python27\sip.
> > Creating sipconfig.py...
> > Creating top level Makefile...
> > Creating sip code generator Makefile...
> > Creating sip module Makefile...
> >
> > Setup the x86 building environment with
> > "C:\Program Files (x86)\Microsoft Visual
> Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86
> >
> > Followed by nmake:
> > Microsoft (R) Program Maintenance Utility Version 14.15.26729.0
> > Copyright (C) Microsoft Corporation.  All rights reserved.
> >
> >         cd siplib
> >         "C:\Program Files (x86)\Microsoft Visual
> Studio\2017\Enterprise\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\nmake.exe"
> >
> > Microsoft (R) Program Maintenance Utility Version 14.15.26729.0
> > Copyright (C) Microsoft Corporation.  All rights reserved.
> >
> >         cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -W3 -DNDEBUG -DUNICODE
> -DWIN32 -DQT_LARGEFILE_SUPPORT -DSIP_MODULE_NAME=\"PyQt5.sip\" -I.
> -IC:\Users\FiFo\AppData\Local\Programs\Python\Python27\include -Fo
> @C:\Users\FiFo\AppData\Local\Temp\nm8C0F.tmp
> > siplib.c
> > apiversions.c
> > descriptors.c
> > qtlib.c
> > threads.c
> > objmap.c
> > voidptr.c
> > array.c
> > int_convertors.c
> > Generating Code...
> >         cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -W3 -w34100 -w34189
> -DNDEBUG -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT
> -DSIP_MODULE_NAME=\"PyQt5.sip\" -I.
> -IC:\Users\FiFo\AppData\Local\Programs\Python\Python27\include -Fo
> @C:\Users\FiFo\AppData\Local\Temp\nm9111.tmp
> > bool.cpp
> >         link /NOLOGO /DYNAMICBASE /NXCOMPAT /DLL /MANIFEST
> /MANIFESTFILE:sip.pyd.manifest /SUBSYSTEM:CONSOLE /INCREMENTAL:NO
> /OUT:sip.pyd @C:\Users\FiFo\AppData\Local\Temp\nm9170.tmp
> >    Creating library sip.lib and object sip.exp
> >         mt -nologo -manifest sip.pyd.manifest -outputresource:sip.pyd;2
> >
> > The installed the packages with nmake install:
> > Microsoft (R) Program Maintenance Utility Version 14.15.26729.0
> > Copyright (C) Microsoft Corporation.  All rights reserved.
> >
> >         cd siplib
> >         "C:\Program Files (x86)\Microsoft Visual
> Studio\2017\Enterprise\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\nmake.exe"
> install
> >
> > Microsoft (R) Program Maintenance Utility Version 14.15.26729.0
> > Copyright (C) Microsoft Corporation.  All rights reserved.
> >
> >         copy /y sip.pyd
> C:\Users\FiFo\AppData\Local\Programs\Python\Python27\Lib\site-packages\PyQt5\sip.pyd
> >         1 file(s) copied.
> >         copy /y D:\opencv\sip-4.19.12\sip.pyi
> C:\Users\FiFo\AppData\Local\Programs\Python\Python27\Lib\site-packages\PyQt5\sip.pyi
> >         1 file(s) copied.
> >         C:\Users\FiFo\AppData\Local\Programs\Python\Python27\python.exe
> D:\opencv\sip-4.19.12\mk_distinfo.py ""
> C:\Users\FiFo\AppData\Local\Programs\Python\Python27\Lib\site-packages\PyQt5_sip-4.19.12.dist-info
> installed.txt
> >
> > D:\opencv\sip-4.19.12\sipgen>pip freeze
> > backports.functools-lru-cache==1.5
> > cycler==0.10.0
> > enum34==1.1.6
> > kiwisolver==1.0.1
> > matplotlib==2.2.3
> > numpy==1.15.1
> > Pillow==5.2.0
> > pynaoqi==2.1.4.13
> > pyparsing==2.2.0
> > PyQt5-sip==4.19.12
> > python-dateutil==2.7.3
> > pytz==2018.5
> > six==1.11.0
> >
> > But I cannot find that PyQt5.sip file anywhere. Building PyQt gives:
> > D:\opencv\PyQt5_gpl-5.11.2>python configure.py
> > Querying qmake about your Qt installation...
> > Error: Unable to import PyQt5.sip. Make sure you have configured SIP to
> create
> > a private copy of the sip module.
> >
> >
> > Any suggestions would be welcome
>
> The file is sip.pyd and the output above shows where it has been copied to.
>
> There is a bug (fixed in the current PyQt5 snapshot) that happens if you
> are building PyQt5 for the very first time. The workaround is to create an
> empty __init__.py file in the same directory containing sip.pyd.
>
> Phil

[Attachment #5 (text/html)]

<div dir="ltr"><div dir="ltr">great! I downloaded the latest snapshot of SIP and PyQt \
and now I&#39;m compiling<div>I used the following command for configuring \
PyQt:</div><div>python configure.py --qmake d:\qt5_32\bin\qmake.exe --static \
--sip-incdir ..\sip-4.19.13.dev1809111822\siplib --sip \
d:\opencv\sip-4.19.13.dev1809111822\sipgen\sip.exe \
--confirm-license<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On \
Mon, Sep 17, 2018 at 5:28 AM Phil Thompson &lt;<a \
href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">On 17 Sep 2018, at 3:20 am, FiFo \
&lt;<a href="mailto:fifothekid@gmail.com" \
target="_blank">fifothekid@gmail.com</a>&gt; wrote:<br> &gt; <br>
&gt; Hi all,<br>
&gt; <br>
&gt; I&#39;m building SIP 4.19.12 and PyQt 5.11.2 on Windows 10 with Visual Studio \
2017. I&#39;m planning to do that for Python x86 2.7.15.<br> &gt; I downloaded the \
versions above and extracted them, installed enum34 with pip, the configured SIP \
with<br> &gt; python configure.py --sip-module PyQt5.sip --no-tools<br>
&gt; This is SIP 4.19.12 for Python 2.7.15 on win32.<br>
&gt; The PyQt5.sip module will be installed in<br>
&gt; C:\Users\FiFo\AppData\Local\Programs\Python\Python27\Lib\site-packages\PyQt5.<br>
 &gt; The sip.pyi stub file will be installed in<br>
&gt; C:\Users\FiFo\AppData\Local\Programs\Python\Python27\Lib\site-packages\PyQt5.<br>
 &gt; The default directory to install .sip files in is<br>
&gt; C:\Users\FiFo\AppData\Local\Programs\Python\Python27\sip.<br>
&gt; Creating sipconfig.py...<br>
&gt; Creating top level Makefile...<br>
&gt; Creating sip code generator Makefile...<br>
&gt; Creating sip module Makefile...<br>
&gt; <br>
&gt; Setup the x86 building environment with<br>
&gt; &quot;C:\Program Files (x86)\Microsoft Visual \
Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat&quot; x86<br> &gt; <br>
&gt; Followed by nmake:<br>
&gt; Microsoft (R) Program Maintenance Utility Version 14.15.26729.0<br>
&gt; Copyright (C) Microsoft Corporation.   All rights reserved.<br>
&gt; <br>
&gt;              cd siplib<br>
&gt;              &quot;C:\Program Files (x86)\Microsoft Visual \
Studio\2017\Enterprise\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\nmake.exe&quot;<br> \
&gt; <br> &gt; Microsoft (R) Program Maintenance Utility Version 14.15.26729.0<br>
&gt; Copyright (C) Microsoft Corporation.   All rights reserved.<br>
&gt; <br>
&gt;              cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -W3 -DNDEBUG -DUNICODE \
-DWIN32 -DQT_LARGEFILE_SUPPORT -DSIP_MODULE_NAME=\&quot;PyQt5.sip\&quot; -I. \
-IC:\Users\FiFo\AppData\Local\Programs\Python\Python27\include -Fo \
@C:\Users\FiFo\AppData\Local\Temp\nm8C0F.tmp<br> &gt; siplib.c<br>
&gt; apiversions.c<br>
&gt; descriptors.c<br>
&gt; qtlib.c<br>
&gt; threads.c<br>
&gt; objmap.c<br>
&gt; voidptr.c<br>
&gt; array.c<br>
&gt; int_convertors.c<br>
&gt; Generating Code...<br>
&gt;              cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -W3 -w34100 -w34189 \
-DNDEBUG -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT \
-DSIP_MODULE_NAME=\&quot;PyQt5.sip\&quot; -I. \
-IC:\Users\FiFo\AppData\Local\Programs\Python\Python27\include -Fo \
@C:\Users\FiFo\AppData\Local\Temp\nm9111.tmp<br> &gt; bool.cpp<br>
&gt;              link /NOLOGO /DYNAMICBASE /NXCOMPAT /DLL /MANIFEST \
/MANIFESTFILE:sip.pyd.manifest /SUBSYSTEM:CONSOLE /INCREMENTAL:NO /OUT:sip.pyd \
@C:\Users\FiFo\AppData\Local\Temp\nm9170.tmp<br> &gt;      Creating library sip.lib \
and object sip.exp<br> &gt;              mt -nologo -manifest sip.pyd.manifest \
-outputresource:sip.pyd;2<br> &gt; <br>
&gt; The installed the packages with nmake install:<br>
&gt; Microsoft (R) Program Maintenance Utility Version 14.15.26729.0<br>
&gt; Copyright (C) Microsoft Corporation.   All rights reserved.<br>
&gt; <br>
&gt;              cd siplib<br>
&gt;              &quot;C:\Program Files (x86)\Microsoft Visual \
Studio\2017\Enterprise\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\nmake.exe&quot; \
install<br> &gt; <br>
&gt; Microsoft (R) Program Maintenance Utility Version 14.15.26729.0<br>
&gt; Copyright (C) Microsoft Corporation.   All rights reserved.<br>
&gt; <br>
&gt;              copy /y sip.pyd \
C:\Users\FiFo\AppData\Local\Programs\Python\Python27\Lib\site-packages\PyQt5\sip.pyd<br>
 &gt;              1 file(s) copied.<br>
&gt;              copy /y D:\opencv\sip-4.19.12\sip.pyi \
C:\Users\FiFo\AppData\Local\Programs\Python\Python27\Lib\site-packages\PyQt5\sip.pyi<br>
 &gt;              1 file(s) copied.<br>
&gt;              C:\Users\FiFo\AppData\Local\Programs\Python\Python27\python.exe \
D:\opencv\sip-4.19.12\mk_distinfo.py &quot;&quot; \
C:\Users\FiFo\AppData\Local\Programs\Python\Python27\Lib\site-packages\PyQt5_sip-4.19.12.dist-info \
installed.txt<br> &gt; <br>
&gt; D:\opencv\sip-4.19.12\sipgen&gt;pip freeze<br>
&gt; backports.functools-lru-cache==1.5<br>
&gt; cycler==0.10.0<br>
&gt; enum34==1.1.6<br>
&gt; kiwisolver==1.0.1<br>
&gt; matplotlib==2.2.3<br>
&gt; numpy==1.15.1<br>
&gt; Pillow==5.2.0<br>
&gt; pynaoqi==2.1.4.13<br>
&gt; pyparsing==2.2.0<br>
&gt; PyQt5-sip==4.19.12<br>
&gt; python-dateutil==2.7.3<br>
&gt; pytz==2018.5<br>
&gt; six==1.11.0<br>
&gt; <br>
&gt; But I cannot find that PyQt5.sip file anywhere. Building PyQt gives:<br>
&gt; D:\opencv\PyQt5_gpl-5.11.2&gt;python configure.py<br>
&gt; Querying qmake about your Qt installation...<br>
&gt; Error: Unable to import PyQt5.sip. Make sure you have configured SIP to \
create<br> &gt; a private copy of the sip module.<br>
&gt; <br>
&gt; <br>
&gt; Any suggestions would be welcome<br>
<br>
The file is sip.pyd and the output above shows where it has been copied to.<br>
<br>
There is a bug (fixed in the current PyQt5 snapshot) that happens if you are building \
PyQt5 for the very first time. The workaround is to create an empty __init__.py file \
in the same directory containing sip.pyd.<br> <br>
Phil</blockquote></div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic