Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-15 Thread Simon Edwards

Adeodato Simó wrote:

Hello,

I upgraded to PyQt 4.4.2 this morning, and now KAboutData no longer
works for me:


How did you upgrade and this which version of PyKDE4 are you using? and 
how did you install PyKDE4. While working on the PyKDE 4.1 I came across 
a build problem which happen if PyQt 4.4 is used. The symptoms were 
rather confusing. This was the fix:


http://websvn.kde.org/?view=revrevision=812575

cheers,

--
Simon Edwards | KDE-NL, Guidance tools, Guarddog Firewall
[EMAIL PROTECTED]   | http://www.simonzone.com/software/
Nijmegen, The Netherlands | ZooTV? You made the right choice.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-15 Thread Adeodato Simó
* Jim Bublitz [Sat, 14 Jun 2008 14:00:27 -0700]:

 It works here with Qt 4.3/PyQt 4.3.3/sip 4.7.4/KDE 4.0.2/PyKDE 4.0.2.

Right, it is without doubt related to PyQt, because upgrading that is
what caused the problem. This is my last *working* state:

  sip - 4.7.6
  Qt  - 4.4.0
  PyQt - 4.3.3 -- note this
  KDE  - 4.0.80
  PyKDE4 - 4.0.2 (from Riverbank)

If I upgrade PyQt to 4.4.2, things stop working. Also note how running
PyQt 4.3 against Qt 4.4 works, and PyKDE4 against KDE 4.0.80 too.

 I doubt there's been a change in KDE (you don't indicate a version), so it's 
 likely there's some change in sip or PyQt that's causing the problem. I'll 
 have to upgrade to troubleshoot it, and that may take me a while to get to.

So, Jim, sounds like a change in PyQt, yes. No idea if this could be
related to the fix Simon mentions or not.

Cheers,

-- 
Adeodato Simó dato at net.com.org.es
Debian Developer  adeodato at debian.org
 
He who has not a good memory should never take upon himself the trade of lying.
-- Michel de Montaigne

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-15 Thread Simon Edwards

Adeodato Simó wrote:

* Jim Bublitz [Sat, 14 Jun 2008 14:00:27 -0700]:

It works here with Qt 4.3/PyQt 4.3.3/sip 4.7.4/KDE 4.0.2/PyKDE 4.0.2.


Right, it is without doubt related to PyQt, because upgrading that is
what caused the problem. This is my last *working* state:

  sip - 4.7.6
  Qt  - 4.4.0
  PyQt - 4.3.3 -- note this
  KDE  - 4.0.80
  PyKDE4 - 4.0.2 (from Riverbank)

If I upgrade PyQt to 4.4.2, things stop working. Also note how running
PyQt 4.3 against Qt 4.4 works, and PyKDE4 against KDE 4.0.80 too.



So, Jim, sounds like a change in PyQt, yes. No idea if this could be
related to the fix Simon mentions or not.


Did you recompile PyKDE4 against the new version of PyQt4? When 
recompiling PyKDE4, did it see that PyQt 4.4 was being used?


cheers,

--
Simon Edwards | KDE-NL, Guidance tools, Guarddog Firewall
[EMAIL PROTECTED]   | http://www.simonzone.com/software/
Nijmegen, The Netherlands | ZooTV? You made the right choice.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-15 Thread Adeodato Simó
* Simon Edwards [Sun, 15 Jun 2008 15:07:28 +0200]:

   sip - 4.7.6
   Qt  - 4.4.0
   PyQt - 4.3.3 -- note this
   KDE  - 4.0.80
   PyKDE4 - 4.0.2 (from Riverbank)

 If I upgrade PyQt to 4.4.2, things stop working. Also note how running
 PyQt 4.3 against Qt 4.4 works, and PyKDE4 against KDE 4.0.80 too.

 So, Jim, sounds like a change in PyQt, yes. No idea if this could be
 related to the fix Simon mentions or not.

 Did you recompile PyKDE4 against the new version of PyQt4? When  
 recompiling PyKDE4, did it see that PyQt 4.4 was being used?

