Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-09-2007, 10:32 PM   #46
FlyTags
Member
FlyTags began at the beginning.
 
FlyTags's Avatar
 
Posts: 10
Karma: 48
Join Date: Nov 2007
Location: Upstate NY
Device: Amazon Kindle
Hello. First off, thanks a ton for the work you're putting into this. I just picked up my Sony Reader this morning and this looks to be a great tool!

Anyway, I just thought I'd jump in here, as I'm having the same problem on Vista32 (haven't tried it on XP). I ran libprs v0.4.18 with my PRS-505 connected and it doesn't do anything. Just hangs. I ran 'prs500 df' under the command line and nothing happened - just a blinking cursor. I let it sit for a few minutes, hit ctrl+c, and this is what I got:

Code:
C:\Users\XXX>prs500 df
Traceback (most recent call last):
  File "main.py", line 346, in <module>
  File "main.py", line 224, in main
  File "libprs500\devices\prs505\driver.pyo", line 217, in open
  File "libprs500\devices\prs505\driver.pyo", line 217, in open
  File "libprs500\devices\prs505\driver.pyo", line 217, in open
  File "libprs500\devices\prs505\driver.pyo", line 217, in open
  File "libprs500\devices\prs505\driver.pyo", line 217, in open
  File "libprs500\devices\prs505\driver.pyo", line 217, in open
  File "libprs500\devices\prs505\driver.pyo", line 216, in open
KeyboardInterrupt
Hope this helps!

-FlyTags
FlyTags is offline   Reply With Quote
Old 11-09-2007, 11:04 PM   #47
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Well that error means for some reason the routine that finds out which drive letter the sony reader is mounted on, is failing. It works for me, so in order to debug it, you're going to have to do a little work.

First, install python 2.5 from python.org
then install the following two packages
https://sourceforge.net/projects/pywin32/
then
http://tgolden.sc.sabren.com/python/wmi.html

Then open a terminal and start the python interpreter which should be something like
c:\Python25\python.exe

At the interpreter prompt type or paste the following commands
Code:
import wmi
c = wmi.WMI()
drives = c.Win32_DiskDrive()
ids = [d.PNPDeviceID for d in drives]
print ids
Post the output of the print command. Do this with the reader connected.
kovidgoyal is online now   Reply With Quote
Advert
Old 11-09-2007, 11:41 PM   #48
FlyTags
Member
FlyTags began at the beginning.
 
FlyTags's Avatar
 
Posts: 10
Karma: 48
Join Date: Nov 2007
Location: Upstate NY
Device: Amazon Kindle
Alright, done (I think). Here's the output I came up with:

Code:
C:\Python25>python
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
>>> c = wmi.WMI()
>>> drives = c.Win32_DiskDrive()
>>> ids = [d.PNPDeviceID for d in drives]
>>> print ids
[u'IDE\\DISKWDC_WD4000KD-00NAB0_____________________01.06A01\\5&18DB71A7&0&1.0.0
', u'IDE\\DISKWDC_WD5000AAKS-00YGA0___________________12.01C02\\5&621C102&0&0.0.
0', u'USBSTOR\\DISK&VEN_GENERIC&PROD_STORAGE_DEVICE&REV_9339\\200612070A&0', u'U
SBSTOR\\DISK&VEN_GENERIC&PROD_STORAGE_DEVICE&REV_9339\\200612070A&1', u'USBSTOR\
\DISK&VEN_GENERIC&PROD_STORAGE_DEVICE&REV_9339\\200612070A&2', u'USBSTOR\\DISK&V
EN_GENERIC&PROD_STORAGE_DEVICE&REV_9339\\200612070A&3', u'USBSTOR\\DISK&VEN_MEMO
REX&PROD_TD_CLASSIC_003C&REV_1.02\\0D504A5162704A20&0', u'USBSTOR\\DISK&VEN_SONY
&PROD_PRS-505/UC&REV_1000\\080046100042D42E&0', u'USBSTOR\\DISK&VEN_SONY&PROD_PR
S-505/UC:MS&REV_1000\\080046100042D42E&1', u'USBSTOR\\DISK&VEN_SONY&PROD_PRS-505
/UC:SD&REV_1000\\080046100042D42E&2']
>>>
Let me know if there's anything else I can do to help you out!

-FlyTags
FlyTags is offline   Reply With Quote
Old 11-09-2007, 11:51 PM   #49
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
So far it looks good
Now try the following code
Code:
import wmi
c = wmi.WMI()
drives = c.Win32_DiskDrive()
ids = [d.PNPDeviceID for d in drives]
partitions = [d.Partitions for d in drives]
print zip(ids, partitions)
kovidgoyal is online now   Reply With Quote
Old 11-09-2007, 11:57 PM   #50
FlyTags
Member
FlyTags began at the beginning.
 
FlyTags's Avatar
 
Posts: 10
Karma: 48
Join Date: Nov 2007
Location: Upstate NY
Device: Amazon Kindle
And the result:

Code:
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
>>> c = wmi.WMI()
>>> drives = c.Win32_DiskDrive()
>>> ids = [d.PNPDeviceID for d in drives]
>>> partitions = [d.Partitions for d in drives]
>>> print zip(ids, partitions)
[(u'IDE\\DISKWDC_WD4000KD-00NAB0_____________________01.06A01\\5&18DB71A7&0&1.0.
0', 1), (u'IDE\\DISKWDC_WD5000AAKS-00YGA0___________________12.01C02\\5&621C102&
0&0.0.0', 3), (u'USBSTOR\\DISK&VEN_GENERIC&PROD_STORAGE_DEVICE&REV_9339\\2006120
70A&0', 0), (u'USBSTOR\\DISK&VEN_GENERIC&PROD_STORAGE_DEVICE&REV_9339\\200612070
A&1', 0), (u'USBSTOR\\DISK&VEN_GENERIC&PROD_STORAGE_DEVICE&REV_9339\\200612070A&
2', 1), (u'USBSTOR\\DISK&VEN_GENERIC&PROD_STORAGE_DEVICE&REV_9339\\200612070A&3'
, 0), (u'USBSTOR\\DISK&VEN_MEMOREX&PROD_TD_CLASSIC_003C&REV_1.02\\0D504A5162704A
20&0', 1), (u'USBSTOR\\DISK&VEN_SONY&PROD_PRS-505/UC&REV_1000\\080046100042D42E&
0', 1), (u'USBSTOR\\DISK&VEN_SONY&PROD_PRS-505/UC:MS&REV_1000\\080046100042D42E&
1', 0), (u'USBSTOR\\DISK&VEN_SONY&PROD_PRS-505/UC:SD&REV_1000\\080046100042D42E&
2', 0)]
>>>
-FlyTags
FlyTags is offline   Reply With Quote
Advert
Old 11-10-2007, 12:00 AM   #51
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
ok now
Code:
import wmi
c = wmi.WMI()
drives = c.Win32_DiskDrive()
mm = drives[-3]
print mm
kovidgoyal is online now   Reply With Quote
Old 11-10-2007, 12:10 AM   #52
FlyTags
Member
FlyTags began at the beginning.
 
FlyTags's Avatar
 
Posts: 10
Karma: 48
Join Date: Nov 2007
Location: Upstate NY
Device: Amazon Kindle
And...

Code:
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
>>> c = wmi.WMI()
>>> drives = c.Win32_DiskDrive()
>>> mm = drives[-3]
>>> print mm

instance of Win32_DiskDrive
{
        BytesPerSector = 512;
        Capabilities = {3, 4, 7};
        CapabilityDescriptions = {"Random Access", "Supports Writing", "Supports
 Removable Media"};
        Caption = "Sony PRS-505/UC USB Device";
        ConfigManagerErrorCode = 0;
        ConfigManagerUserConfig = FALSE;
        CreationClassName = "Win32_DiskDrive";
        Description = "Disk drive";
        DeviceID = "\\\\.\\PHYSICALDRIVE7";
        FirmwareRevision = "1000";
        Index = 7;
        InterfaceType = "USB";
        Manufacturer = "(Standard disk drives)";
        MediaLoaded = TRUE;
        MediaType = "Removable Media";
        Model = "Sony PRS-505/UC USB Device";
        Name = "\\\\.\\PHYSICALDRIVE7";
        Partitions = 1;
        PNPDeviceID = "USBSTOR\\DISK&VEN_SONY&PROD_PRS-505/UC&REV_1000\\08004610
0042D42E&0";
        SectorsPerTrack = 63;
        Signature = 1;
        Size = "213857280";
        Status = "OK";
        SystemCreationClassName = "Win32_ComputerSystem";
        SystemName = "ARTEMIS";
        TotalCylinders = "26";
        TotalHeads = 255;
        TotalSectors = "417690";
        TotalTracks = "6630";
        TracksPerCylinder = 255;
};

>>>
FlyTags is offline   Reply With Quote
Old 11-10-2007, 12:12 AM   #53
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
OK that shows me the problem. Expect it to be fixed in the next release. Thanks for taking the trouble.
kovidgoyal is online now   Reply With Quote
Old 11-10-2007, 12:15 AM   #54
FlyTags
Member
FlyTags began at the beginning.
 
FlyTags's Avatar
 
Posts: 10
Karma: 48
Join Date: Nov 2007
Location: Upstate NY
Device: Amazon Kindle
Hey, great to hear and it wasn't any trouble at all. It was my first time playing around with Python (and I had no idea what I was typing), but it was fun nonetheless.

Anyway, thanks again for your hard work. It's much appreciated.

And now, I'm off to bed... Good night!

-FlyTags
FlyTags is offline   Reply With Quote
Old 11-10-2007, 12:42 AM   #55
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Actually since this is a windows only pure bugfix I just re-released 0.4.18 so re-install and you should be good to go.
kovidgoyal is online now   Reply With Quote
Old 11-10-2007, 12:54 AM   #56
Konquest
Member
Konquest began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Nov 2007
Device: Kindle 3 Wifi
Nice job Kovid it works now! But my mouse cursor is still going crazy, it keeps kicking it to the top right corner of my screen every 20 secs

Last edited by Konquest; 11-10-2007 at 12:57 AM.
Konquest is offline   Reply With Quote
Old 11-10-2007, 01:04 AM   #57
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I doubt that has anything to do with libprs500. There is no mouse related code in libprs500 and it uses the standard windows driver to access the 505.
kovidgoyal is online now   Reply With Quote
Old 11-10-2007, 11:01 AM   #58
FlyTags
Member
FlyTags began at the beginning.
 
FlyTags's Avatar
 
Posts: 10
Karma: 48
Join Date: Nov 2007
Location: Upstate NY
Device: Amazon Kindle
Hey, just to let you know - I loaded up the 0.4.18 re-release this morning. No problems at all. Everything works perfectly now. Great job!

-FlyTags
FlyTags is offline   Reply With Quote
Old 11-11-2007, 11:51 AM   #59
jeff363
Member
jeff363 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Nov 2007
Device: Sony PRS-505
Kovid - Do you have a revision history (or log) for each of your releases for LIBPRS500? I just installed 04.18 (BTW - I love this software over the Sony e-book software!!! You can do so much more to the e-books so that they look great on the Sony Reader) and I noticed that you have 04.19, but don't want to have to keep reinstalling if I know what the changes are. Thanks...
jeff363 is offline   Reply With Quote
Old 11-11-2007, 11:55 AM   #60
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://libprs500.kovidgoyal.net/timeline

Every version bump is a separate commit so just look for the changesets between the last version bump and the current one.
kovidgoyal is online now   Reply With Quote
Reply

Tags
libprs500, prs-505

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
libprs500 tommy still Calibre 2 02-09-2008 10:55 AM
Using libprs500 jerryleejr Calibre 2 01-28-2008 12:29 AM
Using Libprs500 for 505 JeffASonyReader Calibre 17 01-21-2008 09:34 AM
Help!!! libprs500 MountainMan Calibre 11 11-13-2007 11:25 PM
libprs500 and 505 carchase Sony Reader 6 10-28-2007 03:06 PM


All times are GMT -4. The time now is 10:00 PM.


MobileRead.com is a privately owned, operated and funded community.