[PyKDE] PB to compile PyKDE-3.3.2
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
Re: [PyKDE] PB to compile PyKDE-3.3.2
Hello, First of all, thank indeed for your help. > First, what version of KDE are you running? It should be a 2.x.x it is exact > 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. > Yes, you are right , it do not work All right, I took your advice. Here what I did : rpm -e --nodeps qt-2.3.1 mv /usr/lib/qt-2.3.1 /usr/lib/qt-2.3.1rpm cp qt-x11-2.3.1.tar /usr/lib cd /usr/lib tar xvf qt-x11-2.3.1.tar mv qt-x11-2.3.1 qt-2.3.1 cd qt-2.3.1 ./configure -qt-zlib -qt-libpng -no-gif make the process has finished successfully and I had the following message : "The Qt library is now built in ./lib" "The Qt examples are built in the directories in ./examples" "The Qt tutorials are built in the directories in ./tutorial" 'Note: be sure to set $$QTDIR to point to here or to wherever' you move these directories.' "Enjoy! - the Trolltech team" -- To built PyQt ln -s /usr/lib/qt-2.3.1/lib/liqt.so.2.3.1 /usr/lib/liqt.so.2 cd PyQt python ./build.py -l qt make make install so far, all is correct. - to built PyKDE cp -r /PyQt/sip /usr/share cd PyKDE python ./build.py -t /usr/include/kde make one goes further, but unfortunately the process finished with error : - 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/li b/qt-2.3.1/include -o sipkdecoreKStandardDirs.o sipkdecoreKStandardDirs.cpp sipkdecoreKStandardDirs.cpp: In function `PyObject *sipDo_KStandardDirs_calcResourceHash (PyObject *, PyObject *)': sipkdecoreKStandardDirs.cpp:79: no matching function for call to `KStandardDirs::calcResourceHash (char *&, QString &, bool)' make[1]: *** [sipkdecoreKStandardDirs.o] Error 1 make[1]: Leaving directory `/home/admin/PyKDE-3.3.2/kdecore' make: *** [kdecore] Error 2 what doesn't work yet ? Best regards > Jim > > ___ > PyKDE mailing list[EMAIL PROTECTED] > http://mats.gmd.de/mailman/listinfo/pykde > ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] PB to compile PyKDE-3.3.2
Hello, Indeed, it is about kde 2.2.1. I replaced in sip/kstddirs.sip kde 2.2.1 by kde 2.2.2 and run again build.py and "make" and "make install". No more problems. test in interpreter python : from kdecore import kapp (ImportError: cannot import name kapp) from kdecore import DndURL (ImportError: cannot import name DndURL) from kdeui import KTreeList (ImportError: cannot import name KTreeList ) from kdeui import KTreeListItem (ImportError: cannot import name KTreeList Item ) from kdeui import KTabListBox (ImportError: cannot import name KTabListBox) from kdeui import KMsgBox (ImportError: cannot import name KMsgBox) an idea please ? best regards Gerard - Original Message - From: "Jim Bublitz" <[EMAIL PROTECTED]> To: "Gerard Breiner" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 6:22 PM Subject: Re: [PyKDE] PB to compile PyKDE-3.3.2 > On 11-Feb-03 Gerard Breiner wrote: > > First of all, thank indeed for your help. > > Thanks for your patience and effort. > > >> First, what version of KDE are you running? It should be a 2.x.x > > > it is exact > > It would help to know the specific version you're running - > it looks like KDE 2.2.1 from the error below. You can find the > version by looking in kapp.h (the value for KDE_VERSION) and should > double-check by choosing Help | About KDE in any KDE app and > checking that the version there matches the version in kapp.h. > > > > It appears Qt and PyKDE are now in sync, and you shouldn't have to > rebuild PyQt again. > > > *sipDo_KStandardDirs_calcResourceHash (PyObject *, PyObject *)': > > sipkdecoreKStandardDirs.cpp:79: no matching function for call to > > `KStandardDirs::calcResourceHash (char *&, QString &, bool)' > > In the kstddirs.sip file: > > %If ( KDE_2_2_1 - ) > Q_UINT32 calcResourceHash (const char*, const QString&, bool) >const; > %End > > The first line should be: > > %If ( KDE_2_2_2 - ) > > > as this method doesn't appear until KDE 2.2.2. It looks like you > have KDE 2.2.1 and are catching this error. Hopefully there aren't > any more errors like this. If you find more "no matching function" > errors, you check the corresponding KDE h file for the function and > if it's not there, use the same fix as above. > > You can edit the sip file with any text editor, and then re-run > build.py. Alternatively, you can comment out ("//") the three lines > above from %If ... to %End. > > If this isn't the problem, then you might be having some problems > with build.py finding the correct KDE version, and we can > troubleshoot that instead. > > The build test for this version of PyKDE was against KDE 2.2.2, so > the error above slipped by. > > Sorry for all the difficulties you've had. I hope this is the last > one, but if not I'll be happy to keep helping. > > Jim > > ___ > PyKDE mailing list[EMAIL PROTECTED] > http://mats.gmd.de/mailman/listinfo/pykde > ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] PB to compile PyKDE-3.3.2
Hello, Indeed, it is about kde 2.2.1. I replaced in sip/kstddirs.sip kde 2.2.1 by kde 2.2.2 and run again build.py and "make" and "make install". No more problems. test in interpreter python : from kdecore import kapp (ImportError: cannot import name kapp) from kdecore import DndURL (ImportError: cannot import name DndURL) from kdeui import KTreeList (ImportError: cannot import name KTreeList ) from kdeui import KTreeListItem (ImportError: cannot import name KTreeList Item ) from kdeui import KTabListBox (ImportError: cannot import name KTabListBox) from kdeui import KMsgBox (ImportError: cannot import name KMsgBox) an idea please ? best regards Gerard - Original Message - From: "Jim Bublitz" <[EMAIL PROTECTED]> To: "Gerard Breiner" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 6:22 PM Subject: Re: [PyKDE] PB to compile PyKDE-3.3.2 > On 11-Feb-03 Gerard Breiner wrote: > > First of all, thank indeed for your help. > > Thanks for your patience and effort. > > >> First, what version of KDE are you running? It should be a 2.x.x > > > it is exact > > It would help to know the specific version you're running - > it looks like KDE 2.2.1 from the error below. You can find the > version by looking in kapp.h (the value for KDE_VERSION) and should > double-check by choosing Help | About KDE in any KDE app and > checking that the version there matches the version in kapp.h. > > > > It appears Qt and PyKDE are now in sync, and you shouldn't have to > rebuild PyQt again. > > > *sipDo_KStandardDirs_calcResourceHash (PyObject *, PyObject *)': > > sipkdecoreKStandardDirs.cpp:79: no matching function for call to > > `KStandardDirs::calcResourceHash (char *&, QString &, bool)' > > In the kstddirs.sip file: > > %If ( KDE_2_2_1 - ) > Q_UINT32 calcResourceHash (const char*, const QString&, bool) >const; > %End > > The first line should be: > > %If ( KDE_2_2_2 - ) > > > as this method doesn't appear until KDE 2.2.2. It looks like you > have KDE 2.2.1 and are catching this error. Hopefully there aren't > any more errors like this. If you find more "no matching function" > errors, you check the corresponding KDE h file for the function and > if it's not there, use the same fix as above. > > You can edit the sip file with any text editor, and then re-run > build.py. Alternatively, you can comment out ("//") the three lines > above from %If ... to %End. > > If this isn't the problem, then you might be having some problems > with build.py finding the correct KDE version, and we can > troubleshoot that instead. > > The build test for this version of PyKDE was against KDE 2.2.2, so > the error above slipped by. > > Sorry for all the difficulties you've had. I hope this is the last > one, but if not I'll be happy to keep helping. > > Jim > > ___ > PyKDE mailing list[EMAIL PROTECTED] > http://mats.gmd.de/mailman/listinfo/pykde > ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] GUI Programming with Python: QT Edition (was: dialog/mainwindow question)
Hello, I know this book since yesterday. I found it at http://www.xs4all.nl/~bsarempt/python/tutorial.html and i download it from opendoc. I was surprised to note that the price at opendoc is 49.95 $ whereas in Paris at "Le monde en tique" the price is 113 ? as about 113 $ I phoned to "Le monde en tique", the salesman said the difference in price corresponds to the transport charges of DHL. Do you have another solution to buy this book. While waiting I have the book in form pdf and I printed it too. I think indeed the writing style is very good and the Introduction to Python is good in my case because i have read the tutorial. I like this book. Best greetings Gerard Breiner Institut D'Astrophysique Spatiale Orsay FRANCE - Original Message - From: "Jonathan Gardner" <[EMAIL PROTECTED]> To: "Boudewijn Rempt" <[EMAIL PROTECTED]>; "Sundance" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 4:30 AM Subject: Re: [PyKDE] GUI Programming with Python: QT Edition (was: dialog/mainwindow question) > On Friday 14 February 2003 13:12, Boudewijn Rempt wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > On Friday 14 February 2003 20:46, Jonathan Gardner wrote: > > > I just sent a personal email to Boudewijn and I echo this feeling. > > > Boudewijn, perhaps you can sell us the book directly, so that we know > > > that the money is going into you and your publishers pockets. I won't > > > mind spending $10-$20 more as long as it is going to the right place. I > > > know you have several copies at your home! ;-) > > > > > > I personally find Amazon's business tactics and patent policies > > > atrocious, so I never use them. I always prefer bn.com or some other > > > retailer. > > > > You can order directly from the publisher: > > https://secure.linuxports.com/opendocs/. Amazon > > has been a bloody nuisance, to be honest. They only want to deal with > > the largest US book distributor. Opendocs had teamed up with the second > > largest, and they have no end of trouble getting their books into the > > Amazon warehouses. > > > > I ordered the book exactly one week ago from OpenDos. Today I received the > book. I have to say, it is quite informative and the writing style is good. I > am enjoying it very much, and even though I have been programming PyQt for > almost two years, I have learned a few things from it already. > > -- > Jonathan Gardner > [EMAIL PROTECTED] > Python Qt perl apache and linux > > ___ > PyKDE mailing list[EMAIL PROTECTED] > http://mats.gmd.de/mailman/listinfo/pykde > ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
[PyKDE] BlackAdder
Hello, I would be greatful if someone in the team could send me the Blackadder software because, i don't user credit cards, i am against it. I would like to use it for my teaching Thanks in advance. Gerard Breiner Institut d'Astrophysique Spatiale 91405 Orsay
Re: [PyKDE] BlackAdder
Hello, This is the first thing i did, but the problem is credit cards is required and i don't have credit card. Gerard - Original Message - From: "Phil Thompson" <[EMAIL PROTECTED]> To: "Gerard Breiner" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 27, 2003 10:40 AM Subject: Re: [PyKDE] BlackAdder > On Thursday 27 February 2003 8:36 am, Gerard Breiner wrote: > > Hello, > > > > I would be greatful if someone in the team could send me the Blackadder > > software because, i don't user credit cards, i am against it. > > I would like to use it for my teaching > > Contact thekompany.com > > Phil > ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] BlackAdder
Why not, but does it work on windows platforms ? Gerard - Original Message - From: "Gerard Vermeulen" <[EMAIL PROTECTED]> To: "Gerard Breiner" <[EMAIL PROTECTED]> Cc: "Phil Thompson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 27, 2003 12:25 PM Subject: Re: [PyKDE] BlackAdder > Can't you use Eric instead of Blackadder? > > Gerard Vermeulen > > On Thu, Feb 27, 2003 at 11:18:02AM +0100, Gerard Breiner wrote: > > Hello, > > > > This is the first thing i did, but the problem is credit cards is required > > and i don't have credit card. > > > > Gerard > > - Original Message - > > From: "Phil Thompson" <[EMAIL PROTECTED]> > > To: "Gerard Breiner" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > > Sent: Thursday, February 27, 2003 10:40 AM > > Subject: Re: [PyKDE] BlackAdder > > > > > > > On Thursday 27 February 2003 8:36 am, Gerard Breiner wrote: > > > > Hello, > > > > > > > > I would be greatful if someone in the team could send me the Blackadder > > > > software because, i don't user credit cards, i am against it. > > > > I would like to use it for my teaching > > > > > > Contact thekompany.com > > > > > > Phil > > > > > > > ___ > > PyKDE mailing list[EMAIL PROTECTED] > > http://mats.gmd.de/mailman/listinfo/pykde > ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] BlackAdder
Hello, Is Eric distributed freely for platform Windows XP ? Which are its dependencies ? Are its dependencies distributed freely? Gérard - Original Message - From: "Detlev Offenbach" <[EMAIL PROTECTED]> To: "Gerard Breiner" <[EMAIL PROTECTED]>; "Gerard Vermeulen" <[EMAIL PROTECTED]> Cc: "Phil Thompson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 27, 2003 8:21 PM Subject: Re: [PyKDE] BlackAdder > > Why not, but does it work on windows platforms ? > > > > Sure it does. Especially the latest snapshots of the upcoming 3.1 have > extensive testing on Windows. You just have to fulfill the prerequisits. > > Detlev > > > Gerard > > > > - Original Message - > > From: "Gerard Vermeulen" <[EMAIL PROTECTED]> > > To: "Gerard Breiner" <[EMAIL PROTECTED]> > > Cc: "Phil Thompson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > > Sent: Thursday, February 27, 2003 12:25 PM > > Subject: Re: [PyKDE] BlackAdder > > > > > Can't you use Eric instead of Blackadder? > > > > > > Gerard Vermeulen > > > > > > On Thu, Feb 27, 2003 at 11:18:02AM +0100, Gerard Breiner wrote: > > > > Hello, > > > > > > > > This is the first thing i did, but the problem is credit cards is > > > > required > > > > > > and i don't have credit card. > > > > > > > > Gerard > > > > - Original Message - > > > > From: "Phil Thompson" <[EMAIL PROTECTED]> > > > > To: "Gerard Breiner" <[EMAIL PROTECTED]>; > > > > <[EMAIL PROTECTED]> Sent: Thursday, February 27, 2003 10:40 AM > > > > Subject: Re: [PyKDE] BlackAdder > > > > > > > > > On Thursday 27 February 2003 8:36 am, Gerard Breiner wrote: > > > > > > Hello, > > > > > > > > > > > > I would be greatful if someone in the team could send me the > > > > Blackadder > > > > > > > > software because, i don't user credit cards, i am against it. > > > > > > I would like to use it for my teaching > > > > > > > > > > Contact thekompany.com > > > > > > > > > > Phil > > > > > > > > ___ > > > > PyKDE mailing list[EMAIL PROTECTED] > > > > http://mats.gmd.de/mailman/listinfo/pykde > > > > ___ > > PyKDE mailing list[EMAIL PROTECTED] > > http://mats.gmd.de/mailman/listinfo/pykde > > -- > Detlev Offenbach > [EMAIL PROTECTED] > > ___ > PyKDE mailing list[EMAIL PROTECTED] > http://mats.gmd.de/mailman/listinfo/pykde > ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde