Looking for a scripting language
Peter Hansen
peter at engcorp.com
Mon May 6 19:54:50 EDT 2002
deckerben wrote:
>
> D:\D\SCRIPTS\PROGRAM\Python\PyXML-0.7.1>python setup.py build
> Traceback (most recent call last):
> File "D:\USER\DJGPP\lib\python2.0\distutils\util.py", line 135, in
> check_envir on
> os.environ['PLAT'] = get_platform()
> File "D:\USER\DJGPP\lib\python2.0\distutils\util.py", line 43, in
> get_platform
>
> (osname, host, release, version, machine) = os.uname()
> TypeError: unpack non-sequence
That last line suggests that your implementation of os.uname()
is not returning what was expected (a sequence consisting of
those five specific items. I'm not qualified to advise you in
this :-), but I would recommend checking into the os module
to see if the compiler/OS support for whatever that routine
does is non-standard or something. Or make a fake version
which returns those five items with reasonable guesses:
def fake_uname():
return 'BenDos', 'localhost', '2.4', 'yadda', 'Pentium'
import os
os.uname = fake_uname
Or something kludgy like that... it might let you work
past the problem anyway.
-Peter
More information about the Python-list
mailing list