No, I didn't, and I really hope the answer is not You need to.

-- 
Adeodato Simó dato at net.com.org.es
Debian Developer  adeodato at debian.org
 
  Listening to: Mastretta - Última vuelta en Monmeló

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-15 Thread Jim Bublitz
On Sunday 15 June 2008 06:36, Adeodato Simó wrote:
 * Simon Edwards [Sun, 15 Jun 2008 15:07:28 +0200]:
sip - 4.7.6
Qt  - 4.4.0
PyQt - 4.3.3 -- note this
KDE  - 4.0.80
PyKDE4 - 4.0.2 (from Riverbank)
 
  If I upgrade PyQt to 4.4.2, things stop working. Also note how running
  PyQt 4.3 against Qt 4.4 works, and PyKDE4 against KDE 4.0.80 too.
 
  So, Jim, sounds like a change in PyQt, yes. No idea if this could be
  related to the fix Simon mentions or not.
 
  Did you recompile PyKDE4 against the new version of PyQt4? When
  recompiling PyKDE4, did it see that PyQt 4.4 was being used?

 No, I didn't, and I really hope the answer is not You need to.

Unfortunately, you do need to recompile PyKDE any time you change sip or PyQt 
versions.

I wouldn't guarantee that will fix the problem, but it's a first step.

Jim


___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-14 Thread Jim Bublitz
On Friday 13 June 2008 08:19, Adeodato Simó wrote:
 * Jim Bublitz [Fri, 13 Jun 2008 07:50:31 -0700]:
  PyKDE3 or PyKDE4?

 Er, PyKDE4 (since I said I was using PyQt 4.4...)

But you're trying to use KDE3 syntax.

There is no KAboutData ctor that takes only a char string (or QString). Look 
at the PyKDE4 docs or:

http://api.kde.org/4.0-api/kdelibs-apidocs/kdecore/html/classKAboutData.html

There are examples in PyKDE4 that demonstrate KAboutData (in fact every 
example uses KAboutData)

Jim


___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-14 Thread Adeodato Simó
* Jim Bublitz [Sat, 14 Jun 2008 10:37:07 -0700]:

Hello,

 On Friday 13 June 2008 08:19, Adeodato Simó wrote:
  * Jim Bublitz [Fri, 13 Jun 2008 07:50:31 -0700]:
   PyKDE3 or PyKDE4?

  Er, PyKDE4 (since I said I was using PyQt 4.4...)

 But you're trying to use KDE3 syntax.

 There is no KAboutData ctor that takes only a char string (or QString). Look 
 at the PyKDE4 docs or:

 http://api.kde.org/4.0-api/kdelibs-apidocs/kdecore/html/classKAboutData.html

 There are examples in PyKDE4 that demonstrate KAboutData (in fact every 
 example uses KAboutData)

I know what the signature of KABoutData looks like in PyKDE4. My point
was that passing a string for the first argument raises invalid type.
You get the same error if you specify all the arguments, or only one, so
I saved myself from typing them all.

