[PyKDE] Internal error in python.py PyKDE 3.8.0 over python2.3

Mateusz Korniak mateusz at ant.gliwice.pl
Thu Nov 13 14:14:01 GMT 2003


On Tuesday 11 of November 2003 19:46, Jim Bublitz wrote:
> On Tuesday November 11 2003 05:50, Mateusz Korniak wrote:
> > + python build.py -q /usr -k /usr -i /usr/include/qt -d
> >
> > Qt3 parent directory is /usr
> > Qt3 lib directory (libqt-mt.so.3) is /usr/lib
> >
> >   File "build/discover.py", line 58, in search
> >     if os.path.isdir (searchEntry)\
> >   File "/usr/lib/python2.3/posixpath.py", line 187, in isdir
> >
> > TypeError: coercing to Unicode: need string or buffer, list
> > found error: Bad exit status from /var/tmp/rpm-tmp.79652
> > (%build)
> >
> > Any ideas ?
>
> It's failing while trying to find /usr/include/qt from your -i
> above  (assuming build.py read the option correctly too).
> I'm not sure if the "TypeError" is meaningful or not.

OK. IMHO bug is there build/discover.py 605:610
        if opts.has_key ("-i"):
            qtInclDir = [opts ["-i"] ]
        else:
            qtInclDir = [os.path.join (self.qt.path, "lib") ]
        self.qtIncl = DiscoverQt3Incl ("qglobal.h", [os.path.join 
(self.qt.path, "include")]+qtInclDir)

As qtInclDir is seqeunce type it should be added to list, not included as 
element.

But I've hit another problem:
We keep all sip files in /usr/share/sip, but build.py expects always to be in 
PyQt-x11-gpl-3.8.1/sip/:

PyQt lib directory is /usr/lib/python2.3/site-packages
PyQt lib version is 3.8.1
CALLED: 
Discover(target='PyQt-x11-gpl-3.8.1/sip/qtmod.sip',searchPath=['/usr/share/sip'])
DEBUG: searchEntry:  '/usr/share/sip'

*** Error: PyQt sip files directory -- not found
 (['/usr/share/sip'], PyQt-x11-gpl-3.8.1/sip/qtmod.sip)


I'm not sure but I think switch -v should mean directly directory containing 
sip files ... ?

-- 
Mateusz Korniak




More information about the PyQt mailing list