Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-13-2022, 06:20 AM   #1
Yecats
Junior Member
Yecats began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2022
Device: Kindle
Error adding ebooks to calibre

Hi,
I have been using calibre for a little while, still pretty new. I havnt had any issues so far, until now.
My books are mobi/kindle format. All of them are the same format. Some of the books I have saved on my computer are uploaded to calibre already with no problems, and others that are the same format are all of a sudden not working. I tried another one that I already uploaded to calibre that worked and now its not working.
I use windows. I read on a few old forum post that it was a zip problem, but they were all mac users with advice for ibooks and mac. Any insight would be greatly appreciated :-)

This is the error message

calibre, version 6.8.0
WARNING: Errors while adding: There were problems adding some files, click "Show details" for more information


----------------------------------------------------------------------
Failed to add the file C:/Users/stace/OneDrive/Kindle/Harry Potter/Harry Potter and the Philosophers Stone.mobi to the book: Harry Potter and the Philosophers Stone
With error:
Traceback (most recent call last):
File "calibre\gui2\add.py", line 487, in add_formats
File "calibre\db\cache.py", line 1814, in add_format
File "calibre\db\cache.py", line 1771, in _do_add_format
File "calibre\db\backend.py", line 1722, in add_format
File "shutil.py", line 195, in copyfileobj
OSError: [Errno 22] Invalid argument
Yecats is offline   Reply With Quote
Old 11-13-2022, 08:23 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
trying copying that file out of one drive into a local folder and then adding it.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-13-2022, 05:06 PM   #3
Yecats
Junior Member
Yecats began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2022
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
trying copying that file out of one drive into a local folder and then adding it.
Thank you, yes I did try that last night but it didnt work unfortunately
Yecats is offline   Reply With Quote
Old 11-13-2022, 05:12 PM   #4
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,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Could this be a temp file cleaner being aggressive?
chaley is offline   Reply With Quote
Old 11-13-2022, 09:21 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Where is your calibre library folder located?
kovidgoyal is offline   Reply With Quote
Advert
Old 11-13-2022, 09:22 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by chaley View Post
Could this be a temp file cleaner being aggressive?
Adding a book takes a few seconds I cant see any temp file cleaner being that aggressive.
kovidgoyal is offline   Reply With Quote
Old 11-13-2022, 09:28 PM   #7
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,975
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by kovidgoyal View Post
Adding a book takes a few seconds I cant see any temp file cleaner being that aggressive.
Perhaps if it blocked anything from going into the temp folder to begin with? I once set all of D:\Temporary\ to read-only to test something (unrelated to Calibre), and since I use D:\Temporary\Calibre\temp\ for the temp folder it resulted in errors until I remembered to unset it.
ownedbycats is offline   Reply With Quote
Old 11-13-2022, 09:36 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The error in the OPs post indicates copy between opened file descriptors is failing. This means that after the files were successfuly opened, the kernel is failing to copy between the files. The only way that can happen is buggy file system drivers or some third party software interfering. Which is why I am enquiring about the location of the file being added and the calibre library.
kovidgoyal is offline   Reply With Quote
Old 11-17-2022, 02:46 AM   #9
Jameswalter
Junior Member
Jameswalter began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2022
Device: Kindle
Some devices, like the Kindle (1/2/DX), do not allow you to access port 8080 (the default port on which the content server runs). In that case, change the port in the calibre Preferences to 80.
Jameswalter is offline   Reply With Quote
Old 01-07-2023, 02:45 PM   #10
willboliva
Member
willboliva began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2018
Device: Kindle
I was having the same problem (kind of, the same warning message but in the details it said "Failed to read metadata from the file: " instead) also with a mobi file, then I realized that the file name was too long, the book had a huge subtitle, I shortened it leaving just title and author and Calibre was able to add the book without any problems.
willboliva is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre 3.14 error adding epub book dhdurgee Calibre 2 01-05-2018 08:21 AM
Error when adding books to calibre rrfairley Library Management 5 07-11-2017 04:46 AM
Error adding new books to Calibre enguerrand Devices 10 01-23-2014 11:07 PM
Error adding books to Calibre dfernandez Library Management 0 09-12-2012 05:08 PM
Adding Books to Calibre error Ginnia Library Management 4 06-07-2011 04:13 AM


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


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