(I can see how my example could confuse you, though, so in the future
I'll try not to do that again.)

Cheers,

-- 
Adeodato Simó dato at net.com.org.es
Debian Developer  adeodato at debian.org
 
 Listening to: El Hombre Burbuja - Bang, me apuntaste y bang

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-14 Thread Christoph Burgmer
Just to make it clear, creating the correct type doesn't help:

from PyKDE4.kdecore import KAboutData, ki18n
from PyQt4.QtCore import QByteArray
aboutData = KAboutData(, , ki18n(), )
aboutData = KAboutData(QByteArray(), QByteArray(), ki18n(), 
QByteArray())

Gives the following:

Python 2.5.2 (r252:60911, May 28 2008, 08:35:32)
[GCC 4.2.4 (Debian 4.2.4-1)] on linux2
Type help, copyright, credits or license for more information.
 from PyKDE4.kdecore import KAboutData, ki18n
 from PyQt4.QtCore import QByteArray
 aboutData = KAboutData(, , ki18n(), )
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: argument 1 of KAboutData() has an invalid type
 aboutData = KAboutData(QByteArray(), QByteArray(), ki18n(), 
QByteArray())
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: argument 1 of KAboutData() has an invalid type

Chris
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-14 Thread Jim Bublitz
On Saturday 14 June 2008 11:52, Adeodato Simó wrote:
 * Jim Bublitz [Sat, 14 Jun 2008 10:37:07 -0700]:

 Hello,

  On Friday 13 June 2008 08:19, Adeodato Simó wrote:
   * Jim Bublitz [Fri, 13 Jun 2008 07:50:31 -0700]:
PyKDE3 or PyKDE4?
  
   Er, PyKDE4 (since I said I was using PyQt 4.4...)
 
  But you're trying to use KDE3 syntax.
 
  There is no KAboutData ctor that takes only a char string (or QString).
  Look at the PyKDE4 docs or:
 
  http://api.kde.org/4.0-api/kdelibs-apidocs/kdecore/html/classKAboutData.h
 tml
 
  There are examples in PyKDE4 that demonstrate KAboutData (in fact every
  example uses KAboutData)

 I know what the signature of KABoutData looks like in PyKDE4. My point
 was that passing a string for the first argument raises invalid type.
 You get the same error if you specify all the arguments, or only one, so
 I saved myself from typing them all.

 (I can see how my example could confuse you, though, so in the future
 I'll try not to do that again.)

It works here with Qt 4.3/PyQt 4.3.3/sip 4.7.4/KDE 4.0.2/PyKDE 4.0.2.

I doubt there's been a change in KDE (you don't indicate a version), so it's 
likely there's some change in sip or PyQt that's causing the problem. I'll 
have to upgrade to troubleshoot it, and that may take me a while to get to.

Jim

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] KAboutData() broken when using PyQt 4.4

2008-06-13 Thread Adeodato Simó
Hello,

I upgraded to PyQt 4.4.2 this morning, and now KAboutData no longer
works for me:

 kdecore.KAboutData('foo')
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: argument 1 of KAboutData() has an invalid type

Instead of the expected:

 kdecore.KAboutData('foo')
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: insufficient number of arguments to KAboutData()


This has broken my application, any ideas?

-- 
Adeodato Simó dato at net.com.org.es
Debian Developer  adeodato at debian.org
 
   Listening to: Joaquín Sabina - Como un explorador

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-13 Thread Jim Bublitz
On Friday 13 June 2008 01:23, Adeodato Simó wrote:
 Hello,

 I upgraded to PyQt 4.4.2 this morning, and now KAboutData no longer

 works for me:
  kdecore.KAboutData('foo')

 Traceback (most recent call last):
   File stdin, line 1, in module
 TypeError: argument 1 of KAboutData() has an invalid type

 Instead of the expected:
  kdecore.KAboutData('foo')

 Traceback (most recent call last):
   File stdin, line 1, in module
 TypeError: insufficient number of arguments to KAboutData()


 This has broken my application, any ideas?

PyKDE3 or PyKDE4?

Jim

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-13 Thread Adeodato Simó
* Jim Bublitz [Fri, 13 Jun 2008 07:50:31 -0700]:

 PyKDE3 or PyKDE4?

Er, PyKDE4 (since I said I was using PyQt 4.4...)

Cheers,

-- 
Adeodato Simó dato at net.com.org.es
Debian Developer  adeodato at debian.org
 
Listening to: Joaquín Sabina - Y sin embargo

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-13 Thread Christoph Burgmer
Am Freitag, 13. Juni 2008 schrieb Adeodato Simó:
 * Jim Bublitz [Fri, 13 Jun 2008 07:50:31 -0700]:
  PyKDE3 or PyKDE4?

 Er, PyKDE4 (since I said I was using PyQt 4.4...)

Dunno if it helps, but I have the same problem. I guess we're using the same 
version(s) as I'm using the Debian package over here.

Chris

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt