View Single Post
Old 03-25-2023, 04:18 AM   #1
RudyBzh
Junior Member
RudyBzh began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2023
Device: iPad
Loosing Books when renaming

Hi,

I'm dealing with issues when I try to rename a book using Calibre.
If I change the Author or Title in Calibre (impacting the folder and file names), it often delete my book during the renaming process and I can find it anymore. It also happens using Download Metadata (because it changes Author/Title itself).

Here are 2 debug traces for exemple

Code:
Starting QuickView
QAbstractItemView::commitData called with an editor that does not belong to this view
QAbstractItemView::closeEditor called with an editor that does not belong to this view
QAbstractItemView::commitData called with an editor that does not belong to this view
QAbstractItemView::closeEditor called with an editor that does not belong to this view
Failed to write backup metadata for id: 9682 once
Traceback (most recent call last):
  File "calibre/db/backend.py", line 1831, in write_backup
  File "os.py", line 225, in makedirs
FileExistsError: [Errno 17] File exists: '/mnt/Calibre/Martha Grimes/Le jeu de la verite (9682)'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre/db/backup.py", line 116, in do_one
  File "calibre/db/cache.py", line 77, in call_func_with_lock
  File "calibre/db/cache.py", line 1550, in write_backup
  File "calibre/db/backend.py", line 1835, in write_backup
  File "polyglot/builtins.py", line 61, in reraise
  File "calibre/db/backend.py", line 1826, in write_backup
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/Calibre/Martha Grimes/Le jeu de la verite (9682)/metadata.opf'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-abc'
And another one :
Code:
calibre 6.14.1  embedded-python: True
Linux-5.10.0-21-amd64-x86_64-with-glibc2.35 Linux ('64bit', '')
('Linux', '5.10.0-21-amd64', '#1 SMP Debian 5.10.162-1 (2023-01-21)')
Python 3.10.1
Interface language: fr
Successfully initialized third party plugins: Quality Check (1, 13, 3)
Traceback (most recent call last):
  File "calibre/db/backend.py", line 1629, in set_cover
  File "calibre/utils/img.py", line 297, in save_cover_data_to
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/Calibre/John Case/Genesis (9841)/cover.jpg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre/gui2/metadata/single.py", line 621, in accept
  File "calibre/gui2/metadata/single.py", line 602, in apply_changes
  File "calibre/gui2/metadata/basic_widgets.py", line 1308, in commit
  File "calibre/db/legacy.py", line 829, in set_cover
  File "calibre/db/cache.py", line 77, in call_func_with_lock
  File "calibre/db/cache.py", line 1616, in set_cover
  File "calibre/db/backend.py", line 1632, in set_cover
  File "calibre/utils/img.py", line 297, in save_cover_data_to
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/Calibre/John Case/Genesis (9841)/cover.jpg'
Hope it will be supported, I'm using a docker version of Calibre coming from lsio.

Any advice of what it could be and how I can solve this please ?

Thanks a lot.
Regards
RudyBzh is offline   Reply With Quote