Re: [PyKDE] Build problems on Windows
I have Python 2.5, Qt 4.2.0 and the latest end of October snapshots of PyQt. Everytime I get about halfway through the PyQt configuration, sip.exe dies on me. I'm compiling with the current version of MingW, and I have had problems with using Visual C++ 2005 Express w/ Platform SDK as well. What is the best way to do a build on Windows with the latest Python, Qt and PyQt? MSVC 2003 and the version of MinGW that GPL Qt drags in are wfat I use without problems. Phil ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] build problems.
On Thu, 15 Jan 2004 09:38:17, Dan Keshet wrote: I'm running debian with standard .debs for all the packages except pyKDE. Output below. Any help would be much appreciated. [...] File build/discover.py, line 608, in discoverQt3 self.qtIncl = DiscoverQt3Incl (qglobal.h, [os.path.join (self.qt.path, include), qtInclDir]) File build/discover.py, line 202, in __init__ Discover.__init__ (self, target, searchPath) File build/discover.py, line 45, in __init__ self.search (target, searchEntry) File build/discover.py, line 58, in search if os.path.isdir (searchEntry)\ File /usr/lib/python2.3/posixpath.py, line 187, in isdir st = os.stat(path) TypeError: coercing to Unicode: need string or buffer, list found I glanced at this problem yesterday, but I've been waiting for the list digest to arrive before answering. My guess is that line 608 of build/discover.py should read: self.qtIncl = DiscoverQt3Incl (qglobal.h, [os.path.join (self.qt.path, include)] + qtInclDir) The above is all one line. Before, the qtInclDir (a list) is stored within a list, and this gets as a string later on (at line 58) with disastrous consequences. Hope this helps (and that I've made a correct diagnosis), David ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] build problems.
Thanks David, I got it to compile and test okay today on debian. I needed to do the following things: 1) use -q /usr/share/qt3/ -r /usr/lib for build.py 2) Edit line 624 of discover.py like so: ~diff old/build/discover.py new/build/discover.py 624c624 self.pyQtSip = DiscoverPyQtSip (os.path.join (PyQt-x11-gpl- + self.pyQtLib.vers, sip, qtmod.sip), pyQtSipPath) --- self.pyQtSip = DiscoverPyQtSip (os.path.join (qtmod.sip), pyQtSipPath) 3) Comment out a function in kaccelmanager.sip Thanks to everybody for their kind help. --dk On Friday 16 January 2004 15:43, David Boddie wrote: On Thu, 15 Jan 2004 09:38:17, Dan Keshet wrote: I'm running debian with standard .debs for all the packages except pyKDE. Output below. Any help would be much appreciated. [...] File build/discover.py, line 608, in discoverQt3 self.qtIncl = DiscoverQt3Incl (qglobal.h, [os.path.join (self.qt.path, include), qtInclDir]) File build/discover.py, line 202, in __init__ Discover.__init__ (self, target, searchPath) File build/discover.py, line 45, in __init__ self.search (target, searchEntry) File build/discover.py, line 58, in search if os.path.isdir (searchEntry)\ File /usr/lib/python2.3/posixpath.py, line 187, in isdir st = os.stat(path) TypeError: coercing to Unicode: need string or buffer, list found I glanced at this problem yesterday, but I've been waiting for the list digest to arrive before answering. My guess is that line 608 of build/discover.py should read: self.qtIncl = DiscoverQt3Incl (qglobal.h, [os.path.join (self.qt.path, include)] + qtInclDir) The above is all one line. Before, the qtInclDir (a list) is stored within a list, and this gets as a string later on (at line 58) with disastrous consequences. Hope this helps (and that I've made a correct diagnosis), David ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] build problems.
On Friday January 16 2004 15:43, David Boddie wrote: On Thu, 15 Jan 2004 09:38:17, Dan Keshet wrote: I'm running debian with standard .debs for all the packages except pyKDE. Output below. Any help would be much appreciated. [...] File build/discover.py, line 608, in discoverQt3 self.qtIncl = DiscoverQt3Incl (qglobal.h, [os.path.join (self.qt.path, include), qtInclDir]) File build/discover.py, line 202, in __init__ Discover.__init__ (self, target, searchPath) File build/discover.py, line 45, in __init__ self.search (target, searchEntry) File build/discover.py, line 58, in search if os.path.isdir (searchEntry)\ File /usr/lib/python2.3/posixpath.py, line 187, in isdir st = os.stat(path) TypeError: coercing to Unicode: need string or buffer, list found I glanced at this problem yesterday, but I've been waiting for the list digest to arrive before answering. My guess is that line 608 of build/discover.py should read: self.qtIncl = DiscoverQt3Incl (qglobal.h, [os.path.join (self.qt.path, include)] + qtInclDir) The above is all one line. Before, the qtInclDir (a list) is stored within a list, and this gets as a string later on (at line 58) with disastrous consequences. Hope this helps (and that I've made a correct diagnosis), I believe that's right - there's an earlier post on the problem, probably in the Nov or Dec archive. Jim ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde