Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-22-2014, 03:44 PM   #1
scarlettruin
Connoisseur
scarlettruin began at the beginning.
 
Posts: 69
Karma: 10
Join Date: May 2014
Location: UK
Device: Samsung 10 Inch Tablet 2016 & Samsung S10+
Help - Recurring 'Error communicating with device'

Hi - help please!

I keep getting the 'Error Communicating with Device' when trying to wirelessly connect CC on my samsung tablet to calibre. This occurs regardless of which library I have up, and I've made sure I've updated everything fully.

This is what it says:

calibre, version 1.41.0
ERROR: Error: Error communicating with device

'NoneType' object has no attribute 'set'

Traceback (most recent call last):
File "site-packages\calibre\gui2\device.py", line 86, in run
File "site-packages\calibre\gui2\device.py", line 490, in _books
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 50, in _synchronizer
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 1288, in books
AttributeError: 'NoneType' object has no attribute 'set'

Sometimes, though, this error message comes up, and yet there is still a connection between calibre companion and calibre. I can send things to CC, but it doesn't show what is already on my device.

Any ideas?
scarlettruin is offline   Reply With Quote
Old 06-22-2014, 03:56 PM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,336
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by scarlettruin View Post
Hi - help please!

I keep getting the 'Error Communicating with Device' when trying to wirelessly connect CC on my samsung tablet to calibre. This occurs regardless of which library I have up, and I've made sure I've updated everything fully.

This is what it says:

calibre, version 1.41.0
ERROR: Error: Error communicating with device

'NoneType' object has no attribute 'set'

Traceback (most recent call last):
File "site-packages\calibre\gui2\device.py", line 86, in run
File "site-packages\calibre\gui2\device.py", line 490, in _books
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 50, in _synchronizer
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 1288, in books
AttributeError: 'NoneType' object has no attribute 'set'

Sometimes, though, this error message comes up, and yet there is still a connection between calibre companion and calibre. I can send things to CC, but it doesn't show what is already on my device.

Any ideas?
This error indicates that the metadata for a book is corrupted. Which book is a mystery, as is why. My guess is that it is a book that was put into CC's folder and is being found by "scan for missing books", but this is only a guess at this point.

Please post a calibre debug log or send it to calibre_debug_logs at charles dot haleys dot org. You can get such a log by following these instructions.

Please also send me a CC debug log. The instructions for doing that are in the same post referred to above. Please be sure to mention in the email that you are responding to a post on MobileRead.
chaley is offline   Reply With Quote
Advert
Old 06-22-2014, 04:17 PM   #3
scarlettruin
Connoisseur
scarlettruin began at the beginning.
 
Posts: 69
Karma: 10
Join Date: May 2014
Location: UK
Device: Samsung 10 Inch Tablet 2016 & Samsung S10+
Quote:
Originally Posted by chaley View Post
This error indicates that the metadata for a book is corrupted. Which book is a mystery, as is why. My guess is that it is a book that was put into CC's folder and is being found by "scan for missing books", but this is only a guess at this point.

Please post a calibre debug log or send it to calibre_debug_logs at charles dot haleys dot org. You can get such a log by following these instructions.

Please also send me a CC debug log. The instructions for doing that are in the same post referred to above. Please be sure to mention in the email that you are responding to a post on MobileRead.
Thank you for the response, I'm getting the logs now. Will they be able to tell me which book is corrupted? Is there any way to tell if not?

Thanks
scarlettruin is offline   Reply With Quote
Old 06-22-2014, 04:26 PM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,336
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by scarlettruin View Post
Thank you for the response, I'm getting the logs now. Will they be able to tell me which book is corrupted? Is there any way to tell if not?

Thanks
It is hard to say. Assuming that my guess is correct then we will probably be able to get close because IIRC. I will know more once I see the logs.
-----
I have received the logs. There seems to be a book in the database that doesn't have a valid book file. Try running CC's "Books with missing files" (in CC's menu) and see if it finds anything. If it does then note the book (if it has a title) then delete it.

Last edited by chaley; 06-23-2014 at 01:24 AM. Reason: Fix where to find the "missing book files" operation
chaley is offline   Reply With Quote
Old 06-23-2014, 04:11 AM   #5
scarlettruin
Connoisseur
scarlettruin began at the beginning.
 
Posts: 69
Karma: 10
Join Date: May 2014
Location: UK
Device: Samsung 10 Inch Tablet 2016 & Samsung S10+
Quote:
Originally Posted by chaley View Post
It is hard to say. Assuming that my guess is correct then we will probably be able to get close because IIRC. I will know more once I see the logs.
-----
I have received the logs. There seems to be a book in the database that doesn't have a valid book file. Try running CC's "Books with missing files" (in CC's menu) and see if it finds anything. If it does then note the book (if it has a title) then delete it.
I ran the 'missing files' search. It came back with two books - one looked normal but I deleted it anyway. The other came up as 'error - no title in metadata', and when i clicked on it, there was no metadata at all. It was just saved in the calibre folder as 'error'. I deleted it too, but strangely enough when it was deleting them, it came up at 4 files that were being deleted. Is there any way of finding out what the 'error' book is in my calibre library?

Thanks again!
scarlettruin is offline   Reply With Quote
Advert
Old 06-23-2014, 04:33 AM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,336
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by scarlettruin View Post
I ran the 'missing files' search. It came back with two books - one looked normal but I deleted it anyway. The other came up as 'error - no title in metadata', and when i clicked on it, there was no metadata at all. It was just saved in the calibre folder as 'error'. I deleted it too, but strangely enough when it was deleting them, it came up at 4 files that were being deleted. Is there any way of finding out what the 'error' book is in my calibre library?

Thanks again!
First, can you now connect?

From the logs I expected 3 "error" books. I missed the fourth. My eyes aren't what they used to be.

Unfortunately there is no way to know which books were corrupted. The corruption destroyed all the metadata, including the title. You can connect as a wireless device then look in calibre at which books are not "On Device", but of course that depends on you knowing what should be on the device. While connected, the search "ondevice:false" in the library view will list all books that aren't on the device.

You are probably wondering how this happened. We have seen it around 3 or 4 times in the past. Our theory is that incomplete metadata gets into the database because of a crash or a "scan for new books", then that incomplete metadata is corrupted by a database upgrade when upgrading CC. I found one way that this scenario could happen and fixed it. In any event, it happens extremely rarely. You shouldn't see it again. (knock wood)
chaley is offline   Reply With Quote
Old 06-23-2014, 05:04 AM   #7
scarlettruin
Connoisseur
scarlettruin began at the beginning.
 
Posts: 69
Karma: 10
Join Date: May 2014
Location: UK
Device: Samsung 10 Inch Tablet 2016 & Samsung S10+
Quote:
Originally Posted by chaley View Post
First, can you now connect?

From the logs I expected 3 "error" books. I missed the fourth. My eyes aren't what they used to be.

Unfortunately there is no way to know which books were corrupted. The corruption destroyed all the metadata, including the title. You can connect as a wireless device then look in calibre at which books are not "On Device", but of course that depends on you knowing what should be on the device. While connected, the search "ondevice:false" in the library view will list all books that aren't on the device.

You are probably wondering how this happened. We have seen it around 3 or 4 times in the past. Our theory is that incomplete metadata gets into the database because of a crash or a "scan for new books", then that incomplete metadata is corrupted by a database upgrade when upgrading CC. I found one way that this scenario could happen and fixed it. In any event, it happens extremely rarely. You shouldn't see it again. (knock wood)
Thank you! It does connect now - Hopefully you're right and it won't happen again, but it's fixed now and that's all that matters!
scarlettruin is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Communicating with Device Micheal7 Devices 0 08-29-2013 05:14 PM
Error communicating with Device Poppa1956 Calibre 5 09-08-2012 07:17 PM
calibre, version 0.8.8 ERROR: Error: Error communicating with device no such column: e-bookuser Devices 1 07-03-2011 04:09 PM
ver 0.6.3 error: Error communicating with device PRS-505 scripo Calibre 4 08-01-2009 10:38 PM


All times are GMT -4. The time now is 11:28 AM.


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