Re: [PyQt] Installing SIP snapshot - 'install' fails
Just another comment, since I got as far as 'making' sip, would it be enough to manually copy the files to their proper place? The SIP code generator will be installed in c:\python33. The sip module will be installed in c:\python33\Lib\site-packages. The sip.h header file will be installed in c:\python33\include. The default directory to install .sip files in is c:\python33\sip. Tim On 12/10/2013 19:55, Timothy W. Grove wrote: I'm getting a little nearer to installing SIP. I've downloaded the latest snapshot and entered the commands into a MYSYS terminal: $ /c/python33/python.exe configure.py --platform win32-g++ $ make $ make install Configure and Make seem okay but Install fails. /bin/sh: -c: line 1: syntax error: unexpected end of file make[1]: *** [install] Error 2 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Installing SIP snapshot - 'install' fails
I'm getting a little nearer to installing SIP. I've downloaded the latest snapshot and entered the commands into a MYSYS terminal: $ /c/python33/python.exe configure.py --platform win32-g++ $ make $ make install Configure and Make seem okay but Install fails. /bin/sh: -c: line 1: syntax error: unexpected end of file make[1]: *** [install] Error 2 Any ideas what to try? Next post will hopefully report success... Best regards, Tim Grove Timothy@Timothy-Laptop /c/Users/Timothy/Downloads/sip-4.15.3-snapshot-5dc8c370157e/sip-4.15.3-snapshot-5dc8c370157e $ /c/python33/python.exe configure.py --platform win32-g++ This is SIP 4.15.3-snapshot-5dc8c370157e for Python 3.3.2 on win32. The SIP code generator will be installed in c:\python33. The sip module will be installed in c:\python33\Lib\site-packages. The sip.h header file will be installed in c:\python33\include. The default directory to install .sip files in is c:\python33\sip. The platform/compiler configuration is win32-g++. Creating siplib\sip.h... Creating siplib\siplib.c... Creating siplib\siplib.sbf... Creating sipconfig.py... Creating top level Makefile... Creating sip code generator Makefile... Creating sip module Makefile... Timothy@Timothy-Laptop /c/Users/Timothy/Downloads/sip-4.15.3-snapshot-5dc8c370157e/sip-4.15.3-snapshot-5dc8c370157e $ make make[1]: Entering directory `/c/Users/Timothy/Downloads/sip-4.15.3-snapshot-5dc8c370157e/sip-4.15.3-snapshot-5dc8c370157e/sipgen' gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o main.o main.c gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o transform.o transform.c gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o gencode.o gencode.c gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o extracts.o extracts.c gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o export.o export.c gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o heap.o heap.c gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o parser.o parser.c gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o lexer.o lexer.c g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -Wl,-s -o sip.exe main.o transform.o gencode.o extracts.o export.o heap.o parser.o lexer.o make[1]: Leaving directory `/c/Users/Timothy/Downloads/sip-4.15.3-snapshot-5dc8c370157e/sip-4.15.3-snapshot-5dc8c370157e/sipgen' make[1]: Entering directory `/c/Users/Timothy/Downloads/sip-4.15.3-snapshot-5dc8c370157e/sip-4.15.3-snapshot-5dc8c370157e/siplib' gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -Ic:\python33\include -o siplib.o siplib.c gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -Ic:\python33\include -o apiversions.o apiversions.c gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -Ic:\python33\include -o descriptors.o descriptors.c gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -Ic:\python33\include -o qtlib.o qtlib.c gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -Ic:\python33\include -o threads.o threads.c gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -Ic:\python33\include -o objmap.o objmap.c gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -Ic:\python33\include -o voidptr.o voidptr.c gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -Ic:\python33\include -o array.o array.c g++ -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -Ic:\python33\include -o bool.o bool.cpp g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -shared -Wl,-subsystem,console -Wl,-s -o sip.pyd siplib.o apiversions.o descriptors.o qtlib.o threads.o objmap.o voidptr.o array.o bool.o -Lc:\python33\libs -lpython33 make[1]: Leaving directory `/c/Users/Timothy/Downloads/sip-4.15.3-snapshot-5dc8c370157e/sip-4.15.3-snapshot-5dc8c370157e/siplib' Timothy@Timothy-Laptop /c/Users/Timothy/Downloads/sip-4.15.3-snapshot-5dc8c370157e/sip-4.15.3-snapshot-5dc8c370157e $ make install make[1]: Entering directory `/c/Users/Timothy/Downloads/sip-4.15.3-snapshot-5dc8c370157e/sip-4.15.3-snapshot-5dc8c370157e/sipgen' /bin/sh: -c: line 1: syntax error: unexpected end of file make[1]: *** [install] Error 2 make[1]: Leaving directory `/c/Users/Timothy/Downloads/sip-4.15.3-snapshot-5dc8c370157e/sip-4.15.3-snapshot-5dc8c370157e/sipgen' make: *** [install] Error 2 Timothy@Timothy-Laptop /c/Users/Timothy/Downloads/sip-4.15.3-snapshot-5dc8c370157e/sip-4.15.3-snapshot-5dc8c370157e $ ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] "making" sip-4.15.2 - how much memory does this need???
Okay. I've updated my MinGW files and seem to have gotten away from my memory problems. It appears that 'make' was just looping, going in and out of the sipgen directory and not much else until my system ran out of memory space. Now, starting with a clean download of sip and running commands from the Windows terminal, I get the following (still erroneous) output. Running from a MYSYS terminal has similar results which I can include if that helps. Does the following give any clues to my problems? I have previously installed PyQt4.10 using the Windows installer; would any sip files from that be interfering? Thanks for any help. installed: mingw32-gcc-g++ 4.8.1-3; mingw32-make 3.82.90-2-cvs-20120902 Best regards, Tim Grove ## WINDOWS CMD TERMINAL Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. ## CONFIGURE C:\Users\Timothy\Downloads\sip-4.15.2\sip-4.15.2>C:\Python33\python.exe Configure.py --platform win32-g++ This is SIP 4.15.2 for Python 3.3.2 on win32. The SIP code generator will be installed in C:\Python33. The sip module will be installed in C:\Python33\Lib\site-packages. The sip.h header file will be installed in C:\Python33\include. The default directory to install .sip files in is C:\Python33\sip. The platform/compiler configuration is win32-g++. Creating siplib\sip.h... Creating siplib\siplib.c... Creating siplib\siplib.sbf... Creating sipconfig.py... Creating top level Makefile... Creating sip code generator Makefile... Creating sip module Makefile... ## MAKE C:\Users\Timothy\Downloads\sip-4.15.2\sip-4.15.2>C:\MinGW\bin\mingw32-make.exe mingw32-make[1]: Entering directory 'C:/Users/Timothy/Downloads/sip-4.15.2/sip-4.15.2/sipgen' gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o main.o main.c gcc: error: CreateProcess: No such file or directory Makefile:29: recipe for target 'main.o' failed mingw32-make[1]: *** [main.o] Error 1 mingw32-make[1]: Leaving directory 'C:/Users/Timothy/Downloads/sip-4.15.2/sip-4. 15.2/sipgen' Makefile:3: recipe for target 'all' failed mingw32-make: *** [all] Error 2 On 11/10/2013 13:38, Timothy W. Grove wrote: I've downloaded the source for sip-4.15.2 and have been trying to install in on Windows 7. Possibly not a good idea as I don't wish to interfere with sip in my current installation of PyQt4.10.3, but another package I'm trying to install requires sipdistutils and sipconfig, and I can't find these. What version of sip is PyQt4.10.3 built on? I've already read some documentation on build systems at http://pyqt.sourceforge.net/Docs/PyQt4/build_system.html, so it may be that I cannot install this other package in its current state anyway (https://github.com/hmeine/qimage2ndarray). I followed the instructions found at http://pyqt.sourceforge.net/Docs/sip4/installation.html (mingw32-g++) and ran the following in the Windows cmd terminal. c:\python33\python configure.py --platform win32-g++ C:\MinGW\bin\mingw32-make.exe 'Configure' worked fine and 'make' started out okay but eventually failed. I tried the same from within a MSYS terminal (mintty.exe) with the same results but this time my system complained about running out of memory. I ran the commands again but with a memory monitor running and saw memory usage creep up slowly until it ran out completely and then failure came again. I've got 3Mb of RAM installed and on my 32-bit Windows system this is all it can use. Does installing sip really require this much memory, or does this point to a 'leak' somewhere? Any advice welcome. Best regards, Tim Grove ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] SIP_READ_ONLY was not declared in this scope
On Wed, 9 Oct 2013 19:16:59 +0200, Filippo Cucchetto wrote: > Hi, > i'm trying to cross compile the PyQt bindings for my raspberry pi. During > the build process make fails with: > /home/filippo/Raspberry/src/PyQt-gpl-5.1.1-snapshot-41b8f6ca2ea4/sip/QtQuick/qsggeometry.sip:67:21: > error: 'SIP_READ_ONLY' was not declared in this scope > > i'm using the pyqt snapshot 41b8f6ca2ea4 and the latest sip version > retrieved through mercurial. Any idea? i think that maybe i missed some > kind of parameter to pass to the configure.py script. Make sure you are picking up the latest sip.h and not the one installed on the pi by default (which is too old). Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Missing QPageSize enum in vars(QPrinter) ?
On Thu, 10 Oct 2013 09:43:10 -0400, lloyd konneker wrote: > This code worked in PyQt4 and Qt4 to get a dictionary of paper size names: > > paperSizeNames = {} > print(vars(QPrinter)) > for key, value in vars(QPrinter).items(): # Python2 iteritems(): >if isinstance(value, QPrinter.PageSize): > print(key, value) > paperSizeNames[value] = key > > It no longer works in PyQt5 and Qt5.0.1. But other enum values appear > to be in vars(QPrinter)? Is missing QPageSize enum a bug of omission in > PyQt5? > > This is NOT too important, since Qt 5.1 offers > QPrinter.supportedSizesWithNames(), which more or less does the same > thing (returns a map from names to QSizeF, which I suppose could be > mapped to QPageSize enum values i.e. encodings.) > > Is there another way to get the names of Qt enum values? In Qt5 the PageSize enum is defined in the QPagedPaintDevice class. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt