[PyQt] PyKDE4-4.0.2 release

2008-03-11 Thread Jim Bublitz
PyKDE4-4.0.2 is now available at riverbankcomputing.com.

It includes some minor fixes to problems that were preventing PyKDE4 from 
building against KDE 4.0.2, the addition to kdecore of some global functions 
for retrieving version info about KDE and PyKDE4 (see Using PyKDE4 in the 
documentation), and some additional changes to the docs.

This release should build against any KDE4 version currently in release.

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


Re: [PyQt] PyKDE4-4.0.2 release

2008-03-11 Thread Detlev Offenbach
On Dienstag, 11. März 2008, Jim Bublitz wrote:
 PyKDE4-4.0.2 is now available at riverbankcomputing.com.

 It includes some minor fixes to problems that were preventing PyKDE4 from
 building against KDE 4.0.2, the addition to kdecore of some global
 functions for retrieving version info about KDE and PyKDE4 (see Using
 PyKDE4 in the documentation), and some additional changes to the docs.

 This release should build against any KDE4 version currently in release.


Hi,

I have a dual installation of KDE. KDE4 is installed alongside KDE3, which is 
my main desktop. The environment variable KDEDIR is set to /opt/kde3 
(openSUSE 10.3). This makes configure.py to pick up KDE3 instead of KDE4. 
Here is an excerpt of the output.


 PyKDE version 4.0.2
   ---

Python include directory is /usr/include/python2.5
Python version is 2.5.1

sip version is 4.7.5-snapshot-20080229 (4.7.5)

Qt directory is /usr
Qt version is 4.3.4

PyQt directory is /usr/share/sip/PyQt4
PyQt version is 4.3.4-snapshot-20080307 (4.3.4)

gcc version 4.2.1
no concatenation

KDE base directory is /opt/kde3
KDE include directory is /opt/kde3/include
KDE lib directory is /opt/kde3/lib64
lib directory is lib
KDE version is 3.5.9 (0x30509)

PyKDE modules will be installed in /usr/lib64/python2.5/site-packages/PyKDE4
PyKDE .sip files will be installed in /usr/share/sip/PyKDE4

PyKDE modules to be built:
   kdecore solid kdeui kio kutils kparts khtml

Generating the C++ source for the kdecore module...
Error: Unable to create the C++ code.
-

I would expect configure.py to check, if the KDE version found is really a 
KDE4. If not, it should try the other alternatives (i.e. the default paths).

Regards,
Detlev
-- 
Detlev Offenbach
[EMAIL PROTECTED]

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


Re: [PyQt] PyKDE4-4.0.2 release

2008-03-11 Thread Detlev Offenbach
On Dienstag, 11. März 2008, Jim Bublitz wrote:
 PyKDE4-4.0.2 is now available at riverbankcomputing.com.

 It includes some minor fixes to problems that were preventing PyKDE4 from
 building against KDE 4.0.2, the addition to kdecore of some global
 functions for retrieving version info about KDE and PyKDE4 (see Using
 PyKDE4 in the documentation), and some additional changes to the docs.

 This release should build against any KDE4 version currently in release.


Hi,

I have another problem compiling latest release with KDE 4.0.2 (s. below).

---

g++ -c -Wno-deprecated-declarations -pipe -fPIC -O2 -Wall -W -D_REENTRANT 
-DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I../extra/kde402 -I/usr/include 
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtXml 
-I/usr/include/QtSvg -I/usr/include/solid -I/usr/include/kio 
-I/usr/include/kfile -I/usr/include/kssl -I/usr/include/python2.5 
-I/usr/share/qt4/mkspecs/default -I/usr/X11R6/include -o 
sipkioKIOMetaData.o sipkioKIOMetaData.cpp
sip/kio/global.sip: In function ‘int convertTo_KIO_MetaData(PyObject*, void**, 
int*, PyObject*)’:
sip/kio/global.sip:242: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for 
argument ‘2’ to ‘int PyDict_Next(PyObject*, Py_ssize_t*, PyObject**, 
PyObject**)’



Regards,
Detlev
-- 
Detlev Offenbach
[EMAIL PROTECTED]

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


Re: [PyQt] PyKDE4-4.0.2 release

2008-03-11 Thread Jim Bublitz
On Tuesday 11 March 2008 10:48, Detlev Offenbach wrote:
 I have a dual installation of KDE. KDE4 is installed alongside KDE3, which
 is my main desktop. The environment variable KDEDIR is set to /opt/kde3
 (openSUSE 10.3). This makes configure.py to pick up KDE3 instead of KDE4.
 Here is an excerpt of the output.

Thanks for the report - I don't have $KDEDIR set on any systems so didn't 
catch this problem (I think KDE discontinued it a while ago, although PyKDE3 
continued to check for it).

The workaround is already in place - use the -k switch on the configure.py 
command line to specify the correct KDE4 base directory (which I believe is 
now /usr for all distributions - even SuSE finally switched). Or set $KDEDIR 
to nothing temporarily.

Outside of this problem, there should be no difficulty is running PyKDE3 and 
PyKDE4 simultaneously, or running PyKDE4 under KDE3 as the desktop (assuming 
KDE4 is installed). Any problems should be considered bugs.

The fix will be in the next release - I've removed $KDEDIR from configure.py 
and added a check for KDE_VERSION_MAJOR == 4.

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


Re: [PyQt] PyKDE4-4.0.2 release

2008-03-11 Thread Detlev Offenbach
On Dienstag, 11. März 2008, Detlev Offenbach wrote:
 On Dienstag, 11. März 2008, Jim Bublitz wrote:
  PyKDE4-4.0.2 is now available at riverbankcomputing.com.
 
  It includes some minor fixes to problems that were preventing PyKDE4 from
  building against KDE 4.0.2, the addition to kdecore of some global
  functions for retrieving version info about KDE and PyKDE4 (see Using
  PyKDE4 in the documentation), and some additional changes to the docs.
 
  This release should build against any KDE4 version currently in release.

 Hi,

 I have another problem compiling latest release with KDE 4.0.2 (s. below).

 ---

 g++ -c -Wno-deprecated-declarations -pipe -fPIC -O2 -Wall -W -D_REENTRANT
 -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I../extra/kde402
 -I/usr/include -I/usr/include/QtCore -I/usr/include/QtGui
 -I/usr/include/QtXml -I/usr/include/QtSvg -I/usr/include/solid
 -I/usr/include/kio -I/usr/include/kfile -I/usr/include/kssl
 -I/usr/include/python2.5 -I/usr/share/qt4/mkspecs/default
 -I/usr/X11R6/include -o sipkioKIOMetaData.o sipkioKIOMetaData.cpp
 sip/kio/global.sip: In function ‘int convertTo_KIO_MetaData(PyObject*,
 void**, int*, PyObject*)’:
 sip/kio/global.sip:242: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for
 argument ‘2’ to ‘int PyDict_Next(PyObject*, Py_ssize_t*, PyObject**,
 PyObject**)’

 

And here is the fix. Line 242 of sip/kio/global.sip should read.

#if PY_VERSION_HEX = 0x0205
Py_ssize_t pos = 0;
#else
int pos = 0;
#endif

With that change, PyKDE4 compiles fine.


Regards,
Detlev
-- 
Detlev Offenbach
[EMAIL PROTECTED]

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


Re: [PyQt] PyKDE4-4.0.2 release

2008-03-11 Thread Detlev Offenbach
On Dienstag, 11. März 2008, Jim Bublitz wrote:
 PyKDE4-4.0.2 is now available at riverbankcomputing.com.

 It includes some minor fixes to problems that were preventing PyKDE4 from
 building against KDE 4.0.2, the addition to kdecore of some global
 functions for retrieving version info about KDE and PyKDE4 (see Using
 PyKDE4 in the documentation), and some additional changes to the docs.

 This release should build against any KDE4 version currently in release.

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

Hi,

I have yet another question. Why is pykdeuic4 not installed?

Regards,
Detlev
-- 
Detlev Offenbach
[EMAIL PROTECTED]

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


Re: [PyQt] PyKDE4-4.0.2 release

2008-03-11 Thread Detlev Offenbach
On Dienstag, 11. März 2008, Jim Bublitz wrote:
 PyKDE4-4.0.2 is now available at riverbankcomputing.com.

 It includes some minor fixes to problems that were preventing PyKDE4 from
 building against KDE 4.0.2, the addition to kdecore of some global
 functions for retrieving version info about KDE and PyKDE4 (see Using
 PyKDE4 in the documentation), and some additional changes to the docs.

 This release should build against any KDE4 version currently in release.

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

Hi again,

sorry for posting that much today but I have another question. Would it be 
possible to generate a (or multiple) API file(s) and install it to the API 
directory like it is done for PyQt4?

Please don't take all these emails as criticism, I just would like PyKDE4 to 
be a bit better than it already is. Great job, Jim.

Regards,
Detlev
-- 
Detlev Offenbach
[EMAIL PROTECTED]

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


Re: [PyQt] PyKDE4-4.0.2 release

2008-03-11 Thread Andreas Pakulat
On 11.03.08 18:48:21, Detlev Offenbach wrote:
 On Dienstag, 11. März 2008, Jim Bublitz wrote:
  PyKDE4-4.0.2 is now available at riverbankcomputing.com.
 
  It includes some minor fixes to problems that were preventing PyKDE4 from
  building against KDE 4.0.2, the addition to kdecore of some global
  functions for retrieving version info about KDE and PyKDE4 (see Using
  PyKDE4 in the documentation), and some additional changes to the docs.
 
  This release should build against any KDE4 version currently in release.
 
 
 Hi,
 
 I have a dual installation of KDE. KDE4 is installed alongside KDE3, which is 
 my main desktop. The environment variable KDEDIR is set to /opt/kde3 

You should set KDEDIRS, KDEDIR is deprecated since KDE 3.x (x = 2
IIRC).

Andreas

-- 
You had some happiness once, but your parents moved away, and you had to
leave it behind.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] PyKDE4-4.0.2 release

2008-03-11 Thread Jim Bublitz
On Tuesday 11 March 2008 11:39, Detlev Offenbach wrote:
 On Dienstag, 11. März 2008, Detlev Offenbach wrote:
  On Dienstag, 11. März 2008, Jim Bublitz wrote:
   PyKDE4-4.0.2 is now available at riverbankcomputing.com.
  
   It includes some minor fixes to problems that were preventing PyKDE4
   from building against KDE 4.0.2, the addition to kdecore of some global
   functions for retrieving version info about KDE and PyKDE4 (see Using
   PyKDE4 in the documentation), and some additional changes to the docs.
  
   This release should build against any KDE4 version currently in
   release.
 
  Hi,
 
  I have another problem compiling latest release with KDE 4.0.2 (s.
  below).
 
  ---
 
  g++ -c -Wno-deprecated-declarations -pipe -fPIC -O2 -Wall -W -D_REENTRANT
  -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I../extra/kde402
  -I/usr/include -I/usr/include/QtCore -I/usr/include/QtGui
  -I/usr/include/QtXml -I/usr/include/QtSvg -I/usr/include/solid
  -I/usr/include/kio -I/usr/include/kfile -I/usr/include/kssl
  -I/usr/include/python2.5 -I/usr/share/qt4/mkspecs/default
  -I/usr/X11R6/include -o sipkioKIOMetaData.o sipkioKIOMetaData.cpp
  sip/kio/global.sip: In function ‘int convertTo_KIO_MetaData(PyObject*,
  void**, int*, PyObject*)’:
  sip/kio/global.sip:242: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for
  argument ‘2’ to ‘int PyDict_Next(PyObject*, Py_ssize_t*, PyObject**,
  PyObject**)’
 
  

 And here is the fix. Line 242 of sip/kio/global.sip should read.

 #if PY_VERSION_HEX = 0x0205
   Py_ssize_t pos = 0;
 #else
 int pos = 0;
 #endif

 With that change, PyKDE4 compiles fine.
 
Correct - SIP_SSIZE_T is a macro that does the same thing.

Jim

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


Re: [PyQt] PyKDE4-4.0.2 release

2008-03-11 Thread Jim Bublitz
On Tuesday 11 March 2008 11:16, Detlev Offenbach wrote:
 On Dienstag, 11. März 2008, Jim Bublitz wrote:
  PyKDE4-4.0.2 is now available at riverbankcomputing.com.
 
  It includes some minor fixes to problems that were preventing PyKDE4 from
  building against KDE 4.0.2, the addition to kdecore of some global
  functions for retrieving version info about KDE and PyKDE4 (see Using
  PyKDE4 in the documentation), and some additional changes to the docs.
 
  This release should build against any KDE4 version currently in release.

 Hi,

 I have another problem compiling latest release with KDE 4.0.2 (s. below).

 ---

 g++ -c -Wno-deprecated-declarations -pipe -fPIC -O2 -Wall -W -D_REENTRANT
 -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I../extra/kde402
 -I/usr/include -I/usr/include/QtCore -I/usr/include/QtGui
 -I/usr/include/QtXml -I/usr/include/QtSvg -I/usr/include/solid
 -I/usr/include/kio -I/usr/include/kfile -I/usr/include/kssl
 -I/usr/include/python2.5 -I/usr/share/qt4/mkspecs/default
 -I/usr/X11R6/include -o sipkioKIOMetaData.o sipkioKIOMetaData.cpp
 sip/kio/global.sip: In function ‘int convertTo_KIO_MetaData(PyObject*,
 void**, int*, PyObject*)’:
 sip/kio/global.sip:242: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for
 argument ‘2’ to ‘int PyDict_Next(PyObject*, Py_ssize_t*, PyObject**,
 PyObject**)’

Around line 238 in sip//kio/global.sip change

int pos = 0;

to

SIP_SSIZE_T pos = 0;

It's a change in type from Python 2.4 to 2.5 - this seems to be the final 
instance, although I can't tell because I seem to get the correct type 
conversion when I compile and don't catch the error. SIP_SSIZE_T will work 
correctly for either Python version.

Jim

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