version 1.1.0 will not work with kobo touch

Bug #1219505 reported by k. marchant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Invalid
Undecided
David Forrester

Bug Description

when i installed the update to calibre version 1.1.0
i opened calibre when the update finished, connected my kobo touch and tried to edit book details which it had got from the kobo.
although it displayed the books it got from the kobo calibre showed an error that the kobo touch was not supported.

xxxx
both this version 1.1.0 and version 1.0.0 for some reason, were trying to access the floppy drive - although why i do not know as there wasn't a floppy there to access!
xxxxx

version 1.0.0
the debug for version1.0.0 says that "calibre 1.0 is frozen python 2.7.4
no kobo touch, glo or mini appears to be connected
( - yet it is displaying the books on it!)

second try

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

[Errno 22] Invalid argument

Traceback (most recent call last):
  File "site-packages\calibre\gui2\device.py", line 85, in run
  File "site-packages\calibre\gui2\device.py", line 506, in _sync_booklists
  File "site-packages\calibre\devices\kobo\driver.py", line 890, in sync_booklists
  File "site-packages\calibre\devices\usbms\driver.py", line 395, in sync_booklists
  File "site-packages\calibre\devices\usbms\driver.py", line 392, in write_prefix
  File "site-packages\calibre\ebooks\metadata\book\json_codec.py", line 123, in encode_to_file
IOError: [Errno 22] Invalid argument

kobo software version2.5.2 ( 403dd7d861 , 5/7/13)
windows xp on computer
i am having to go back in the versions till i find one that works!
please sort these out and let me know when it has been done [<email address hidden>]

Tags: kobo-driver
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1219505

Changing the component for this bug.

 assignee davidfor
 tag kobo-driver
 status triaged

Changed in calibre:
assignee: nobody → David Forrester (davidfor)
status: New → Triaged
Revision history for this message
David Forrester (davidfor) wrote :

Calibre 1.1.0 is working fine here with Kobo devices. And I have had no other reports of any problems. And, over the weekend, I happened to have had it running on an XP laptop connected to a Touch running firmware 2.5.2 with no issues.

For the two later errors:

"no kobo touch, glo or mini appears to be connected" is put out by the Kobo Utilities plugin. And when it is written, calibre hasn't seen the device yet. This is probably printed as calibre is starting to see the device.

The traceback error says there is a problem writing the file "metadata.calibre" to the device. This contains information that calibre uses to match books between the device and the library. The times I have seen this error there was an unusual character in the metadata of a book on the device. This prevents the file from being written correctly. Fixing it meant finding the book and fixing the metadata.

For the first part, I am not sure what you are doing. Are you trying to add a book to the library from the device? If so, you can't add purchased kepubs to the library. This is unsupported due to DRM and other problems with kepubs. If it is a sideloaded kepub, there is a bug in this that has been reported elsewhere. I am looking at it.

If this isn't what you are doing, then I need more details. From the description, I can't think of anything else.

Revision history for this message
k. marchant (warlock17195) wrote : Re: [Bug 1219505] Re: version 1.1.0 will not work with kobo touch
Download full text (3.9 KiB)

i did not know that about the kepubs, thank you.
as i stated both versions would not access the books on the kobo and on the sd card, and both were trying to do something - i don't know what - with the floppy drive!

<email address hidden>
Mr K. Marchant.
15 Nursery Close,
Peterborough.
pe1 . 2py
UK

>________________________________
> From: David Forrester <email address hidden>
>To: <email address hidden>
>Sent: Monday, 2 September 2013, 6:26
>Subject: [Bug 1219505] Re: version 1.1.0 will not work with kobo touch
>
>
>Calibre 1.1.0 is working fine here with Kobo devices. And I have had no
>other reports of any problems.  And, over the weekend,  I happened to
>have had it running on an XP laptop connected to a Touch running
>firmware 2.5.2 with no issues.
>
>For the two later errors:
>
>"no kobo touch, glo or mini appears to be connected" is put out by the
>Kobo Utilities plugin. And when it is written, calibre hasn't seen the
>device yet. This is probably printed as calibre is starting to see the
>device.
>
>The traceback error says there is a problem writing the file
>"metadata.calibre" to the device. This contains information that calibre
>uses to match books between the device and the library. The times I have
>seen this error there was an unusual character in the metadata of a book
>on the device. This prevents the file from being written correctly.
>Fixing it meant finding the book and fixing the metadata.
>
>For the first part, I am not sure what you are doing. Are you trying to
>add a book to the library from the device? If so, you can't add
>purchased kepubs to the library. This is unsupported due to DRM and
>other problems with kepubs. If it is a sideloaded kepub, there is a bug
>in this that has been reported elsewhere. I am looking at it.
>
>If this isn't what you are doing, then I need more details. From the
>description, I can't think of anything else.
>
>--
>You received this bug notification because you are subscribed to the bug
>report.
>https://bugs.launchpad.net/bugs/1219505
>
>Title:
>  version 1.1.0 will not work with kobo touch
>
>Status in calibre: e-book management:
>  Triaged
>
>Bug description:
>  when i installed the update to calibre version 1.1.0
>  i opened calibre when the update finished, connected my kobo touch and tried to edit book details which it had got from the kobo.
>  although it displayed the books it got from the kobo calibre showed an error that the kobo touch was not supported.
>
>  xxxx
>  both this version 1.1.0 and  version 1.0.0 for some reason, were trying to access the floppy drive - although why i do not know as there wasn't a floppy there to access!
>  xxxxx
>
>  version 1.0.0
>  the debug for version1.0.0 says that "calibre 1.0 is frozen python 2.7.4
>  no kobo touch, glo or mini appears to be connected
>  ( - yet it is displaying the books on it!)
>
>
>  second try
>
>  calibre, version 1.0.0
>  ERROR: Error: Error communicating with device
>
>  [Errno 22] Invalid argument
>
>  Traceback (most recent call last):
>    File "site-packages\calibre\gui2\device.py", line 85, in run
>    File "site-packages\calibre\gui2\device.py", line 506, in _sync_booklists
>    File "...

Read more...

Revision history for this message
David Forrester (davidfor) wrote :

Sorry, I missed commenting on the floppy access. I haven't noticed this as the laptop I used doesn't have a floppy drive. But, I have just installed calibre on my work desktop that does. And yes, I get an attempt use the floppy when I connect the reader. I checked by going back to 0.9.44 and then 0.9.32, and the floppy drive was access each time. As the Kobo driver code hasn't changed, in any way that would cause this, I assume it has always happened. My guess is that calibre is enumerating the drives on the PC when something is plugged in. And that Windows accesses the drive when this is done to see if there is a disk in it.

Right now, I am not sure if things are working for you or not. Ignoring the floppy, does calibre display the list of books on the Kobo when it is connected? Can you send a book to it?

Revision history for this message
k. marchant (warlock17195) wrote :
Download full text (3.9 KiB)

with previous versions of calibre it did not try to use the floppy drive these 2 do try!

as to the display of the books the answer is yes it does; in all versions

as to sending books to the kobo, i have not tried with the latest 2 versions, (which are the ones i had problems with);
currently i am using a previous version.
when i tried last, it sent a folder plus three files inside, not the book file (.epub) including cover (.jpeg), which is what i wanted the third item in the folder is an "metadata.opf" file.
(- which was when i was told by you about the kobo utilities app.)
i have not tried since as i am still trying to correct all the metadata first,
and i am not sure of how to send them together with all the three files but without the folder - any suggestions please?

<email address hidden>
Mr K. Marchant.
15 Nursery Close,
Peterborough.
pe1 . 2py
UK

>________________________________
> From: David Forrester <email address hidden>
>To: <email address hidden>
>Sent: Tuesday, 3 September 2013, 5:03
>Subject: [Bug 1219505] Re: version 1.1.0 will not work with kobo touch
>
>
>Sorry, I missed commenting on the floppy access. I haven't noticed this
>as the laptop I used doesn't have a floppy drive. But, I have just
>installed calibre on my work desktop that does. And yes, I get an
>attempt use the floppy when I connect the reader. I checked by going
>back to 0.9.44 and then 0.9.32, and the floppy drive was access each
>time. As the Kobo driver code hasn't changed, in any way that would
>cause this, I assume it has always happened. My guess is that calibre is
>enumerating the drives on the PC when something is plugged in. And that
>Windows accesses the drive when this is done to see if there is a disk
>in it.
>
>Right now, I am not sure if things are working for you or not. Ignoring
>the floppy, does calibre display the list of books on the Kobo when it
>is connected? Can you send a book to it?
>
>--
>You received this bug notification because you are subscribed to the bug
>report.
>https://bugs.launchpad.net/bugs/1219505
>
>Title:
>  version 1.1.0 will not work with kobo touch
>
>Status in calibre: e-book management:
>  Triaged
>
>Bug description:
>  when i installed the update to calibre version 1.1.0
>  i opened calibre when the update finished, connected my kobo touch and tried to edit book details which it had got from the kobo.
>  although it displayed the books it got from the kobo calibre showed an error that the kobo touch was not supported.
>
>  xxxx
>  both this version 1.1.0 and  version 1.0.0 for some reason, were trying to access the floppy drive - although why i do not know as there wasn't a floppy there to access!
>  xxxxx
>
>  version 1.0.0
>  the debug for version1.0.0 says that "calibre 1.0 is frozen python 2.7.4
>  no kobo touch, glo or mini appears to be connected
>  ( - yet it is displaying the books on it!)
>
>
>  second try
>
>  calibre, version 1.0.0
>  ERROR: Error: Error communicating with device
>
>  [Errno 22] Invalid argument
>
>  Traceback (most recent call last):
>    File "site-packages\calibre\gui2\device.py", line 85, in run
>    File "site-packages\calibre\gui2\device.py", line 506, in...

Read more...

Revision history for this message
k. marchant (warlock17195) wrote :
Download full text (3.3 KiB)

calibre, version 1.2.0
ERROR: Copy Cover - device error: Sorry, this KOBOTOUCH device is not currently supported

i keep getting this error!
i tried to send covers to my kobo touch but got this error.
tried a book as well - same error.

<email address hidden>
Mr K. Marchant.
15 Nursery Close,
Peterborough.
pe1 . 2py
UK

>________________________________
> From: David Forrester <email address hidden>
>To: <email address hidden>
>Sent: Tuesday, 3 September 2013, 5:03
>Subject: [Bug 1219505] Re: version 1.1.0 will not work with kobo touch
>
>
>Sorry, I missed commenting on the floppy access. I haven't noticed this
>as the laptop I used doesn't have a floppy drive. But, I have just
>installed calibre on my work desktop that does. And yes, I get an
>attempt use the floppy when I connect the reader. I checked by going
>back to 0.9.44 and then 0.9.32, and the floppy drive was access each
>time. As the Kobo driver code hasn't changed, in any way that would
>cause this, I assume it has always happened. My guess is that calibre is
>enumerating the drives on the PC when something is plugged in. And that
>Windows accesses the drive when this is done to see if there is a disk
>in it.
>
>Right now, I am not sure if things are working for you or not. Ignoring
>the floppy, does calibre display the list of books on the Kobo when it
>is connected? Can you send a book to it?
>
>--
>You received this bug notification because you are subscribed to the bug
>report.
>https://bugs.launchpad.net/bugs/1219505
>
>Title:
>  version 1.1.0 will not work with kobo touch
>
>Status in calibre: e-book management:
>  Triaged
>
>Bug description:
>  when i installed the update to calibre version 1.1.0
>  i opened calibre when the update finished, connected my kobo touch and tried to edit book details which it had got from the kobo.
>  although it displayed the books it got from the kobo calibre showed an error that the kobo touch was not supported.
>
>  xxxx
>  both this version 1.1.0 and  version 1.0.0 for some reason, were trying to access the floppy drive - although why i do not know as there wasn't a floppy there to access!
>  xxxxx
>
>  version 1.0.0
>  the debug for version1.0.0 says that "calibre 1.0 is frozen python 2.7.4
>  no kobo touch, glo or mini appears to be connected
>  ( - yet it is displaying the books on it!)
>
>
>  second try
>
>  calibre, version 1.0.0
>  ERROR: Error: Error communicating with device
>
>  [Errno 22] Invalid argument
>
>  Traceback (most recent call last):
>    File "site-packages\calibre\gui2\device.py", line 85, in run
>    File "site-packages\calibre\gui2\device.py", line 506, in _sync_booklists
>    File "site-packages\calibre\devices\kobo\driver.py", line 890, in sync_booklists
>    File "site-packages\calibre\devices\usbms\driver.py", line 395, in sync_booklists
>    File "site-packages\calibre\devices\usbms\driver.py", line 392, in write_prefix
>    File "site-packages\calibre\ebooks\metadata\book\json_codec.py", line 123, in encode_to_file
>  IOError: [Errno 22] Invalid argument
>
>
>  kobo software version2.5.2 ( 403dd7d861 , 5/7/13)
>  windows xp on computer
>  i am having to go back in the versions till i find...

Read more...

Revision history for this message
David Forrester (davidfor) wrote :

Firstly, my apologies for not responding to your previous response. Are you still having that problem with sending book? It sounds more like you are using the "Save to disk" function to get the book to the device rather than "Send to device". For Kobo devices, the driver only copies the book file to the device. It doesn't copy the OPF file.

For this later one, can you tell me exactly what you did? I don't recognise what you could be doing. And searching the code for the error message does not find anything. There is also no way that I can think of to send a cover to a Kobo device using base calibre functions. The Kobo Utilities plugin has this, but it cannot produce the error you are reporting.

Revision history for this message
k. marchant (warlock17195) wrote : Re: [Bug 1219505]
Download full text (3.5 KiB)

no i did not use the "save to disc"
the "error communicating with device" message i got before - i think that i have figured out  - calibre was still loading the books [1001} on the kobo which seems to take 5 - 10 minutes

for the latest tries, (sent yesterday), i tried to use the "send cover" button next to the kobo utilities button on the bottom left. and got the error message "the kobotouch device is not supported!"
then i right clicked one of the books i wanted to send to my kobo but still got the error message "the kobotouch device is not supported!"

<email address hidden>
Mr K. Marchant.
15 Nursery Close,
Peterborough.
pe1 . 2py
UK

>________________________________
> From: David Forrester <email address hidden>
>To: <email address hidden>
>Sent: Friday, 13 September 2013, 4:41
>Subject: [Bug 1219505] Re: version 1.1.0 will not work with kobo touch
>
>
>Firstly, my apologies for not responding to your previous response.  Are
>you still having that problem with sending book?  It sounds more like
>you are using the "Save to disk" function to get the book to the device
>rather than "Send to device". For Kobo devices, the driver only copies
>the book file to the device. It doesn't copy the OPF file.
>
>For this later one, can you tell me exactly what you did? I don't
>recognise what you could be doing. And searching the code for the error
>message does not find anything. There is also no way that I can think of
>to send a cover to a Kobo device using base calibre functions. The Kobo
>Utilities plugin has this, but it cannot produce the error you are
>reporting.
>
>--
>You received this bug notification because you are subscribed to the bug
>report.
>https://bugs.launchpad.net/bugs/1219505
>
>Title:
>  version 1.1.0 will not work with kobo touch
>
>Status in calibre: e-book management:
>  Triaged
>
>Bug description:
>  when i installed the update to calibre version 1.1.0
>  i opened calibre when the update finished, connected my kobo touch and tried to edit book details which it had got from the kobo.
>  although it displayed the books it got from the kobo calibre showed an error that the kobo touch was not supported.
>
>  xxxx
>  both this version 1.1.0 and  version 1.0.0 for some reason, were trying to access the floppy drive - although why i do not know as there wasn't a floppy there to access!
>  xxxxx
>
>  version 1.0.0
>  the debug for version1.0.0 says that "calibre 1.0 is frozen python 2.7.4
>  no kobo touch, glo or mini appears to be connected
>  ( - yet it is displaying the books on it!)
>
>
>  second try
>
>  calibre, version 1.0.0
>  ERROR: Error: Error communicating with device
>
>  [Errno 22] Invalid argument
>
>  Traceback (most recent call last):
>    File "site-packages\calibre\gui2\device.py", line 85, in run
>    File "site-packages\calibre\gui2\device.py", line 506, in _sync_booklists
>    File "site-packages\calibre\devices\kobo\driver.py", line 890, in sync_booklists
>    File "site-packages\calibre\devices\usbms\driver.py", line 395, in sync_booklists
>    File "site-packages\calibre\devices\usbms\driver.py", line 392, in write_prefix
>    File "site-packages\calibre\ebooks\metadata\book\json_code...

Read more...

Revision history for this message
David Forrester (davidfor) wrote :

If you are trying to use a function from the Kobo Utilities plugin, then you should wait for the initial sync to finish before doing anything. But, sending a book is safe. This gets added to the list of jobs and will be executed after they have finished.

For "send cover", do you mean the "Upload covers for Selected Books" function in the Kobo Utilities? If so I have no idea what is happening. That does not produce the message "the kobotouch device is not supported!". In fact, looking through the complete calibre code base and the code for all my plugins, I can't find anything like that message. Or are you paraphrasing another message? If so, can you post the complete message verbatim so that I can find what is happening.

The other thing that might be useful is run calibre in debug mode and post the log. Do this by starting calibre, right-clicking the preferences button and selecting "Restart in debug mode". Calibre will close and restart. When it does it will display a message about the debug log. Connect the device, try the operations that are causing problems and then close calibre. When it is closed, it will display the debug log. Post the full contents of the log. It will also help to list exactly what you do including the names of the various options you use.

Revision history for this message
Kovid Goyal (kovid) wrote :

no followup

Changed in calibre:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.