[PyKDE] Error installing pykde on Debian

Jim Bublitz jbublitz at nwinternet.com
Wed Dec 17 19:44:01 GMT 2003


On Tuesday December 16 2003 08:35, Juanjo Alvarez wrote:

> I got this traceback while trying to start PyKDE on Debian
> Sid:

> Building PyKDE 3.8 on linux2.

> Python version is 2.3
> Python parent directory is /usr/lib/python2.3
> Python library directory is /usr/lib/python2.3/config
> Python include directory is /usr/include/python2.3

> Home directory is /home/juanjux

> sip code generator path (sip) is /usr/local/bin
> sip version is 2.5
> sip lib directory (libsip*) is
> /usr/lib/python2.3/site-packages sip include directory
> (sipQt.h) is /usr/include/python2.3

> Qt3 parent directory is /usr/lib/qt3
> Qt3 lib directory (libqt-mt.so.3) is /usr/lib/

> An internal error occured.  Review the installation
> documentation or report all the output from the program,
> including the traceback, to the PyKDE mailing list:
> <pykde at mats.imk.fraunhofer.de>. Thanks.

> Traceback (most recent call last):
>   File "build.py", line 1038, in ?
>     main (sys.argv)
>   File "build.py", line 989, in main
>     dis = Discovery (opts, usingSip, usingQt, usingPyQt,
> usingKDE, usingPyKDE, isPyKDE) File "build/discover.py", line
> 483, in __init__
>     self.discoverQt3 (opts)
>   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

Ricardo's reply seems to be the best solution. 

Otherwise, it seems to be a Unicode related problem. If you want 
to track down the bug, it would help if you could add a print 
stmt before line 45 in build/discover.py:

    print target, searchPath

to determine what value is causing the failure.

Jim




More information about the PyQt mailing list