|
|
#1 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 302
Karma: 185297
Join Date: Sep 2009
Location: Ankh Morpork
Device: calibre
|
No books for Boox
I can longer get Calibre to transfer files to my Boox reader.
Calibre correctly detects the Boox is attached and identifies the main memory and the SD card. Attempting to transfer a book to the SD card give this error Code:
ERROR: Error: Error communicating with device
(13, 'Permission denied')
Traceback (most recent call last):
File "/home/kovid/build/calibre/src/calibre/gui2/device.py", line 67, in run
File "/home/kovid/build/calibre/src/calibre/gui2/device.py", line 325, in _upload_books
File "/home/kovid/build/calibre/src/calibre/devices/usbms/driver.py", line 176, in upload_books
File "/home/kovid/build/calibre/src/calibre/devices/usbms/device.py", line 869, in create_upload_path
File "/usr/lib64/python2.6/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/media/usb1/May, Julian'
Code:
ERROR: ERROR: Unhandled exception: <b>AttributeError</b>:'list' object has no attribute 'add_book' Traceback (most recent call last): File "/home/kovid/build/calibre/src/calibre/gui2/__init__.py", line 263, in dispatch File "/home/kovid/build/calibre/src/calibre/gui2/device.py", line 1315, in books_uploaded File "/home/kovid/build/calibre/src/calibre/gui2/device.py", line 336, in add_books_to_metadata File "/home/kovid/build/calibre/src/calibre/devices/usbms/driver.py", line 237, in add_books_to_metadata AttributeError: 'list' object has no attribute 'add_book' The debug device detection shows this - Code:
Version: 0.7.7 USB devices on system: [['0x1d6b', '0x2', '0x206', 'Linux 2.6.32-23-generic ehci_hcd', 'EHCI Host Controller', '0000:00:12.2'], ['0x1d6b', '0x2', '0x206', 'Linux 2.6.32-23-generic ehci_hcd', 'EHCI Host Controller', '0000:00:13.2'], ['0x1d6b', '0x1', '0x206', 'Linux 2.6.32-23-generic ohci_hcd', 'OHCI Host Controller', '0000:00:13.0'], ['0x3eb', '0x3301', '0x300', '', 'Standard USB Hub', ''], ['0x1d6b', '0x1', '0x206', 'Linux 2.6.32-23-generic ohci_hcd', 'OHCI Host Controller', '0000:00:12.1'], ['0x1d6b', '0x1', '0x206', 'Linux 2.6.32-23-generic ohci_hcd', 'OHCI Host Controller', '0000:00:14.5'], ['0x1d6b', '0x1', '0x206', 'Linux 2.6.32-23-generic ohci_hcd', 'OHCI Host Controller', '0000:00:13.1'], ['0x46d', '0xc529', '0x700', 'Logitech', 'USB Receiver', ''], ['0x1d6b', '0x1', '0x206', 'Linux 2.6.32-23-generic ohci_hcd', 'OHCI Host Controller', '0000:00:12.0'], ['0x8ca', '0x10', '0x103', 'AIPTEK International Inc.', 'USB Tablet Series Version 1.04', ''], ['0x525', '0xa4a5', '0x322', 'Linux 2.6.26-466-ga04670e with fsl-usb2-udc', 'File-backed Storage Gadget', '372041756775']] Looking for ALEX Looking for ANDROID Looking for AVANT Looking for AZBOOKA Looking for BLACKBERRY Looking for BOOQ Looking for BOOX (1317, 42149, 802, 'Linux 2.6.26-466-ga04670e with fsl-usb2-udc', 'File-backed Storage Gadget', '372041756775') Looking for COOL_ER Looking for CYBOOK Looking for DBOOK Looking for E52 Looking for E71X Looking for EB511 Looking for EB600 Looking for EBK52 Looking for ECLICTO Looking for EDGE Looking for ELONEX Looking for ESLICK Looking for FOLDER_DEVICE_FOR_CONFIG Looking for GER2 Looking for HANLINV3 Looking for HANLINV5 Looking for ILIAD Looking for INVESBOOK Looking for IPAPYRUS Looking for IREXDR1000 Looking for IREXDR800 Looking for IRIVER_STORY Looking for ITALICA Looking for JETBOOK Looking for KINDLE Looking for KINDLE2 Looking for KINDLE_DX Looking for KOBO Looking for MENTOR Looking for N516 Looking for N770 Looking for N810 Looking for NEWSMY Looking for NOOK Looking for NUUT2 Looking for PALMPRE Looking for POCKETBOOK301 Looking for POCKETBOOK360 Looking for PRS505 Looking for README Looking for S60 Looking for SHINEBOOK Looking for SNE Looking for SWEEX Looking for TECLAST_K3 Looking for THEBOOK Devices possibly connected: BOOX driver, Trying to open BOOX driver ... OK Main memory: '/media/BOOX Internal Memory/' Total space: (324407296, 1963204608, 0) |
|
|
|
|
|
#2 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 302
Karma: 185297
Join Date: Sep 2009
Location: Ankh Morpork
Device: calibre
|
I just discovered that despite all the error messages the book was actually transferred to the reader, there is a copy in the main memory and on the SD card which I can see with file manager but not Calibre.
|
|
|
|
|
|
#3 | ||
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Change your save template to add a subdirectory. For further discussion, see the thread https://www.mobileread.com/forums/sho...121#post992121 Quote:
|
||
|
|
|
|
|
#4 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 302
Karma: 185297
Join Date: Sep 2009
Location: Ankh Morpork
Device: calibre
|
Books have always gone into a My books folder, not sure why Calibre has started to do things differently I have not changed anything but I will check out the thread you mention. The SD card is not FAT16 it is Fat32 and in any case there are only 10 files or folders in the root. I know FAT is limited but that much.
Running in debug mode gives the following as soon as I connect the Boox Code:
(13, 'Permission denied') Traceback (most recent call last): File "/home/kovid/build/calibre/src/calibre/gui2/device.py", line 67, in run File "/home/kovid/build/calibre/src/calibre/gui2/device.py", line 274, in _books File "/home/kovid/build/calibre/src/calibre/devices/usbms/driver.py", line 158, in books File "/home/kovid/build/calibre/src/calibre/devices/usbms/driver.py", line 294, in sync_booklists File "/home/kovid/build/calibre/src/calibre/devices/usbms/driver.py", line 292, in write_prefix IOError: [Errno 13] Permission denied: u'/media/usb5/metadata.calibre' |
|
|
|
|
|
#5 | ||
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
I have no idea how permissions work in a Boox. Does it use linux-like permissions? Are the permissions such that calibre should be able to create the file? Can you create the file by hand? (cd /media/usb5; touch metadata.cache) |
||
|
|
|
|
|
#6 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 302
Karma: 185297
Join Date: Sep 2009
Location: Ankh Morpork
Device: calibre
|
There is a metadata.calibre file in the root of the SD card and one in the main memory both created (or modified) today is that the file you mean or should there be a metadate.cache as well?
I can read both these files via file manager but not on the Boox, there is not much point them being on the Boox anyway as it can do nothing with metadata although Calibre may need it to read back data?? It seems that Calibre is writing the metadata and copying the books but reporting it cannot do either and it cannot read back from the Boox. I have no idea how permissions work on the Boox, it should be Linux-like I think though it does seem to operate in its own little chinese world. |
|
|
|
|
|
#7 | |||
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Quote:
I have a different device driver that lets you specify different subdirectories for main memory and the card. Are you willing to try it? If so, once you have installed it but before you connect the boox, you will need to touch the Boox device customization. You might also need to move books into subdirectories. |
|||
|
|
|
|
|
#8 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 302
Karma: 185297
Join Date: Sep 2009
Location: Ankh Morpork
Device: calibre
|
I am willing to try anything to get it working again, I have changed the save template as you suggested but still get errors reported and Calibre not being able to read back. Books are now saved in MyBooks folder on the Boox.
|
|
|
|
|
|
#9 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
More on metadata.calibre -- the code that updates it has not changed since the 0.7 betas. Unless you upgraded from 0.6, the permission denied error indicates that something else is going on.
Having an empty cache file will also cause calibre to show no books. Try deleting the files, then start calibre in debug mode. When it sees that the file is not there, it will recreate it and repopulate it. Lets see what it finds, and whether some other exceptions are thrown. |
|
|
|
|
|
#10 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
The attached driver file lets you choose different destination directories for main memory and for the card. It does not change where calibre.metadata goes (the root), so if that exception is still being thrown, this driver will not help. And as you have already set up the customization to put books in MyBooks on both the main memory and the card, you probably won't see any benefit from this driver.
But should you wish to try it, the driver will go in /home/kovid/build/calibre/src/calibre/devices/hanlin/driver.py If there is an existing driver file by that name, save it somewhere. You must remember to delete this patched driver when next you update calibre. Edit: note that the changes in this driver have not yet been approved for general release. Last edited by chaley; 07-05-2010 at 10:59 AM. Reason: As said above |
|
|
|
|
|
#11 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 302
Karma: 185297
Join Date: Sep 2009
Location: Ankh Morpork
Device: calibre
|
Quote:
I deleted the files and as you say Calibre remade and repopulated it. I can now read and write from main and SD memory with no problems. ![]() Thank you for the assistance, I will try the alternative driver next as it would make sense for the main memory files not to be in a MyBooks folder, the main memory is already referenced by Boox as Library and it seems illogical to have to open 2 folders to get to the books. I will report back any problems. |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ended Onyx Boox 60 - NEW | pashlit | Flea Market | 2 | 08-18-2010 05:27 PM |
| Just got Boox | KunoK | Onyx Boox | 9 | 08-11-2010 04:48 AM |
| Will BeBook (Boox 60) read Kindle books? | Lawrence Of PA | Which one should I buy? | 1 | 08-03-2010 09:19 PM |
| Boox 60? | owly | News | 2 | 06-10-2010 05:29 AM |
| wolder boox/boox-s | eksor | News | 4 | 12-30-2009 02:39 PM |