Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-05-2010, 08:26 AM   #1
weedfreak
Addict
weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.
 
weedfreak's Avatar
 
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'
Attempting to send to the main memory gives this -

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'
I can however transfer books manually with a file manager, I have also found that Calibre will not display the contents of either the main memory or the SD card, no error messages just a blank page .

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)
weedfreak is offline   Reply With Quote
Old 07-05-2010, 08:36 AM   #2
weedfreak
Addict
weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.
 
weedfreak's Avatar
 
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.
weedfreak is offline   Reply With Quote
Advert
Old 07-05-2010, 08:54 AM   #3
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,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by weedfreak View Post
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'
I note that you are putting the books in the root of the SD card. If it is formatted with FAT16, then the number of files/directories in the root is severely limited. You have probably hit that limit.

Change your save template to add a subdirectory.

For further discussion, see the thread https://www.mobileread.com/forums/sho...121#post992121

Quote:
Attempting to send to the main memory gives this -
No idea what is happening here. Run calibre in debug mode and post the messages that come out. To run calibre that way, start a terminal and run 'calibre-debug -g' (no quotes). Capture the output and post it.
chaley is offline   Reply With Quote
Old 07-05-2010, 09:21 AM   #4
weedfreak
Addict
weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.
 
weedfreak's Avatar
 
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'
weedfreak is offline   Reply With Quote
Old 07-05-2010, 09:28 AM   #5
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,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by weedfreak View Post
Books have always gone into a My books folder, not sure why Calibre has started to do things differently
The driver was changed to make the destination directory customizable. See the device plugin customization for more information.
Quote:
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'
That is quite clear -- calibre cannot create the cache file in the root directory of the device. From that point on, nothing good will happen.

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)
chaley is offline   Reply With Quote
Advert
Old 07-05-2010, 09:54 AM   #6
weedfreak
Addict
weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.
 
weedfreak's Avatar
 
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.
weedfreak is offline   Reply With Quote
Old 07-05-2010, 09:58 AM   #7
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,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by weedfreak View Post
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?
My mistake. I meant metadata.calibre.
Quote:
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??
Calibre uses this file to speed up device connection. It needs it.
Quote:
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.
Part of the problem might come from putting things in the root. The Boox may not like that as a matter of principle.

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.
chaley is offline   Reply With Quote
Old 07-05-2010, 10:09 AM   #8
weedfreak
Addict
weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.
 
weedfreak's Avatar
 
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.
weedfreak is offline   Reply With Quote
Old 07-05-2010, 10:10 AM   #9
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,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.
chaley is offline   Reply With Quote
Old 07-05-2010, 10:37 AM   #10
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,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.
Attached Files
File Type: zip driver.zip (1.5 KB, 138 views)

Last edited by chaley; 07-05-2010 at 10:59 AM. Reason: As said above
chaley is offline   Reply With Quote
Old 07-05-2010, 11:22 AM   #11
weedfreak
Addict
weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.
 
weedfreak's Avatar
 
Posts: 302
Karma: 185297
Join Date: Sep 2009
Location: Ankh Morpork
Device: calibre
Quote:
Originally Posted by chaley View Post
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.
I did upgrade from 0.6 which may of been part of the problem.

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.
weedfreak is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 06:04 PM.


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