Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 09-27-2023, 06:29 AM   #1
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 918
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
Error during updating metadata

Hi Kovid, everytime I update the metadata of an ebook, of which multiple files are present I get an error concerning the impossibility of updating the PDF-file, while the other files are correctly ignored. Can the PDF-file somehow be marked to be ignored too?
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2023-09-27 121704.png
Views:	64
Size:	12.4 KB
ID:	203976   Click image for larger version

Name:	Screenshot 2023-09-27 122332.png
Views:	71
Size:	19.9 KB
ID:	203977  
DrChiper is offline   Reply With Quote
Old 09-27-2023, 06:32 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: 43,970
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The other files are not ignored there is just no error setting their metadata. Click the copy to clipboard button and paste the full error
kovidgoyal is offline   Reply With Quote
Advert
Old 09-27-2023, 07:59 AM   #3
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 918
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
Running on Windows 11, this is the full message:

Code:
calibre, version 6.27.0
WARNING: Failed for some files: Failed to embed metadata into some book files. Click "Show details" for details.

The PDF format of  xxxxx:

Traceback (most recent call last):
  File "calibre\utils\podofo\__init__.py", line 36, in set_metadata
  File "calibre\utils\ipc\simple_worker.py", line 255, in fork_job
  File "calibre\utils\ipc\simple_worker.py", line 180, in run_job
  File "calibre\utils\ipc\simple_worker.py", line 115, in communicate
calibre.utils.ipc.simple_worker.WorkerError: Failed to communicate with worker process

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre\customize\ui.py", line 488, in set_file_type_metadata
  File "calibre\customize\builtins.py", line 525, in set_metadata
  File "calibre\ebooks\metadata\pdf.py", line 185, in set_metadata
  File "calibre\utils\podofo\__init__.py", line 40, in set_metadata
Exception: Failed to set PDF metadata in (xxxxxx): Traceback (most recent call last):
  File "multiprocessing\connection.py", line 317, in _recv_bytes
BrokenPipeError: [WinError 109] The pipe has been ended

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre\utils\ipc\simple_worker.py", line 53, in run
  File "calibre\utils\ipc\__init__.py", line 24, in eintr_retry_call
  File "multiprocessing\connection.py", line 255, in recv
  File "multiprocessing\connection.py", line 326, in _recv_bytes
EOFError

Last edited by DrChiper; 09-27-2023 at 08:02 AM.
DrChiper is offline   Reply With Quote
Old 09-27-2023, 08:32 AM   #4
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: 43,970
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That looks like something on your computer is interfering with calibre, most likley an antivirus, try rebooting in safe mode and see if the errors stop
kovidgoyal is offline   Reply With Quote
Old 09-27-2023, 09:10 AM   #5
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 918
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
I get the same error in "Safe Mode". The PDF itself seems ok. Strangely enough not all ebooks with additional PDFs show errors. Those ebooks were added with calibre 6.25 or earlier.
I try to see whether I can find file property differences.
DrChiper is offline   Reply With Quote
Advert
Old 09-28-2023, 02:54 AM   #6
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 918
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
It narrows down to the PDF-file: the file itself is perfectly genuine (PDF version 1.5), but somehow still not appreciated by calibre for updating the metadata. I'll investigate further.
DrChiper is offline   Reply With Quote
Old 09-28-2023, 03:16 AM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,650
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DrChiper View Post
It narrows down to the PDF-file: the file itself is perfectly genuine (PDF version 1.5), but somehow still not appreciated by calibre for updating the metadata. I'll investigate further.
Check the PDF security settings, a PDF can be protected against editing - without password protection. So it can be read but it cannot be changed.

BR
BetterRed is offline   Reply With Quote
Old 09-28-2023, 03:47 AM   #8
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: 8,767
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I'd also check whether there might be a read-only flag on it.
ownedbycats is offline   Reply With Quote
Old 09-28-2023, 05:04 AM   #9
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 918
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
@BetterRed & @ownedbycats: That were the first things I checked: negative.

I found the cause: its in the PDF file handling.
A working PDF-file has the following ending:
Code:
<</ID[<B43E3B0286664B420FA6AC3FE4CBFF8B><B43E3B0286664B420FA6AC3FE4CBFF8B>]
/Info 1935 0 R
/Root 1937 0 R
/Size 1945>>
startxref
55999427
%%EOF
My failing PDF-file (which is however perfectly genuine) shows:
Code:
<</Size 1127
/ID [(Vؘr„g‘X%ÃVCÙÂ) (Vؘr„g‘X%ÃVCÙÂ) ] 
/Root 1625 0 R >> 
startxref
37312594
%%EOF
Calibre did show as an error "EOFError", so I concluded it was parsing to something it expected, but did not find before hitting %%EOF.

As can be seen, my PDF-file is missing the (optional) entry "/info xxxx x R", so I manually added that and now calibre does not complain anymore.

My PDF-file was generated by using the well-known Poppler tool "pdfunite" (I tried multiple versions and the most recent 23.08.0 one for windows) , which never seems to include the "/info" entry.

First conclusion therefor is that the calibre parsing-tool is expecting something which not necessary needs to be present.
PDF-files are (and will be) a pain in the xxx
DrChiper is offline   Reply With Quote
Old 09-28-2023, 05:07 AM   #10
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: 43,970
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre uses podofo to parse PDF. I doubt that requires the /Info dictionary but opena bug report and attach your PDF and I will take a look, podofo recently underwent a rewrite which broke quite a few things, maybe it broke this.
kovidgoyal is offline   Reply With Quote
Old 09-28-2023, 05:31 AM   #11
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 918
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
Ah, that figures.
Please find my 2 test PDF-files attached.
Attached Files
File Type: pdf Failing.pdf (631.2 KB, 37 views)
File Type: pdf Corrected.pdf (631.2 KB, 37 views)
DrChiper is offline   Reply With Quote
Old 09-28-2023, 05:57 AM   #12
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: 43,970
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
OK I'll look into it when I have a moment
kovidgoyal is offline   Reply With Quote
Old 09-28-2023, 08:40 AM   #13
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: 43,970
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...16519551f5b4b5
kovidgoyal is offline   Reply With Quote
Old 09-28-2023, 09:06 AM   #14
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 918
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
Thanks Kovid, will give it a try on the next release.
DrChiper is offline   Reply With Quote
Old 10-06-2023, 11:29 AM   #15
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 918
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
The PDF-files seem to pass-on fine now using calibre 6.28.
DrChiper is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error message when updating metadata - changing title or author Rayha Server 5 07-13-2018 08:44 PM
Error when updating cache metadata on the connected device sylvain62 Devices 5 03-19-2015 02:49 PM
Why is my metadata not updating? rhino79 Library Management 25 09-23-2014 01:34 AM
Error received after updating metadata Vidfamne Library Management 4 06-08-2012 02:07 AM
Error on updating metadata in 0.6.44 jomaweb Calibre 3 03-06-2010 12:05 PM


All times are GMT -4. The time now is 06:11 AM.


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