Re: [PyKDE] ANN: SIP v4.0pre1 Released
On fredag, okt 17, 2003, at 23:12 Europe/Oslo, Willard Myers wrote: On Oct 17, 2003, at 16:49, Rune Hansen wrote: $PYTHON/site-packages has these qt files: qt.dylib qtgl.dylib qtsql.dylib qtui.dylib qtcanvas.dylib qtnetwork.dylib qttable.dylib qtxml.dylib ...and nothing else... Can't help but think I've made an errorsome where :-) That's most of the way there, you are missing qt.py, etc. Did you run the install step? I'll take a run at building things later this weekend. Bill Hi Bill. Yes I did make install. ( [ -d qt ] cd qt ; make -f Makefile install; ) || true make[1]: Nothing to be done for `install'. ( [ -d qtcanvas ] cd qtcanvas ; make -f Makefile install; ) || true make[1]: Nothing to be done for `install'. ( [ -d qtnetwork ] cd qtnetwork ; make -f Makefile install; ) || true make[1]: Nothing to be done for `install'. ( [ -d qttable ] cd qttable ; make -f Makefile install; ) || true make[1]: Nothing to be done for `install'. ( [ -d qtxml ] cd qtxml ; make -f Makefile install; ) || true make[1]: Nothing to be done for `install'. ( [ -d qtsql ] cd qtsql ; make -f Makefile install; ) || true make[1]: Nothing to be done for `install'. ( [ -d qtgl ] cd qtgl ; make -f Makefile install; ) || true make[1]: Nothing to be done for `install'. ( [ -d qtui ] cd qtui ; make -f Makefile install; ) || true make[1]: Nothing to be done for `install'. ( [ -d pyuic3 ] cd pyuic3 ; make -f Makefile install; ) || true make[1]: Nothing to be done for `install'. ( [ -d pylupdate3 ] cd pylupdate3 ; make -f Makefile install; ) || true make[1]: Nothing to be done for `install' ls -R | grep qt.py in the PyQt source catalog turns up exactly nothing. regards /rune ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] KDE 3.1.3 + Python 2.3 + PyKDE 3.7-4
Hi, I'm trying to compile a working PyKDE on my new Mandrake 9.2-mobile, but I'm having trouble. Is this config known to work with PyQt 3.7 and PyKDE 3.7-4? KDE 3.1.3 Python 2.3 I'm seeing: sip/kzip.sip: In function `PyObject* sipConvertFrom_ulonglong(ulonglong*)': sip/kzip.sip:153: error: `LONG_LONG' undeclared (first use this function) sip/kzip.sip:153: error: (Each undeclared identifier is reported only once for each function it appears in.) sip/kzip.sip:153: error: syntax error before `)' token sip/kzip.sip: In function `PyObject* sipConvertFrom_longlong(longlong*)': sip/kzip.sip:115: error: syntax error before `)' token make[1]: *** [kiohuge0.o] Error 1 or should I just wait for 3.8? cheers, -- Simon Edwards | Guarddog Firewall [EMAIL PROTECTED] | http://www.simonzone.com/software/ Nijmegen, The Netherlands | ZooTV? You made the right choice. ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] ANN: SIP v4.0pre1 Released
On lørdag, okt 18, 2003, at 00:07 Europe/Oslo, Phil Thompson wrote: On Friday 17 October 2003 10:12 pm, Willard Myers wrote: On Oct 17, 2003, at 16:49, Rune Hansen wrote: $PYTHON/site-packages has these qt files: qt.dylib qtgl.dylib qtsql.dylib qtui.dylib qtcanvas.dylib qtnetwork.dylib qttable.dylib qtxml.dylib ...and nothing else... Can't help but think I've made an errorsome where :-) That's most of the way there, you are missing qt.py, etc. Did you run the install step? No - it looks right to me. SIP v4 doesn't generate any .py files. Have you actually tried to import a module. If the canvas.py example works then everything is probably Ok. canvas.py from examples3/canvas : Traceback (most recent call last): File canvas.py, line 4, in ? from qt import * ImportError: No module named qt Does Python on the Mac use a different file extension for compiled modules? (Like the Windows version uses .pyd?) uhm..I'm not especialy famillilar with the .pyd concept. Python file extensions on the Mac is .py, .pyc and .pyo as far as I know. I had, kind of, expected these files: qtcanvas.py, qtext.py, qtgl.py, qtnetwork.py, qt.py, qtsql.py, qttable.py, qtui.py and qtxml.py to be present in my site-packages catalog after the PyQt install...but they're not. Phil regards /rune ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] ANN: SIP v4.0pre1 Released
On Friday 17 October 2003 11:47 pm, Rune Hansen wrote: On lørdag, okt 18, 2003, at 00:07 Europe/Oslo, Phil Thompson wrote: On Friday 17 October 2003 10:12 pm, Willard Myers wrote: On Oct 17, 2003, at 16:49, Rune Hansen wrote: $PYTHON/site-packages has these qt files: qt.dylib qtgl.dylib qtsql.dylib qtui.dylib qtcanvas.dylib qtnetwork.dylib qttable.dylib qtxml.dylib ...and nothing else... Can't help but think I've made an errorsome where :-) That's most of the way there, you are missing qt.py, etc. Did you run the install step? No - it looks right to me. SIP v4 doesn't generate any .py files. Have you actually tried to import a module. If the canvas.py example works then everything is probably Ok. canvas.py from examples3/canvas : Traceback (most recent call last): File canvas.py, line 4, in ? from qt import * ImportError: No module named qt Does Python on the Mac use a different file extension for compiled modules? (Like the Windows version uses .pyd?) uhm..I'm not especialy famillilar with the .pyd concept. Python file extensions on the Mac is .py, .pyc and .pyo as far as I know. I had, kind of, expected these files: qtcanvas.py, qtext.py, qtgl.py, qtnetwork.py, qt.py, qtsql.py, qttable.py, qtui.py and qtxml.py to be present in my site-packages catalog after the PyQt install...but they're not. Like I said SIP v4 doesn't generate them. Can you try renaming the .dylib files so that they have a .so extension and see if they get imported. Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] ANN: SIP v4.0pre1 Released
On lørdag, okt 18, 2003, at 01:00 Europe/Oslo, Phil Thompson wrote: On Friday 17 October 2003 11:47 pm, Rune Hansen wrote: On lørdag, okt 18, 2003, at 00:07 Europe/Oslo, Phil Thompson wrote: On Friday 17 October 2003 10:12 pm, Willard Myers wrote: On Oct 17, 2003, at 16:49, Rune Hansen wrote: $PYTHON/site-packages has these qt files: qt.dylib qtgl.dylib qtsql.dylib qtui.dylib qtcanvas.dylib qtnetwork.dylib qttable.dylib qtxml.dylib ...and nothing else... Can't help but think I've made an errorsome where :-) That's most of the way there, you are missing qt.py, etc. Did you run the install step? No - it looks right to me. SIP v4 doesn't generate any .py files. Have you actually tried to import a module. If the canvas.py example works then everything is probably Ok. canvas.py from examples3/canvas : Traceback (most recent call last): File canvas.py, line 4, in ? from qt import * ImportError: No module named qt Does Python on the Mac use a different file extension for compiled modules? (Like the Windows version uses .pyd?) uhm..I'm not especialy famillilar with the .pyd concept. Python file extensions on the Mac is .py, .pyc and .pyo as far as I know. I had, kind of, expected these files: qtcanvas.py, qtext.py, qtgl.py, qtnetwork.py, qt.py, qtsql.py, qttable.py, qtui.py and qtxml.py to be present in my site-packages catalog after the PyQt install...but they're not. Like I said SIP v4 doesn't generate them. Can you try renaming the .dylib files so that they have a .so extension and see if they get imported. Phil Yes! python2.3 canvas.py Qt: QApplication: Warning argv[0] == 'canvas.py' is relative. In order to dispatch events correctly Mac OS X may require applications to be run with the *full* path to the executable. QMenuBar: Not sure how to handle accelerator 0x1010 (Home) QMenuBar: Not sure how to handle accelerator 0x1010 (Home) The canvas window pops up. It's in the background and does not seem to receive events. But hey, it works :-) I've tried to run several of the other examples and I get the same result. I fired up one of my larger apps giving the full path to the start file. It no longer prints the warning, but the result is the same. The application it self works tough, I just can't interact with it. btw. on my 867mhz 12 Powerbook with 640mb ram, from qt import * takes aprox 8 seconds. That's it for tonight. I'll do some more testing tomorrow. Thanks Phil! regards /rune ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] ANN: SIP v4.0pre1 Released
On Saturday 18 October 2003 00:47, Rune Hansen wrote: uhm..I'm not especialy famillilar with the .pyd concept. Python file extensions on the Mac is .py, .pyc and .pyo as far as I know. Good. I had, kind of, expected these files: qtcanvas.py, qtext.py, qtgl.py, qtnetwork.py, qt.py, qtsql.py, qttable.py, qtui.py and qtxml.py to be present in my site-packages catalog after the PyQt install...but they're not. No. they're not expected to exist. The *.dylib files are expected to contain everything needed, running in full machine speed. Now run an example, and see. Pete ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] ANN: SIP v4.0pre1 Released
On Saturday 18 October 2003 12:28 am, Rune Hansen wrote: On lørdag, okt 18, 2003, at 01:00 Europe/Oslo, Phil Thompson wrote: On Friday 17 October 2003 11:47 pm, Rune Hansen wrote: On lørdag, okt 18, 2003, at 00:07 Europe/Oslo, Phil Thompson wrote: On Friday 17 October 2003 10:12 pm, Willard Myers wrote: On Oct 17, 2003, at 16:49, Rune Hansen wrote: $PYTHON/site-packages has these qt files: qt.dylib qtgl.dylib qtsql.dylib qtui.dylib qtcanvas.dylib qtnetwork.dylib qttable.dylib qtxml.dylib ...and nothing else... Can't help but think I've made an errorsome where :-) That's most of the way there, you are missing qt.py, etc. Did you run the install step? No - it looks right to me. SIP v4 doesn't generate any .py files. Have you actually tried to import a module. If the canvas.py example works then everything is probably Ok. canvas.py from examples3/canvas : Traceback (most recent call last): File canvas.py, line 4, in ? from qt import * ImportError: No module named qt Does Python on the Mac use a different file extension for compiled modules? (Like the Windows version uses .pyd?) uhm..I'm not especialy famillilar with the .pyd concept. Python file extensions on the Mac is .py, .pyc and .pyo as far as I know. I had, kind of, expected these files: qtcanvas.py, qtext.py, qtgl.py, qtnetwork.py, qt.py, qtsql.py, qttable.py, qtui.py and qtxml.py to be present in my site-packages catalog after the PyQt install...but they're not. Like I said SIP v4 doesn't generate them. Can you try renaming the .dylib files so that they have a .so extension and see if they get imported. Phil Yes! python2.3 canvas.py Qt: QApplication: Warning argv[0] == 'canvas.py' is relative. In order to dispatch events correctly Mac OS X may require applications to be run with the *full* path to the executable. QMenuBar: Not sure how to handle accelerator 0x1010 (Home) QMenuBar: Not sure how to handle accelerator 0x1010 (Home) The canvas window pops up. It's in the background and does not seem to receive events. But hey, it works :-) I've tried to run several of the other examples and I get the same result. I fired up one of my larger apps giving the full path to the start file. It no longer prints the warning, but the result is the same. The application it self works tough, I just can't interact with it. btw. on my 867mhz 12 Powerbook with 640mb ram, from qt import * takes aprox 8 seconds. How long does it take the second time? That's it for tonight. I'll do some more testing tomorrow. Thanks Phil! Try the Mac equivalent of /path/to/python canvas.py. Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] ANN: SIP v4.0pre1 Released
On Oct 17, 2003, at 19:28, Rune Hansen wrote: The canvas window pops up. It's in the background and does not seem to receive events. But hey, it works :-) Run them with pythonw, rather than python. The former has some glue that is needed to get window events into PyQt. Bill ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] ANN: SIP v4.0pre1 Released
On lørdag, okt 18, 2003, at 01:36 Europe/Oslo, Phil Thompson wrote: On Saturday 18 October 2003 12:28 am, Rune Hansen wrote: On lørdag, okt 18, 2003, at 01:00 Europe/Oslo, Phil Thompson wrote: On Friday 17 October 2003 11:47 pm, Rune Hansen wrote: On lørdag, okt 18, 2003, at 00:07 Europe/Oslo, Phil Thompson wrote: On Friday 17 October 2003 10:12 pm, Willard Myers wrote: On Oct 17, 2003, at 16:49, Rune Hansen wrote: $PYTHON/site-packages has these qt files: qt.dylib qtgl.dylib qtsql.dylib qtui.dylib qtcanvas.dylib qtnetwork.dylib qttable.dylib qtxml.dylib ...and nothing else... Can't help but think I've made an errorsome where :-) That's most of the way there, you are missing qt.py, etc. Did you run the install step? No - it looks right to me. SIP v4 doesn't generate any .py files. Have you actually tried to import a module. If the canvas.py example works then everything is probably Ok. canvas.py from examples3/canvas : Traceback (most recent call last): File canvas.py, line 4, in ? from qt import * ImportError: No module named qt Does Python on the Mac use a different file extension for compiled modules? (Like the Windows version uses .pyd?) uhm..I'm not especialy famillilar with the .pyd concept. Python file extensions on the Mac is .py, .pyc and .pyo as far as I know. I had, kind of, expected these files: qtcanvas.py, qtext.py, qtgl.py, qtnetwork.py, qt.py, qtsql.py, qttable.py, qtui.py and qtxml.py to be present in my site-packages catalog after the PyQt install...but they're not. Like I said SIP v4 doesn't generate them. Can you try renaming the .dylib files so that they have a .so extension and see if they get imported. Phil Yes! python2.3 canvas.py Qt: QApplication: Warning argv[0] == 'canvas.py' is relative. In order to dispatch events correctly Mac OS X may require applications to be run with the *full* path to the executable. QMenuBar: Not sure how to handle accelerator 0x1010 (Home) QMenuBar: Not sure how to handle accelerator 0x1010 (Home) The canvas window pops up. It's in the background and does not seem to receive events. But hey, it works :-) I've tried to run several of the other examples and I get the same result. I fired up one of my larger apps giving the full path to the start file. It no longer prints the warning, but the result is the same. The application it self works tough, I just can't interact with it. btw. on my 867mhz 12 Powerbook with 640mb ram, from qt import * takes aprox 8 seconds. How long does it take the second time? Three consecutive runs time python2.3 imp.py where imp.py only contains one line : from qt import * real0m9.746s user0m8.930s sys 0m0.180s real0m9.009s user0m8.230s sys 0m0.270 real0m9.467s user0m8.590s sys 0m0.230s That's it for tonight. I'll do some more testing tomorrow. Thanks Phil! Try the Mac equivalent of /path/to/python canvas.py. [EMAIL PROTECTED] examples3]$ /usr/local/bin/python2.3 /Users/roderik/build/pyqt/PyQt-x11-gpl-snapshot-20031016/examples3/ canvas/canvas.py QImage::smoothScale: Image is a null image QImage::smoothScale: Image is a null image QImage::smoothScale: Image is a null image QMenuBar: Not sure how to handle accelerator 0x1010 (Home) QMenuBar: Not sure how to handle accelerator 0x1010 (Home) Result: The canvas does not receive any events. (Mac OSX is basically a BSD machine, with some Apple oddities of course.) Phil regards /rune ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] ANN: SIP v4.0pre1 Released
On lørdag, okt 18, 2003, at 01:43 Europe/Oslo, Willard Myers wrote: On Oct 17, 2003, at 19:28, Rune Hansen wrote: The canvas window pops up. It's in the background and does not seem to receive events. But hey, it works :-) Run them with pythonw, rather than python. The former has some glue that is needed to get window events into PyQt. Bill Yes, that did the trick. canvas.py works and looks really good. Again, I fired up my most complex app - it's not much of a looker on MacOSX. All the fuctionallity seems to be there though. /regards rune ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde