Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-30-2021, 05:55 AM   #2611
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by ownedbycats View Post
I was actually going to suggest the github, but the link in the first post ("fork the repository") is a 404. Hopefully someone can fix that.
Good point. I have fixed it.
davidfor is offline   Reply With Quote
Old 10-30-2021, 11:41 AM   #2612
RobertJSawyer
Guru
RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.
 
RobertJSawyer's Avatar
 
Posts: 738
Karma: 4306712
Join Date: Jun 2006
Location: Toronto
Device: Kobo Libra 2, Clara 2E, and Clara HD; Kindle PaperWhite
Thank you, @davidfor! You're the best!
RobertJSawyer is offline   Reply With Quote
Advert
Old 10-31-2021, 10:15 AM   #2613
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Version 3.5.4 just uploaded, updates custom CSS file support to include new devices
jgoguen is offline   Reply With Quote
Old 11-17-2021, 03:16 AM   #2614
sheldon_es
Junior Member
sheldon_es began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2021
Device: Kobo Clara HD
Hello. I'm new with this plugin. I tried to use this plugin to send the books to my (new) Kobo Clara HD. Some books worked ok, but with most of books I got an error:calibre, version 5.32.0
ERROR: Error: Error en la comunicación con el dispositivo

[Errno 22] Invalid argument: 'C:\\temp\\calibre_buxw6wjt\\mic5lj54_epub_contain er\\OEBPS\\Text\\part0054.html'

Traceback (most recent call last):
File "calibre\gui2\device.py", line 87, in run
File "calibre\gui2\device.py", line 593, in _upload_books
File "calibre_plugins.kobotouch_extended.device.driver" , line 416, in upload_books
File "calibre\devices\kobo\driver.py", line 2143, in upload_books
File "calibre_plugins.kobotouch_extended.device.driver" , line 211, in _modify_epub
File "calibre_plugins.kobotouch_extended.container" , line 119, in __init__
File "calibre_plugins.kobotouch_extended.container" , line 375, in __run_async_over_content
File "calibre_plugins.kobotouch_extended.container" , line 368, in __run_async
File "concurrent\futures\_base.py", line 432, in result
File "concurrent\futures\_base.py", line 388, in __get_result
File "concurrent\futures\thread.py", line 57, in run
File "calibre_plugins.kobotouch_extended.container" , line 310, in forced_cleanup
File "calibre_plugins.kobotouch_extended.container" , line 170, in flush_cache
File "calibre_plugins.kobotouch_extended.container" , line 368, in __run_async
File "concurrent\futures\_base.py", line 432, in result
File "concurrent\futures\_base.py", line 388, in __get_result
File "concurrent\futures\thread.py", line 57, in run
File "calibre_plugins.kobotouch_extended.container" , line 174, in __flush_cache_impl
File "calibre\ebooks\oeb\polish\container.py", line 1032, in commit_item
OSError: [Errno 22] Invalid argument: 'C:\\temp\\calibre_buxw6wjt\\mic5lj54_epub_contain er\\OEBPS\\Text\\part0054.html'

I don't know if I should post it here or in the thread of the conversion plugin, as it's throwing the same error. Could you help me?
sheldon_es is offline   Reply With Quote
Old 11-17-2021, 08:52 AM   #2615
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
I think, that that is a problem with something cleaning up the temporary storage while the files are still being used. The error number is not the usual for that, but, it isn't an uncommon problem. The other possibility is you anti-virus/malware blocking access to the file.

Is c:\temp somewhere unusual? Is it just on the main drive of the PC? Or is it a link somewhere else?
davidfor is offline   Reply With Quote
Advert
Old 11-17-2021, 10:07 AM   #2616
sheldon_es
Junior Member
sheldon_es began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2021
Device: Kobo Clara HD
It's my main drive. In fact I changed the default temp directory because of the error (it was inside c:\users\... before). It may be my antivirus, as it's a enterprise PC, but I can convert other books.
sheldon_es is offline   Reply With Quote
Old 11-17-2021, 01:51 PM   #2617
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,095
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by sheldon_es View Post
It's my main drive. In fact I changed the default temp directory because of the error (it was inside c:\users\... before). It may be my antivirus, as it's a enterprise PC, but I can convert other books.
Temp Access issues are not usually Per Book. (assumes other conversions work before and after the problem book)

Something else is happening
theducks is offline   Reply With Quote
Old 11-19-2021, 04:54 AM   #2618
sheldon_es
Junior Member
sheldon_es began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2021
Device: Kobo Clara HD
It may be malformed epubs? I've converted the books with kepubify and worked fine.
sheldon_es is offline   Reply With Quote
Old 11-20-2021, 11:21 PM   #2619
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by sheldon_es View Post
It may be malformed epubs? I've converted the books with kepubify and worked fine.
Using kepubify doesn't really tell us anything. It shares no code with the extended driver and handles errors it finds in different ways.

The error you are reporting is somehow related to the way a calibre unpacks files when making changes. The failure is happening when the changed file is being put back into the book. Which is the reason for my suggestion.

The actual error, "[Errno 22] Invalid argument:", comes from Python and the OS, and can mean a few things. One is that the file missing, another is that there are invalid characters in the file names. But, there is nothing obvious in the names for the latter, and the former shouldn't happen unless something is cleaning up temp files somewhere. I can't think of what has been done to fix this the other times it has been reported.

It might be useful to see the original book. Usually I would ask for you to use the ScrambleEbook plugin and post it. But, I think seeing the unchanged book would be better. If it is legal for you to upload, could you? Or if it is available somewhere for me to legally download, can you post the link. Otherwise, can you upload it somewhere and PM me the link.
davidfor is offline   Reply With Quote
Old 11-23-2021, 04:21 PM   #2620
Buhaj
Groupie
Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.
 
Buhaj's Avatar
 
Posts: 175
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kobo Libra 2, Kindle PW3
I remember the chapter page count didn't work correctly a few years back if the HTML files didn't match ToC entries, I suppose it's still the case. If the user wants to see the count and there's no 1:1 correspondence in EPUB files, does the plugin fix it, or is there another way to do it other than splitting HTML files manually?
Buhaj is offline   Reply With Quote
Old 11-23-2021, 07:10 PM   #2621
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Buhaj47 View Post
I remember the chapter page count didn't work correctly a few years back if the HTML files didn't match ToC entries, I suppose it's still the case. If the user wants to see the count and there's no 1:1 correspondence in EPUB files, does the plugin fix it, or is there another way to do it other than splitting HTML files manually?
Firstly, the issues with not having a one-to-one relationship between the ToC and internal files is a lot less than it used to be. I don't think the full book numbering has an issue with this.

Other than that, the extended driver does not make changes to the structure of the books sent. The assumption is that the books being sent are in valid, do not contain errors and are otherwise ready to read. There is some code cleanup, but, that is more about making adding the spans less likely to fail. Otherwise, the intention is to make minimal changes. This was an explicit design decision and won't change.

If more is desired, do a conversion to kepub.
davidfor is offline   Reply With Quote
Old 12-01-2021, 08:04 AM   #2622
sheldon_es
Junior Member
sheldon_es began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2021
Device: Kobo Clara HD
Quote:
Originally Posted by davidfor View Post
Using kepubify doesn't really tell us anything. It shares no code with the extended driver and handles errors it finds in different ways.

The error you are reporting is somehow related to the way a calibre unpacks files when making changes. The failure is happening when the changed file is being put back into the book. Which is the reason for my suggestion.

The actual error, "[Errno 22] Invalid argument:", comes from Python and the OS, and can mean a few things. One is that the file missing, another is that there are invalid characters in the file names. But, there is nothing obvious in the names for the latter, and the former shouldn't happen unless something is cleaning up temp files somewhere. I can't think of what has been done to fix this the other times it has been reported.

It might be useful to see the original book. Usually I would ask for you to use the ScrambleEbook plugin and post it. But, I think seeing the unchanged book would be better. If it is legal for you to upload, could you? Or if it is available somewhere for me to legally download, can you post the link. Otherwise, can you upload it somewhere and PM me the link.
Thanks. I'll send you a link (by private)
sheldon_es is offline   Reply With Quote
Old 12-07-2021, 05:08 AM   #2623
met67
Connoisseur
met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.
 
Posts: 78
Karma: 165868
Join Date: Jan 2012
Device: Nook Touch
Got the same problem, both with Kobo Touch Extended Driver and Kobo Conversion Plugin... latest version of Calibre and plugins, it fails on every book I tried...

Any hint?

Code:
calibre, version 5.33.2
ERRORE: Errore: Errore di comunicazione col dispositivo

[Errno 22] Invalid argument: 'C:\\Users\\me\\AppData\\Local\\Temp\\calibre_a0k5uu4z\\hgrfiy9j_epub_container\\OEBPS\\Text\\part0052.html'

Traceback (most recent call last):
  File "calibre\gui2\device.py", line 87, in run
  File "calibre\gui2\device.py", line 593, in _upload_books
  File "calibre_plugins.kobotouch_extended.device.driver", line 416, in upload_books
  File "calibre\devices\kobo\driver.py", line 2172, in upload_books
  File "calibre_plugins.kobotouch_extended.device.driver", line 211, in _modify_epub
  File "calibre_plugins.kobotouch_extended.container", line 119, in __init__
  File "calibre_plugins.kobotouch_extended.container", line 375, in __run_async_over_content
  File "calibre_plugins.kobotouch_extended.container", line 368, in __run_async
  File "concurrent\futures\_base.py", line 432, in result
  File "concurrent\futures\_base.py", line 388, in __get_result
  File "concurrent\futures\thread.py", line 57, in run
  File "calibre_plugins.kobotouch_extended.container", line 310, in forced_cleanup
  File "calibre_plugins.kobotouch_extended.container", line 170, in flush_cache
  File "calibre_plugins.kobotouch_extended.container", line 368, in __run_async
  File "concurrent\futures\_base.py", line 432, in result
  File "concurrent\futures\_base.py", line 388, in __get_result
  File "concurrent\futures\thread.py", line 57, in run
  File "calibre_plugins.kobotouch_extended.container", line 174, in __flush_cache_impl
  File "calibre\ebooks\oeb\polish\container.py", line 1033, in commit_item
