Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 10-11-2011, 10:58 AM   #136
log
...
log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.
 
Posts: 226
Karma: 514506
Join Date: Sep 2011
Device: Sony PRS-T1
wow robert you totally lost me on your test scenario

I would think you should do one thing at time and stop when there's an issue, and be very clear on the condition to replicate the problem. If Kolenka can't replicate, it makes it much more difficult to identify where the issue is.

Will defer to Kolenka and the rest of developers though, maybe I just can't understand it. I'll try it out later this evening and report my results.
log is offline   Reply With Quote
Old 10-11-2011, 11:20 AM   #137
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: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yeah, that's it. I've uploaded a build that should detect the SD card on windows as well.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-11-2011, 12:58 PM   #138
gena0411
Member
gena0411 began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Oct 2011
Device: Sony PRS-T1
Communtication error with latest beta

Hello,

I have installed the latest beta yesterday (before collections update) and everything worked fine.

Today, I have installed again to get collections support and there is a communication error.

I deleted everything to try from scratch but error remains.

==================
calibre, version 0.8.21
ERROR: Error: Error communicating with device

'NoneType' object is not subscriptable

Traceback (most recent call last):
File "site-packages\calibre\gui2\device.py", line 81, in run
File "site-packages\calibre\gui2\device.py", line 332, in _books
File "site-packages\calibre\devices\prst1\driver.py", line 142, in books
File "site-packages\calibre\devices\usbms\driver.py", line 242, in books
File "site-packages\calibre\devices\prst1\driver.py", line 200, in sync_booklists
File "site-packages\calibre\devices\prst1\driver.py", line 228, in update_device_database
File "site-packages\calibre\devices\prst1\driver.py", line 279, in update_device_books
File "site-packages\calibre\devices\prst1\driver.py", line 446, in upload_book_cover
TypeError: 'NoneType' object is not subscriptable
===========================

Could somebody help with this?

Thanks in advance
Genady
gena0411 is offline   Reply With Quote
Old 10-11-2011, 01:21 PM   #139
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
So it sounds like a lot of the problems are on Windows. Not terribly surprising as I don't currently have a Windows test environment. Development was done on OS X.

Quote:
Originally Posted by anesthezea View Post
As I said above, my first attempt with the new beta brooked mixed results - duplicated books, but all collections showing properly.

<snip>
File "site-packages\calibre\devices\prst1\driver.py", line 256, in update_device_books
IndexError: list index out of range
Anesthesia (or really anyone with the duplicated books issue), would you be willing to share out your Sony_Reader/database/books.db file that has the duplication? The matching of books to their DB entry is done by the path, so I suspect some mismatch is at work. I'd need to see the duplicate entries to see why the mismatch happened.

EDIT: Even better would be to catch a books.db right before you eject it from the machine. At the point where the books are in the collections, before the T1 removes them.

I wouldn't be surprised if the duplication in the DB was related to the collections troubles in some way. Collections must reference the books, and so if the references were awkward, the T1 might try to clean them up when it can't make sense of them.

The error in that trace looks like it got fixed by Kovid already when I pulled down his changes.

Quote:
Originally Posted by gena0411 View Post
Hello,

File "site-packages\calibre\devices\prst1\driver.py", line 446, in upload_book_cover
TypeError: 'NoneType' object is not subscriptable
Looks like I can blame Kovid's cleanup for this one (D'oh!). There is an if that got re-written incorrectly during that cleanup. I've got a fix for that in the calibre bug tracker now.

Last edited by Kolenka; 10-11-2011 at 01:32 PM.
Kolenka is offline   Reply With Quote
Old 10-11-2011, 01:26 PM   #140
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
Quote:
Originally Posted by dwanthny View Post
With all of the older Sony models the Automatic setting was great. If the T-1 ever gets integrated to that level I'll consider buying one.
Minus the bugs folks are having with duplication, it's already at that point. The difference between manual/automatic management is outside of the driver, and doesn't require any specific support for it. Calibre tells the driver what the data on the device should be, and the driver makes it so.

EDIT: Forgot to mention I actually use Automatic myself.

Last edited by Kolenka; 10-11-2011 at 01:47 PM.
Kolenka is offline   Reply With Quote
Advert
Old 10-11-2011, 01:31 PM   #141
gena0411
Member
gena0411 began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Oct 2011
Device: Sony PRS-T1
Quote:
Originally Posted by Kolenka View Post
So it sounds like a lot of the problems are on Windows. Not terribly surprising as I don't currently have a Windows test environment. Development was done on OS X.



Anesthesia (or really anyone with the duplicated books issue), would you be willing to share out your Sony_Reader/database/books.db file that has the duplication? The matching of books to their DB entry is done by the path, so I suspect some mismatch is at work. I'd need to see the duplicate entries to see why the mismatch happened.

I wouldn't be surprised if the duplication in the DB was related to the collections troubles in some way. Collections must reference the books, and so if the references were awkward, the T1 might try to clean them up when it can't make sense of them.

The error in that trace looks like it got fixed by Kovid already when I pulled down his changes.



Looks like I can blame Kovid's cleanup for this one (D'oh!). There is an if that got re-written incorrectly during that cleanup. I've got a fix for that in the calibre bug tracker now.

Thanks Kolenka.
So you have found the source of the error?
Hopefully next update will include the fix then.

