Embed metadata spawns infinite error popups

Bug #2043248 reported by Ben
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

The 'Embed Metadata' button spawns infinite error popups if the selected pdf file is open in another app. The error popups only stop when the pdf file is closed in the other app.

This is the error message:

calibre, version 6.29.0
ERROR: Cannot open file or folder as it is in use: <p>Could not open the file: "E:\My Documents\Calibre default library\Will Terry\What They Don't Teach You in Art Sc (693)\What They Don't Teach You in Ar - Will Terry.pdf". It is already opened in the following programs:<div>Foxit Reader 9.7: C:\Program Files (x86)\Foxit Software\Foxit Reader\FoxitReader.exe

calibre 6.29 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 5, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (2, 5, 0) && Action Chains (1, 18, 15) && Annotations (1, 17, 13) && Count Pages (1, 13, 4) && Embed Comic Metadata (1, 6, 6) && EpubMerge (2, 16, 0) && Extract ISBN (1, 6, 0) && Find Duplicates (1, 10, 8) && Goodreads (1, 7, 9) && ISFDB3 (1, 2, 2) && KFX metadata reader (from KFX Input) (2, 5, 0) && KFX Input (2, 5, 0) && Set KFX metadata (from KFX Output) (2, 3, 1) && KFX Output (2, 3, 1) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && Kindle hi-res covers (0, 5, 0) && KindleUnpack - The Plugin (0, 83, 1) && Kobo Books (1, 9, 2) && Kobo Utilities (2, 16, 10) && KoboTouchExtended (3, 6, 4) && Modify ePub (1, 8, 2) && Obok DeDRM (7, 2, 1) && Quality Check (1, 13, 6) && Reading List (1, 15, 1)
Traceback (most recent call last):
  File "calibre\gui2\actions\embed.py", line 127, in do_one
  File "calibre\db\cache.py", line 85, in call_func_with_lock
  File "calibre\db\cache.py", line 2905, in embed_metadata
  File "calibre\db\backend.py", line 1511, in apply_to_format
PermissionError: [Errno 13] Permission denied: "E:\\My Documents\\Calibre default library\\Will Terry\\What They Don't Teach You in Art Sc (693)\\What They Don't Teach You in Ar - Will Terry.pdf"

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

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

Changed in calibre:
status: New → Fix Released
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.