OSError: [Errno 22] Invalid argument: 'C:\\Users\\me\\AppData\\Local\\Temp\\calibre_a0k5uu4z\\hgrfiy9j_epub_container\\OEBPS\\Text\\part0052.html'
Quote:
Originally Posted by sheldon_es View Post
Hello. I'm new with this plugin. I tried to use this plugin to send the books to my (new) Kobo Clara HD. Some books worked ok, but with most of books I got an error:calibre, version 5.32.0
ERROR: Error: Error en la comunicación con el dispositivo

[Errno 22] Invalid argument: 'C:\\temp\\calibre_buxw6wjt\\mic5lj54_epub_contain er\\OEBPS\\Text\\part0054.html'

Traceback (most recent call last):
File "calibre\gui2\device.py", line 87, in run
File "calibre\gui2\device.py", line 593, in _upload_books
File "calibre_plugins.kobotouch_extended.device.driver" , line 416, in upload_books
File "calibre\devices\kobo\driver.py", line 2143, in upload_books
File "calibre_plugins.kobotouch_extended.device.driver" , line 211, in _modify_epub
File "calibre_plugins.kobotouch_extended.container" , line 119, in __init__
File "calibre_plugins.kobotouch_extended.container" , line 375, in __run_async_over_content
File "calibre_plugins.kobotouch_extended.container" , line 368, in __run_async
File "concurrent\futures\_base.py", line 432, in result
File "concurrent\futures\_base.py", line 388, in __get_result
File "concurrent\futures\thread.py", line 57, in run
File "calibre_plugins.kobotouch_extended.container" , line 310, in forced_cleanup
File "calibre_plugins.kobotouch_extended.container" , line 170, in flush_cache
File "calibre_plugins.kobotouch_extended.container" , line 368, in __run_async
File "concurrent\futures\_base.py", line 432, in result
File "concurrent\futures\_base.py", line 388, in __get_result
File "concurrent\futures\thread.py", line 57, in run
File "calibre_plugins.kobotouch_extended.container" , line 174, in __flush_cache_impl
File "calibre\ebooks\oeb\polish\container.py", line 1032, in commit_item
OSError: [Errno 22] Invalid argument: 'C:\\temp\\calibre_buxw6wjt\\mic5lj54_epub_contain er\\OEBPS\\Text\\part0054.html'

I don't know if I should post it here or in the thread of the conversion plugin, as it's throwing the same error. Could you help me?
met67 is offline   Reply With Quote
Old 12-07-2021, 07:18 AM   #2624
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
@sheldon_es: I tried the book you sent me and had no errors with either a conversion or using the extended driver. It feels like something external interfering, but, I have no idea what. The obvious culprit would be anti-virus or anti-malware.

The only other thing I can think of is to check the path where the files are and see what is there. Calibre should create a new temporary directory when you start it. And the conversion will use another. They should disappear when finished, but, I'm not sure what happens when the conversion fails like this. Watching the temporary directory as the conversion happens might tell you something.
davidfor is offline   Reply With Quote
Old 12-07-2021, 08:08 AM   #2625
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,453
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by davidfor View Post
@sheldon_es: I tried the book you sent me and had no errors with either a conversion or using the extended driver. It feels like something external interfering, but, I have no idea what. The obvious culprit would be anti-virus or anti-malware.
It could be an aggressive temp file cleaner. I think that some work by watching for changes then deleting things when they don't change, depending on locking to prevent breakage. Running calibre in safe mode could help find the culprit or at least verify the "something external" theory.
chaley is offline   Reply With Quote
Reply

Tags
error, kobo aura one


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo Device Driver Update davidfor Devices 284 05-24-2019 05:24 PM
[Device Plugin] Kindle 2, 3, 4, Touch Device Interface MBP Update Mod cryzed Plugins 7 10-28-2012 04:58 PM
[Device Interface Plugin] Update for Nook Color Driver jmricker Plugins 0 10-22-2011 10:11 AM
Touch Kobo Touch Extended 2 Year Warranty - Is it worth the $34.99? EverC Kobo Reader 11 08-31-2011 11:47 PM
Touch Kobo Touch Extended Warranty Program SensualPoet Kobo Reader 1 07-17-2011 04:08 AM


All times are GMT -4. The time now is 12:09 PM.


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