Phil/Jim, Thanks a lot guys for the prompt response. I can chill for a few days, and then If there isn't a SIP 4.0 compatible version of PyQt I'll just roll back.
Thanks. Heath. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:00 AM To: [EMAIL PROTECTED] Subject: PyKDE digest, Vol 1 #1288 - 8 msgs Send PyKDE mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe via the World Wide Web, visit http://mats.imk.fraunhofer.de/mailman/listinfo/pykde or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of PyKDE digest..." Today's Topics: 1. diff behave PyQt/3.7/3.8 on i.e. QColor.__eq__() (kscalet) 2. Re: diff behave PyQt/3.7/3.8 on i.e. QColor.__eq__() (Phil Thompson) 3. Internal error in python.py PyKDE 3.8.0 over python2.3 (Mateusz Korniak) 4. Re: Internal error in python.py PyKDE 3.8.0 over python2.3 (Jim Bublitz) 5. screensaver? (Peter Osborne) 6. sip: sip/qtmod.sip:33 parse error (Heath Feather) 7. Re: sip: sip/qtmod.sip:33 parse error (Phil Thompson) 8. Re: sip: sip/qtmod.sip:33 parse error (Jim Bublitz) --__--__-- Message: 1 Date: Tue, 11 Nov 2003 13:38:57 +0100 From: kscalet <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [PyKDE] diff behave PyQt/3.7/3.8 on i.e. QColor.__eq__() That used to work with PyQt 3.7, but now with my new installation of PyQt 3.8 it no longer does: -- code fragment -- c_sav = None c = QColor() if c != c_sav: c_sav = c -- -- -- -- brings: Traceback (..): .. RuntimeError: Cannot pass None as argument 1 in this call As I said, this code worked before. Not a big deal to work around, but I wonder why / what's the difference. Thank you for your ideas, Karl PS: using precompiled binaries for Windows (2000) --__--__-- Message: 2 From: Phil Thompson <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] Organization: Riverbank Computing Limited To: kscalet <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subject: Re: [PyKDE] diff behave PyQt/3.7/3.8 on i.e. QColor.__eq__() Date: Tue, 11 Nov 2003 13:01:00 +0000 On Tuesday 11 November 2003 12:38 pm, kscalet wrote: > That used to work with PyQt 3.7, but now with my new installation > of PyQt 3.8 it no longer does: > > -- code fragment -- > c_sav = None > c = QColor() > if c != c_sav: > c_sav = c > -- -- -- -- > brings: > Traceback (..): > .. > RuntimeError: Cannot pass None as argument 1 in this call > > As I said, this code worked before. Not a big deal to work around, > but I wonder why / what's the difference. > > Thank you for your ideas, > > Karl > > PS: using precompiled binaries for Windows (2000) It's a bug which has been fixed in current snapshots. Phil --__--__-- Message: 3 From: Mateusz Korniak <[EMAIL PROTECTED]> Date: Tue, 11 Nov 2003 14:50:27 +0100 To: [EMAIL PROTECTED] Subject: [PyKDE] Internal error in python.py PyKDE 3.8.0 over python2.3 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.79652 + umask 022 + cd /home/users/matkor/rpm/BUILD + cd PyKDE-3.8.0 + KDEDIR=/usr + python build.py -q /usr -k /usr -i /usr/include/qt -d /tmp/python-PyKDE-3.8.0-root-matkor/usr/lib/python2.3/site-packages -t /usr/lib Building PyKDE 3.8 on linux2. Python version is 2.3 Python parent directory is /usr/lib/python2.3 Python library directory is /usr/lib Python include directory is /usr/include/python2.3 Home directory is /home/users/matkor sip code generator path (sip) is /usr/bin sip version is 3.8 sip lib directory (libsip*) is /usr/lib/python2.3/site-packages sip include directory (sipQt.h) is /usr/include/python2.3 Qt3 parent directory is /usr Qt3 lib directory (libqt-mt.so.3) is /usr/lib An internal error occured. Review the installation documentation or report all the output from the program, including the traceback, to the PyKDE mailing list: <[EMAIL PROTECTED]>. Thanks. Traceback (most recent call last): File "build.py", line 1038, in ? main (sys.argv) File "build.py", line 989, in main dis = Discovery (opts, usingSip, usingQt, usingPyQt, usingKDE, usingPyKDE, isPyKDE) File "build/discover.py", line 483, in __init__ self.discoverQt3 (opts) File "build/discover.py", line 608, in discoverQt3 self.qtIncl = DiscoverQt3Incl ("qglobal.h", [os.path.join (self.qt.path, "include"), qtInclDir]) File "build/discover.py", line 202, in __init__ Discover.__init__ (self, target, searchPath) File "build/discover.py", line 45, in __init__ self.search (target, searchEntry) File "build/discover.py", line 58, in search if os.path.isdir (searchEntry)\ File "/usr/lib/python2.3/posixpath.py", line 187, in isdir TypeError: coercing to Unicode: need string or buffer, list found error: Bad exit status from /var/tmp/rpm-tmp.79652 (%build) Any ideas ? -- Mateusz Korniak "Black holes are where God divided by zero." - Steven Wright --__--__-- Message: 4 From: Jim Bublitz <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: pykde mailing list <[EMAIL PROTECTED]> Subject: Re: [PyKDE] Internal error in python.py PyKDE 3.8.0 over python2.3 Date: Tue, 11 Nov 2003 10:46:26 -0800 On Tuesday November 11 2003 05:50, Mateusz Korniak wrote: > + python build.py -q /usr -k /usr -i /usr/include/qt -d > Qt3 parent directory is /usr > Qt3 lib directory (libqt-mt.so.3) is /usr/lib > File "build/discover.py", line 58, in search > if os.path.isdir (searchEntry)\ > File "/usr/lib/python2.3/posixpath.py", line 187, in isdir > TypeError: coercing to Unicode: need string or buffer, list > found error: Bad exit status from /var/tmp/rpm-tmp.79652 > (%build) > Any ideas ? It's failing while trying to find /usr/include/qt from your -i above (assuming build.py read the option correctly too). I'm not sure if the "TypeError" is meaningful or not. Could you try this? In PyKDE-3.8.0/build/discover.py, add the print stmt as shown before line 58: if not searchEntry: return print searchEntry if os.path.isdir (searchEntry)\ and let me know what prints out there? The call to this code is originating in the "discoverQt" method if you need or want to inverstigate further. The cause of the error should be somewhere in that region. Thanks, Jim --__--__-- Message: 5 From: Peter Osborne <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Tue, 11 Nov 2003 14:50:32 -0500 Subject: [PyKDE] screensaver? Hello All, I was wondering if anyone has some ideas on how one would go about writing a simple screen saver using pyqt? I figured I could us similar techniques that are used to create a splash screen but how does one go capturing any keyboard or mouse movement to clear the screen saver? Thanks, Pete --__--__-- Message: 6 Date: Tue, 11 Nov 2003 15:49:40 -0800 From: "Heath Feather" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: [PyKDE] sip: sip/qtmod.sip:33 parse error This is a multi-part message in MIME format. ------_=_NextPart_001_01C3A8AE.79032632 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I received the following Error when trying to build PyQt.=20 =20 =20 ********************************** Generating the C++ source code for the qt module ********************************** sip: sip/qtmod.sip:33 parse error =20 =20 I was using PyQt-x11-gpl-3.8.1 and sip-x11-gpl-4.0pre3. =20 Examining the file qtmod.sip, line 33 contains the following %C++code, Then examining the changelog for this version of SIP, on 2003/10/24 phil stated the following. =20 2003/10/23 18:28:27 phil Renamed %C++Code to %TypeCode or %ModuleCode depending on the context. =20 =20 Changing this line to %ModuleCode allowed it to go further. Then it died at line 23 of qglobal.sip. This line is as follows =20 %HeaderCode, this too is supposed to be renamed to %ModuleHeaderCode or the like. =20 So the question is. Have I downloaded the wrong packages, or should I keep pressing on making these little fixes ? =20 Any help would be appreciated. Heath. =20 =20 =20 =20 ------_=_NextPart_001_01C3A8AE.79032632 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} pre {margin:0in; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New";} span.EmailStyle17 {font-family:Arial; color:windowtext;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>I received the following Error when trying to build = PyQt. </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>**********************************</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Generating the C++ source code for the qt = module</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>**********************************</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>sip: sip/qtmod.sip:33 parse error</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>I was using PyQt-x11-gpl-3.8.1 and = sip-x11-gpl-4.0pre3.</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Examining the file qtmod.sip, line 33 contains the = following %C++code, Then examining the changelog for this version of SIP, on = 2003/10/24 phil stated the following.</span></font></p> <pre><font size=3D2 face=3D"Courier New"><span = style=3D'font-size:10.0pt'> </span></font></pre><pre><font size=3D2 face=3D"Courier New"><span = style=3D'font-size:10.0pt'>2003/10/23 </span></font>18:28:27 = phil</pre><pre><font size=3D2 face=3D"Courier New"><span = style=3D'font-size:10.0pt'>Renamed %C++Code to %TypeCode or %ModuleCode = depending on the context.</span></font></pre> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'>Changing this line to %ModuleCode allowed it to go further. Then = it died at line 23 of qglobal.sip. This line is as = follows</span></font></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'> </span></font></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'>%HeaderCode, this too is supposed to be renamed to = %ModuleHeaderCode or the like.</span></font></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'> </span></font></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'>So the question is. Have I downloaded the wrong packages, or = should I keep pressing on making these little fixes ?</span></font></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'> </span></font></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'>Any help would be appreciated.</span></font></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'>Heath.</span></font></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'> </span></font></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'> </span></font></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'> </span></font></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'> </span></font></p> </div> </body> </html> =00 ------_=_NextPart_001_01C3A8AE.79032632-- --__--__-- Message: 7 From: Phil Thompson <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] Organization: Riverbank Computing Limited To: "Heath Feather" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: Re: [PyKDE] sip: sip/qtmod.sip:33 parse error Date: Wed, 12 Nov 2003 00:46:08 +0000 You need current PyQt snapshots for SIP v4. However, I would hold off for a few days until v4.0pre4. Phil On Tuesday 11 November 2003 11:49 pm, Heath Feather wrote: > I received the following Error when trying to build PyQt. > > > > > > ********************************** > > Generating the C++ source code for the qt module > > ********************************** > > sip: sip/qtmod.sip:33 parse error > > > > > > I was using PyQt-x11-gpl-3.8.1 and sip-x11-gpl-4.0pre3. > > > > Examining the file qtmod.sip, line 33 contains the following %C++code, > Then examining the changelog for this version of SIP, on 2003/10/24 phil > stated the following. > > > 2003/10/23 18:28:27 phil > Renamed %C++Code to %TypeCode or %ModuleCode depending on the context. > > > > > > Changing this line to %ModuleCode allowed it to go further. Then it died > at line 23 of qglobal.sip. This line is as follows > > > > %HeaderCode, this too is supposed to be renamed to %ModuleHeaderCode or > the like. > > > > So the question is. Have I downloaded the wrong packages, or should I > keep pressing on making these little fixes ? > > > > Any help would be appreciated. > > Heath. --__--__-- Message: 8 From: Jim Bublitz <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: "Heath Feather" <[EMAIL PROTECTED]>, pykde mailing list <[EMAIL PROTECTED]> Subject: Re: [PyKDE] sip: sip/qtmod.sip:33 parse error Date: Tue, 11 Nov 2003 17:44:50 -0800 On Tuesday November 11 2003 16:28, Heath Feather wrote: > I received the following Error when trying to build PyQt. > ********************************** > > Generating the C++ source code for the qt module > > ********************************** > > sip: sip/qtmod.sip:33 parse error > I was using PyQt-x11-gpl-3.8.1 and sip-x11-gpl-4.0pre3. > Examining the file qtmod.sip, line 33 contains the following > %C++code, Then examining the changelog for this version of > SIP, on 2003/10/24 phil stated the following. > 2003/10/23 18:28:27 phil > Renamed %C++Code to %TypeCode or %ModuleCode depending on the > context. > Changing this line to %ModuleCode allowed it to go further. > Then it died at line 23 of qglobal.sip. This line is as > follows > %HeaderCode, this too is supposed to be renamed to > %ModuleHeaderCode or the like. > So the question is. Have I downloaded the wrong packages, or > should I keep pressing on making these little fixes ? > Any help would be appreciated. This is really Phil's to answer, but since it's after midnight in the UK, I'll give you a provisional answer and Phil can correct me later ... You probably could, with considerable effort, get PyQt-3.8.1 to build with sip 4.0. However, there are a *huge* number of syntax changes you'll need to make throughout *.sip (including deleting a lot of no longer needed code). Phil doesn't (as of a couple days ago when I asked him) have a PyQt that's buildable with sip 4.0 at the moment - PyQt is "in transition" - he's in the process of making all of the changes in the previous paragraph (and perhaps debugging sip a little too). He indicated to me that he would post to the list when a sip 4.0 compatible PyQt will be available - probably not too long from now. For anyone curious, I haven't started on a sip 4.0 compatible PyKDE yet - maybe in another week or so (start that is, not release). In my case that's updating tools, not PyKDE code, so there won't be a snapshot until it's fairly complete. Probably the same release as KDE 3.2-final support. Jim --__--__-- _______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde End of PyKDE Digest _______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
