[PyKDE] PB to compile PyKDE-3.3.2

2003-02-10 Thread Gerard Breiner



Hello,
 
First of all, my platform is Linux RedHat 7.2 with 
Python 2.2.2
 
I installed : 
        
        sip-x11-gpl-3.5
PyQt-x11-gpl-3.5 

 
I tried to install  PyKDE-3.3.2
Here what i did :
python ./build.py -t /usr/include/kde -s 
/usr/local/lib/python2.2/site-packages/ -v 
/home/admin/PyQt-x11-gpl-3.5/sip
No problem.
make.
--
cd kdecore; "/usr/bin/make"make[1]: Entering 
directory `/home/admin/PyKDE-3.3.2/kdecore'g++ -c -pipe -O2 -fPIC 
-DSIP_MAKE_MODULE_DLL -DNO_DEBUG -fno-exceptions -I-I -I../extraH -I. 
-I/usr/local/include/python2.2 -I/usr/include/kde -I/usr/lib/qt-2.3.1/include -o 
kdecorecmodule.o kdecorecmodule.cppIn file included from 
sip/kstyle.sip:42, 
from kdecorecmodule.cpp:129:/usr/include/kde/kstyle.h:38: parse error before 
`{'/usr/include/kde/kstyle.h:39: non-member function `className ()' 
cannot
-
 
Where is the problem ?
Must i update KDE or PyKDE-3.3.2 has a bug 
?
 
Best regards


[PyKDE] seg fault using pyqt

2003-02-10 Thread Nicholas Priborsky
hi,

I am having troubles getting PyQt 3.5 to work.I'm running SuSE 8.0 with 
gcc 2.95.3, sip 3.5, qt 3.1.1, python 2.2.2. I built python, sip and 
pyqt from scratch the usual way and everything compiled ok (for lib 
qt-mt). Unfortunately I always get a segmentation fault when running any 
of the examples contained in the examples3 directory of the pyqt 
distribution.

python -d -v tut1.py
# /usr/local/lib/python2.2/site.pyc matches /usr/local/lib/python2.2/site.py
import site # precompiled from /usr/local/lib/python2.2/site.pyc
# /usr/local/lib/python2.2/os.pyc matches /usr/local/lib/python2.2/os.py
import os # precompiled from /usr/local/lib/python2.2/os.pyc
import posix # builtin
# /usr/local/lib/python2.2/posixpath.pyc matches 
/usr/local/lib/python2.2/posixpath.py
import posixpath # precompiled from /usr/local/lib/python2.2/posixpath.pyc
# /usr/local/lib/python2.2/stat.pyc matches /usr/local/lib/python2.2/stat.py
import stat # precompiled from /usr/local/lib/python2.2/stat.pyc
# /usr/local/lib/python2.2/UserDict.pyc matches 
/usr/local/lib/python2.2/UserDict.py
import UserDict # precompiled from /usr/local/lib/python2.2/UserDict.pyc
# /usr/local/lib/python2.2/copy_reg.pyc matches 
/usr/local/lib/python2.2/copy_reg.py
import copy_reg # precompiled from /usr/local/lib/python2.2/copy_reg.pyc
# /usr/local/lib/python2.2/types.pyc matches 
/usr/local/lib/python2.2/types.py
import types # precompiled from /usr/local/lib/python2.2/types.pyc
# /usr/local/lib/python2.2/__future__.pyc matches 
/usr/local/lib/python2.2/__future__.py
import __future__ # precompiled from /usr/local/lib/python2.2/__future__.pyc
Python 2.2.2 (#1, Feb  7 2003, 09:52:39)
[GCC 2.95.3 20010315 (SuSE)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
# /usr/local/lib/python2.2/site-packages/qt.pyc matches 
/usr/local/lib/python2.2/site-packages/qt.py
import qt # precompiled from /usr/local/lib/python2.2/site-packages/qt.pyc
dlopen("/usr/local/lib/python2.2/site-packages/libsip.so", 2);
import libsip # dynamically loaded from 
/usr/local/lib/python2.2/site-packages/libsip.so
dlopen("/usr/local/lib/python2.2/site-packages/libqtcmodule.so", 2);
import libqtc # dynamically loaded from 
/usr/local/lib/python2.2/site-packages/libqtcmodule.so
Segmentation fault

Any help or suggestions would be appreciated
thanks
nick

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde


RE: [PyKDE] PB to compile PyKDE-3.3.2

2003-02-10 Thread Jim Bublitz
On 10-Feb-03 Gerard Breiner wrote:
> First of all, my platform is Linux RedHat 7.2 with Python 2.2.2
 
> I installed : 
> sip-x11-gpl-3.5
> PyQt-x11-gpl-3.5 
 
> I tried to install  PyKDE-3.3.2
> Here what i did :
> python ./build.py -t /usr/include/kde -s
> /usr/local/lib/python2.2/site-packages/ -v
> /home/admin/PyQt-x11-gpl-3.5/sip
> No problem.
> make.
> --
> 
> cd kdecore; "/usr/bin/make"
> make[1]: Entering directory `/home/admin/PyKDE-3.3.2/kdecore'
> g++ -c -pipe -O2 -fPIC -DSIP_MAKE_MODULE_DLL -DNO_DEBUG
> -fno-exceptions -I-I -I../extraH -I.
> -I/usr/local/include/python2.2 -I/usr/include/kde
> -I/usr/lib/qt-2.3.1/include -o kdecorecmodule.o
> kdecorecmodule.cpp
> In file included from sip/kstyle.sip:42,
>  from kdecorecmodule.cpp:129:
> /usr/include/kde/kstyle.h:38: parse error before `{'
> /usr/include/kde/kstyle.h:39: non-member function `className ()'
> cannot
> --
> ---
 
> Where is the problem ?
> Must i update KDE or PyKDE-3.3.2 has a bug ?

First, what version of KDE are you running? It should be a 2.x.x
version, as KStyle is in the kdefx module for KDE >= 3.0.
PyKDE-3.3.2 supports KDE down to KDE 2.1.1, so that shouldn't be a
problem. 

Second, some versions of Qt are compiled with some of the Q*Style
options missing. In this case, KStyle is a subclass of
QPlatinumStyle, so open the python interpreter and try:

from qt import QPlatinumStyle

My guess is that won't work - if it doesn't, it means you'll need
to recompile Qt with the correct feature set if you want to use
PyKDE as is. You'd also need to recompile PyQt in that case.

Otherwise you can try modifying PyKDE: in the subdirectory
PyKDE-3.3.2/sip/kde2* (kde21 or kde22 depending on your KDE
version), you can comment out the %Include kstyle.sip in
kdecore.sip ('//' comment). I'm not sure what else depends on
KStyle, so you may have to comment out other stuff as well, or it
might not be possible to do this at all. You'll need to re-run
build.py, and if it's going to fail it should fail there.

Anybody else here recall any RH 7.2 problems?

Jim

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde



Re: [PyKDE] seg fault using pyqt

2003-02-10 Thread Torsten Marek
Nicholas Priborsky schrieb:

hi,

I am having troubles getting PyQt 3.5 to work.I'm running SuSE 8.0 with 
gcc 2.95.3, sip 3.5, qt 3.1.1, python 2.2.2. I built python, sip and 
pyqt from scratch the usual way and everything compiled ok (for lib 
qt-mt). Unfortunately I always get a segmentation fault when running any 
of the examples contained in the examples3 directory of the pyqt 
distribution.

python -d -v tut1.py
# /usr/local/lib/python2.2/site.pyc matches 
/usr/local/lib/python2.2/site.py
import site # precompiled from /usr/local/lib/python2.2/site.pyc
# /usr/local/lib/python2.2/os.pyc matches /usr/local/lib/python2.2/os.py
import os # precompiled from /usr/local/lib/python2.2/os.pyc
import posix # builtin
# /usr/local/lib/python2.2/posixpath.pyc matches 
/usr/local/lib/python2.2/posixpath.py
import posixpath # precompiled from /usr/local/lib/python2.2/posixpath.pyc
# /usr/local/lib/python2.2/stat.pyc matches 
/usr/local/lib/python2.2/stat.py
import stat # precompiled from /usr/local/lib/python2.2/stat.pyc
# /usr/local/lib/python2.2/UserDict.pyc matches 
/usr/local/lib/python2.2/UserDict.py
import UserDict # precompiled from /usr/local/lib/python2.2/UserDict.pyc
# /usr/local/lib/python2.2/copy_reg.pyc matches 
/usr/local/lib/python2.2/copy_reg.py
import copy_reg # precompiled from /usr/local/lib/python2.2/copy_reg.pyc
# /usr/local/lib/python2.2/types.pyc matches 
/usr/local/lib/python2.2/types.py
import types # precompiled from /usr/local/lib/python2.2/types.pyc
# /usr/local/lib/python2.2/__future__.pyc matches 
/usr/local/lib/python2.2/__future__.py
import __future__ # precompiled from 
/usr/local/lib/python2.2/__future__.pyc
Python 2.2.2 (#1, Feb  7 2003, 09:52:39)
[GCC 2.95.3 20010315 (SuSE)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
# /usr/local/lib/python2.2/site-packages/qt.pyc matches 
/usr/local/lib/python2.2/site-packages/qt.py
import qt # precompiled from /usr/local/lib/python2.2/site-packages/qt.pyc
dlopen("/usr/local/lib/python2.2/site-packages/libsip.so", 2);
import libsip # dynamically loaded from 
/usr/local/lib/python2.2/site-packages/libsip.so
dlopen("/usr/local/lib/python2.2/site-packages/libqtcmodule.so", 2);
import libqtc # dynamically loaded from 
/usr/local/lib/python2.2/site-packages/libqtcmodule.so
Segmentation fault

Any help or suggestions would be appreciated
thanks
nick
Put
export KDE_MALLOC="n"
in your ~/.profile, that should do the job.

greetings

Torsten


--
Torsten Marek <[EMAIL PROTECTED]>
ID: A244C858 -- fingerprint 1902 0002 5DFC 856B F146  894C 7CC5 451E A244 C858
www.keyserver.net -- wwwkeys.eu.pgp.net



msg03840/pgp0.pgp
Description: PGP signature


[PyKDE] Profiling C++ when embeding Python (PLEASE HELP !!)

2003-02-10 Thread Sebastien Auclair
Greetings !

We need to profile (with VC++ profiler) our software written in C++ but
which embeds Python22.dll
So far, it crashes right from the start cause at startup, our python code
needs to access a C++ function (through SIP) and for some reason it can't.
(Crashs)
It may have something to do with the fact that applications, when profiled,
are renamed from software.exe to software._xe.

Thanks for any help !

_
Seb

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde



[PyKDE] xine wrappers for python available

2003-02-10 Thread Torsten Marek
Hi there,

I just discovered that there is a pre-alpha version of python wrappers for the xine media 
player available at pyxine.sourceforge.net. Maybe some of you are interested, coz they say 
 it makes writing frontends for libxine very easy. Nice idea, isn't it?

greetings

Torsten
--
Torsten Marek <[EMAIL PROTECTED]>
ID: A244C858 -- fingerprint 1902 0002 5DFC 856B F146  894C 7CC5 451E A244 C858
www.keyserver.net -- wwwkeys.eu.pgp.net


msg03842/pgp0.pgp
Description: PGP signature


Re: [PyKDE] seg fault using pyqt

2003-02-10 Thread Ricardo Javier Cardenes Medina
On Mon, Feb 10, 2003 at 07:16:03PM +0100, Torsten Marek wrote:
> Put
> export KDE_MALLOC="n"
> in your ~/.profile, that should do the job.

Mmmh... That claims for a FAQ. Do we have one, apart from Phil's README at
PyQt? We could use Qt.Py's web for this :-) Marc? Jonathan? Anybody? :D
I've some hints on compiling at "rare" hardware too, but that's not so
frequently asked as this one :D

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde