View Single Post
Old 01-10-2008, 04:46 PM   #111
Mitchll
Cave Dweller
Mitchll once ate a cherry pie in a record 7 seconds.Mitchll once ate a cherry pie in a record 7 seconds.Mitchll once ate a cherry pie in a record 7 seconds.Mitchll once ate a cherry pie in a record 7 seconds.Mitchll once ate a cherry pie in a record 7 seconds.Mitchll once ate a cherry pie in a record 7 seconds.Mitchll once ate a cherry pie in a record 7 seconds.Mitchll once ate a cherry pie in a record 7 seconds.Mitchll once ate a cherry pie in a record 7 seconds.Mitchll once ate a cherry pie in a record 7 seconds.Mitchll once ate a cherry pie in a record 7 seconds.
 
Mitchll's Avatar
 
Posts: 220
Karma: 1986
Join Date: Oct 2006
Device: Ipad Sony reader prs-505 prs-900
Kovid:

Not sure I know what I'm doing, but this is surely not what you wanted:


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

C:\Documents and Settings\Mitch.B7D7B1B2CFEC4A4>c:\Python25\python. exe
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wmi, pythoncom
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named wmi
>>> pythoncom.CoInitialize()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'pythoncom' is not defined
>>> w = wmi.WMI()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'wmi' is not defined
>>> devices = [c.Dependent.DeviceID.upper() for c in w.USBControllerDevice()]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'w' is not defined
>>> for d in devices: print d
...
Quote:
Originally Posted by kovidgoyal View Post
Looks like the new device detection code causes problems with the PRS500 on windows. I no longer have mine to test with, so could you do the following:

Install python 2.5 from http://python.org/ftp/python/2.5.1/python-2.5.1.msi

Then install the (python win32 extensions) from https://sourceforge.net/project/down...5.exe&12384980

Finally download the attached file to some directory on your computer.

Now open a terminal ad type the following command to start python

Code:
c:\Python25\python.exe
Now at the python prompt, with your PRS500 connected, type the following lines, line by line

Code:
import wmi, pythoncom
pythoncom.CoInitialize()
w = wmi.WMI()
devices = [c.Dependent.DeviceID.upper() for c in w.USBControllerDevice()]
for d in devices: print d
Sorry for the runaround
And post the output of the print statement
Mitchll is offline   Reply With Quote