Thanks
Genady
gena0411 is offline   Reply With Quote
Old 10-11-2011, 01:34 PM   #142
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
You mean the one you found? Yeah. It's a silly typo mistake made in a hurry.

The trigger for the bug is a book without a thumbnail cover.
Kolenka is offline   Reply With Quote
Old 10-11-2011, 01:51 PM   #143
gena0411
Member
gena0411 began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Oct 2011
Device: Sony PRS-T1
Quote:
Originally Posted by Kolenka View Post
You mean the one you found? Yeah. It's a silly typo mistake made in a hurry.

The trigger for the bug is a book without a thumbnail cover.
OK. Thanks.
gena0411 is offline   Reply With Quote
Old 10-11-2011, 04:22 PM   #144
Robert22
Zealot
Robert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankind
 
Robert22's Avatar
 
Posts: 108
Karma: 17102
Join Date: Sep 2010
Location: San Diego, CA
Device: PRS-505 600 300 350 T1 T2 Kindle PW1 PW2 KV Clara 2E Libra 2 Leaf 2
Quote:
Originally Posted by kovidgoyal View Post
Yeah, that's it. I've uploaded a build that should detect the SD card on windows as well.
Thanks kovidgoyal,

The SD card is now consistently detected.
Robert22 is offline   Reply With Quote
Old 10-11-2011, 04:45 PM   #145
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
Robert, can you recreate the situation in Step 4 of your steps from earlier, and PM me the books.db?

Ideally, I'd like to get two copies:
1) Before you unplug the device, after say, quitting Calibre to make sure it has written everything out to the file.
2) After letting the T1 remove books from the collections, connecting the T1, and not using Calibre again.

#1 will give me the state that Calibre set.
#2 will give me the state that the T1 corrected it to.

I should be able to figure out what is likely going wrong at that point.
Kolenka is offline   Reply With Quote
Old 10-11-2011, 05:39 PM   #146
Robert22
Zealot
Robert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankind
 
Robert22's Avatar
 
Posts: 108
Karma: 17102
Join Date: Sep 2010
Location: San Diego, CA
Device: PRS-505 600 300 350 T1 T2 Kindle PW1 PW2 KV Clara 2E Libra 2 Leaf 2
OK I discovered what was causing the discrepancies between what was checked and showing in the Library view and checked and showing in the Device view. Turns out it was a plugboards issue.

I had a plugboard with 2 items:

{title} ({pubdate}) Mapped to: title
{author_sort} Mapped to: authors

The authors item did not affect the checked list but the title item does. So I have remove the plugboard for further testing.
Robert22 is offline   Reply With Quote
Old 10-11-2011, 05:41 PM   #147
Robert22
Zealot
Robert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankind
 
Robert22's Avatar
 
Posts: 108
Karma: 17102
Join Date: Sep 2010
Location: San Diego, CA
Device: PRS-505 600 300 350 T1 T2 Kindle PW1 PW2 KV Clara 2E Libra 2 Leaf 2
Quote:
Originally Posted by Kolenka View Post
Robert, can you recreate the situation in Step 4 of your steps from earlier, and PM me the books.db?

Ideally, I'd like to get two copies:
1) Before you unplug the device, after say, quitting Calibre to make sure it has written everything out to the file.
2) After letting the T1 remove books from the collections, connecting the T1, and not using Calibre again.

#1 will give me the state that Calibre set.
#2 will give me the state that the T1 corrected it to.

I should be able to figure out what is likely going wrong at that point.

Hi Kolenka,

OK I created the files for you but I do not have Private Messaging set up on my machine. Can I get the files to you in another way?
Robert22 is offline   Reply With Quote
Old 10-11-2011, 05:49 PM   #148
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
Quote:
Originally Posted by Robert22 View Post
Hi Kolenka,

OK I created the files for you but I do not have Private Messaging set up on my machine. Can I get the files to you in another way?
You can't PM through the forum?
Kolenka is offline   Reply With Quote
Old 10-11-2011, 05:59 PM   #149
Robert22
Zealot
Robert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankind
 
Robert22's Avatar
 
Posts: 108
Karma: 17102
Join Date: Sep 2010
Location: San Diego, CA
Device: PRS-505 600 300 350 T1 T2 Kindle PW1 PW2 KV Clara 2E Libra 2 Leaf 2
Quote:
Originally Posted by Kolenka View Post
You can't PM through the forum?
How do I attach a file that way?
Robert22 is offline   Reply With Quote
Old 10-11-2011, 06:14 PM   #150
Robert22
Zealot
Robert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankind
 
Robert22's Avatar
 
Posts: 108
Karma: 17102
Join Date: Sep 2010
Location: San Diego, CA
Device: PRS-505 600 300 350 T1 T2 Kindle PW1 PW2 KV Clara 2E Libra 2 Leaf 2
OK done...
Robert22 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Prs 505 Sony and calibre 0.8 duduche33 Devices 3 05-12-2011 10:50 AM
Calibre for Sony prs 350 Rick1971 Calibre 4 12-26-2010 12:27 PM
Calibre and Sony PRS-600 Archergal5219 Calibre 2 07-25-2010 12:32 AM
Sony PRS-505/Sony Connect/Calibre thesweetone Sony Reader 26 09-30-2009 03:00 PM
Calibre and Sony PRS-600 lukasfikr Calibre 10 08-26-2009 09:11 PM


All times are GMT -4. The time now is 08:40 AM.


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