Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-09-2008, 02:27 PM   #106
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: 44,028
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I've changed the way device detection is done, hopefully that will fix this issue. When the next version 0.4.33 is released please test.
kovidgoyal is offline   Reply With Quote
Old 01-10-2008, 08:52 AM   #107
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,
I just installed 4.33 and the program doesn't find my prs-500. I uninstalled .33, uninstalled the usb drivers, rebooted and reinstalled, but the same result...no reader found!

Mitch
Mitchll is offline   Reply With Quote
Advert
Old 01-10-2008, 10:34 AM   #108
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: 44,028
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
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
Attached Files
File Type: zip wmi.py.zip (11.7 KB, 332 views)
kovidgoyal is offline   Reply With Quote
Old 01-10-2008, 11:11 AM   #109
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,684
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I have Python 2.5 installed. Would it help to have Python 2.5.1 installed?
JSWolf is online now   Reply With Quote
Old 01-10-2008, 11:14 AM   #110
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: 44,028
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It should be fine with 2.5
kovidgoyal is offline   Reply With Quote
Advert
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
Old 01-10-2008, 04:56 PM   #112
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: 44,028
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Try copying the wmi.py file to C:\Python25\Lib\site-packages first
kovidgoyal is offline   Reply With Quote
Old 01-10-2008, 05:29 PM   #113
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
Quote:
Originally Posted by kovidgoyal View Post
Try copying the wmi.py file to C:\Python25\Lib\site-packages first
done; but I don't think I know what I'm doing:

import wmi, pythoncom
pythoncom.CoInitialize()
w = wmi.WMI()
devices = [c.Dependent.DeviceID.upper() for c in w.USBControllerDevice()]
for d in devices: print d

typed in but nothing...
Mitchll is offline   Reply With Quote
Old 01-10-2008, 05:30 PM   #114
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
Full screen at command prompt

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
>>> pythoncom.CoInitialize()
>>> w=wmi.WMI()
>>> devices=[c.Dependent.DeviceID.upper() for c in w.USBControllerDevice()]
>>> for d in devices: print d
...
Mitchll is offline   Reply With Quote
Old 01-10-2008, 05:31 PM   #115
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: 44,028
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
After the print statement you need to press enter a few times until it produces some output
kovidgoyal is offline   Reply With Quote
Old 01-10-2008, 05:41 PM   #116
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
AHA!!
...
USB\ROOT_HUB\4&2EB90B27&0
USB\VID_046D&PID_C506\5&10C49584&0&1
HID\VID_046D&PID_C506\6&2586256D&0&0000
USB\VID_046D&PID_0B04\5&10C49584&0&3
USB\VID_046D&PID_C713\0007617215A8
HID\VID_046D&PID_C713\7&29068228&0&0000
USB\VID_046D&PID_C714\0007617215A8
HID\VID_046D&PID_C714&COL01\7&377F3F51&0&0000
HID\VID_046D&PID_C714&COL02\7&377F3F51&0&0001
HID\VID_046D&PID_C714&COL03\7&377F3F51&0&0002
HID\VID_046D&PID_C714&COL04\7&377F3F51&0&0003
HID\VID_046D&PID_C714&COL05\7&377F3F51&0&0004
HID\VID_046D&PID_C714&COL06\7&377F3F51&0&0005
HID\VID_046D&PID_C714&COL07\7&377F3F51&0&0006
USB\ROOT_HUB\4&1BFF5A82&0
USB\VID_054C&PID_029B\5&309E88B9&0&3
USB\ROOT_HUB20\4&53D9397&0
>>>
Mitchll is offline   Reply With Quote
Old 01-10-2008, 06:05 PM   #117
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: 44,028
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
OK I've rebuilt the installer with a bug fix. Re-install and test.
kovidgoyal is offline   Reply With Quote
Old 01-10-2008, 06:43 PM   #118
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
Back on track.


Thanks once again for a great program.
Mitch
Mitchll is offline   Reply With Quote
Old 01-13-2008, 08:16 AM   #119
Custom
Member
Custom began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2008
Device: PRS-505
Hi few days ago finally I've received the prs-505.
I installed libprs500 some week ago and it has worked fine.

But now, after installing the sony device manager it doesn't work anymore.
Maybe I have to uninstall the drivers? But what kind of drivers, when I've plug in the device Windows has recognized it immediately like an external disk.

Here is the log:

Traceback (most recent call last):
File "main.py", line 827, in <module>
File "main.py", line 816, in main
File "main.py", line 154, in __init__
File "libprs500\gui2\library.pyo", line 405, in set_database
File "libprs500\gui2\library.pyo", line 125, in set_database
File "libprs500\library\database.pyo", line 741, in __init__
File "libprs500\library\database.pyo", line 602, in create_version1
sqlite3.OperationalError: database schema has changed
Traceback (most recent call last):
File "main.py", line 827, in <module>
File "main.py", line 816, in main
File "main.py", line 154, in __init__
File "libprs500\gui2\library.pyo", line 405, in set_database
File "libprs500\gui2\library.pyo", line 125, in set_database
File "libprs500\library\database.pyo", line 741, in __init__
File "libprs500\library\database.pyo", line 602, in create_version1
sqlite3.OperationalError: table books already exists

I've checked some ticket and found that maybe i should cancel library1.db. So I've done it, i've uninstalled the app, removed any registry key from it and then reinstalled the libprs.

But nothing, it doesn't want to work.
Custom is offline   Reply With Quote
Old 01-13-2008, 11:07 AM   #120
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: 44,028
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's a definite problem with the library file. Are you sure you deleted library1.db? Try doing a search on your system for that filename and see if it has any matches. Also did you change the location of the library1.db file through the config dialog of libprs500?
kovidgoyal is offline   Reply With Quote
Reply

Tags
libprs500, prs-505


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 07:04 PM.


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