View Single Post
Old 01-15-2009, 01:41 PM   #87
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,079
Karma: 14079267
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by user_none View Post
@mbovenka, can you run the following:

Code:
calibre-debug -c "import wmi;print reduce(lambda x,y:x+y, wmi.WMI().Win32_DiskDrive())"
Hm. That didn't work:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Program Files\calibre>calibre-debug -c "import wmi;print reduce(lambda x,y:x+
y, wmi.WMI().Win32_DiskDrive())"
Traceback (most recent call last):
File "debug.py", line 101, in <module>
File "debug.py", line 85, in main
File "<string>", line 1, in <module>
File "<string>", line 1, in <lambda>
TypeError: unsupported operand type(s) for +: 'instance' and 'instance'

C:\Program Files\calibre>
mbovenka is offline   Reply With Quote