-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error during initial connection #42
Comments
[I hit edit on here and it does nothing. So i need to add here:] When I tried to send a book, Calibre said this: ERROR: Error: Error communicating with device [Errno 10054] An existing connection was forcibly closed by the remote host Traceback (most recent call last): |
The device is fairly full but not competely |
Can you confirm the Calibre version? 1.48 is very very old. Do you mean 3.48? |
a) During the initial connection, it doesn't do anything except sitting on "sending extra metadata" for a long time. b) When I try to send a tiny epub, it successfully shows on Calibre the context menu item: Then the Uncaged app bug report is: [I hid the tcp number with Xs. Do I need to do that?]
a) Xp and 7 Calibre I THINK had shared the same database folder I think
Thanks so much for your help ! |
Oops yes I meant to confirm Calibre 1.48 - the last compatible with Xp |
I'm almost certain the problem is the age of Calibre I'm afraid. I believe the 'calibre companion' protocol went through quite a few changes in it's early years, and I'm pretty sure 1.48 would have been during the time it was still being actively worked on by the original developer. The protocol has been stable for several years now, and it's that stable version I currently support. I don't have the time or inclination to try and figure out how to get UNCaGED talk with such an old version of Calibre. Things are messy enough as it is! |
Thing is it worked fine yesterday on that version of Calibre. |
What version of KU are you using? If you haven't already, can you try v0.5.3-beta1? That had some changes that should help with large libraries. Also, could you please post the contents of |
Thanks alot ! I'm sitting here still experimenting right now. I really want to be able to do this! Mar 27 10:56:04 [Kobo-UNCaGED] Enabled loopback interface |
I'm kinda heartbroken since I found out:
This means whenever I want to add in even one other book I have to walk thru the house, plug in the device, find the book I want, find the reader and send it. For 2021 this is crazy. So annoyed at the Kobo company now. But if I can get your app working I can at least see all my books as covers on the Calibre and send one across easily. |
Eventually I think the usb connector on the device will go faulty - which is probably what the company wants. |
Beta returns same error. Calibre log: 'NoneType' object has no attribute 'set' Traceback (most recent call last): |
Off-topic, but:
Err, what? |
This is KU log for the above situation and trying to send a book Mar 27 11:12:41 [Kobo-UNCaGED] Enabled loopback interface |
I'm sorry, I don't think I have enough info to know what I can change to make it work. Looking back at the git history of the code, it looks like there were a fair number of performance improvements and bug fixes that were happening around the time between 1.48 and 2.0.0. It does look from the KU logs like Calibre is stuck processing metadata sent to it by KU, and KU is eventually giving up after a period of no response. There's also the possibility that the metadata format has changed since then as well. |
Thanks alot for trying. Do you think there might be some way I can add elements of the newer Calibre to this version, to make it work? Re: KOreader, ask you asking about the fact that it can grab books from dropbox, webdav and ftp |
I'm spinning up an XP VM with calibre 1.48 to see if there's anything I can do relatively easily. No promises though. |
Oh, but there is ;). |
This gets more interesting by the minute! "I'm spinning up an XP VM with calibre 1.48" I will also check out that link re transferring the epubs to the main library - v intriguing! |
NOTE: This is the first time I've ever done this. (I only use 10 when I have to. I mostly use that machine for Kodi Libre Elec - Kodi on a usb stick) |
In the meantime, VM guest additions are taking FOREVER to install :( |
This is genuinely exciting ! |
Re the 'rescan books' thingy, is this how I do it:
(I managed to download some books from Koreader (from Dropbox (which I got working, but the inter |
Oh wait, I see it needs: |
In the nm folder on Kobo, create a new file called anything you like and add the following: |
I think this is right... A file with just the following: menu_item : main : Rescan : nickel_misc : rescan_books |
Oh My Gough ! That is at least something. In the worst-case scenario I could create a PDF of all my secondary books* to browse through, Using Calibre would still be good because I can see all the covers right there on my PC. I wonder if you happen to know if KOReader's Webdav or FTP interface might provide a more information-rich way of accessing books on my PC (i'd at least like to be able to see covers - its much easier to see what's there that way) ** (And setting up KOReader to work with Dropbox was a bit of nightmare - tho I was only doing one thing wrong: you have to get the 'token' only AFTER you create permissions!) |
Lol I just saw you wrote: I want you to know that I worked it out myself lol ! |
rescan_books vs rescan_books_full |
This is already helping me ALOT ! I was getting so annoyed at my Kobo yesterday, even tho I really like everything else about it (Apart from the fact that changing the font changes it in every other epub! Idiotic. I notice KoReader cleverly remembers your layout settings for each book - which is excellent for PDFs) |
I just added Sleep, Shutdown and Restart to the NickelMenu! |
Hi, can you test the attached test version? I can't guarantee that everything will work, but it seems to pass the initial sniff test. It seems old versions of Calibre were less lenient on certain keys being set to null in the metadata. In particular, a couple of the dictionaries/maps. I've now made UNCaGED produce them as |
Wow ! That's awesome - thankyou so much! I will give it a try. |
Holy Mackerel you bloody-well did it ! Bloody awesome - and no doubt it will help other old-fashioned but practical types like me who prefer XP (of which there are still a surprising number) Now what can I do for you? I am so grateful you went out of your way like this. I used to be a journo and an adman so I am good at researching and writing things, and marketing. Anyway, if I can do anything for you - pls let me know! Thanks again for helping me escape the kobo-cage ! :) |
PS Silver-linings: this whole thing also led to me to discover I could run Win7 as a VM rather than having to restart all the time. That could indeed be enormously helpful to me. |
I don't suppose there's an easy way (using your app or another) to choose the destination folder on the Kobo? |
No worries. In the end, it was a simple fix, and probably makes things more robust. No need do do anything, I'm happy to help when I can. If it had been a more complicated problem, I probably would have said sorry, no fix.
Yes. When you've connected to Calibre using Kobo UNCaGED, click the arrow beside the 'Device' icon in the calibre toolbar, and choose My template is |
BTW after disconnecting I am getting this small error on calibre - dont know what the effect is Device responded with incorrect information Traceback (most recent call last): |
Mar 27 17:17:15 [Kobo-UNCaGED] Enabled loopback interface |
You probably disconnected just as Calibre was asking for free space on device, and it never got the expected reply. I wouldn't worry too much. |
BTW thanks for the info about the metadata - I even managed to append the info in my custom column (which is my reading priority!) On this note, I've wondered since the start what the 'subtitle' column in Uncaged is for? |
Kobo devices can display a 'subtitle' field that shows up between the book title and series in the library view. KU allows you to designate a column in your calibre library to use for that field. In KU, once connected, you have a dropdown where you can select any allowed field to use. For example, I put the page count from 'Count Pages' plugin there. |
Oh that sounds cool - I managed to get a drop-down menu on it before, but for some reason I cant get it again. |
No, it should work. I just tried it now, it may require a couple of goes, seems to be a bit sensitive. As with anything to do with the in-build Kobo web browser, it's a little janky. Note, it saves your preferences, so you'll only need to do it once. |
Thanks ! |
Ah no, while it shows, it won't have anything populated until after the connection process has completed. This is because it has to get the list of available columns during the connection process. |
I still havent managed to get it to respond when I tap/press it, but I will keep trying ! |
Is there a way I can get it to send to a specific folder? |
Well I have successfully broken it.
Any ideas how to fix this and ideally send to a specific folder? :) |
Oh wait - I see your previous answer. I will report back what happens when I try to fix it using this. "Yes. When you've connected to Calibre using Kobo UNCaGED, click the arrow beside the 'Device' icon in the calibre toolbar, and choose Configure this device. You can tick the Use sub-directories checkbox, and set a template. My template is kubooks/{author_sort}/{title} - {authors} as an example." |
Argh it's still disconnecting I used And I selected both
|
Lol i managed to get it working again by using the auto-detect feature instead of the exact address for the network i set up. |
Haha I managed to fix it. Once I managed to get a proper connection again, I saw that a COMPLETELY DIFFERENT DIALOGUE came up when I went to When I set THAT correctly (instead of the one that was clearly meant for USB) it worked! |
I managed to successfully send a file from Calibre (1.48, the last I can use), but then I had an error - I think getting metadata from my device.
Here is what Calibre said:
'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.py", line 50, in _synchronizer
File "site-packages\calibre\devices\smart_device_app\driver.py", line 1288, in books
AttributeError: 'NoneType' object has no attribute 'set'
The text was updated successfully, but these errors were encountered: