Quote:
Originally Posted by kovidgoyal
Whats that got to do with anything, look at the source corresponding to the version you are running and you will see its the same line, it has just moved because of other changes to the file.
|
Ok, well, I cannot seem to get the binary installed in /opt/calibre/ to respect the env var for the dev source, and the latest version's export seems to not work on my machine at all, despite the changes to the source .py file.
I don't have anything unusual in my system, this is an Archlinux based distribution (Garuda, not that it matters). The calibre binary is installed via the linux installer script, not via the pacman. Whether I set the env var in bash or fish (my default shell), the experience is the same. At this point, I'm kind of at a loss for how to proceed. You admitted yourself that the script's next line is meant to suppress the error, yet, it's not working. Would an uninstall and reinstall of the binary help? Should I do a wholesale removal of the binaries and the ~/.config/calibre directory?
Edit: I wanted to test something. I spun up a VM with a minimal ubuntu 24.04 installation, no gui. I installed Calibre via the linux installer script, and I copied the Calibre-Subset library over to the VM and attempted to perform a backup. This is the output:
Code:
shaya@calibre-ubuntu:~$ calibre-debug --export-all-calibre-data /home/shaya/Calibre-Backup-20260202 /home/shaya/Calibre-Subset
Traceback (most recent call last):
File "runpy.py", line 198, in _run_module_as_main
File "runpy.py", line 88, in _run_code
File "site.py", line 47, in <module>
File "site.py", line 43, in main
File "calibre/debug.py", line 308, in main
File "calibre/utils/exim.py", line 552, in run_exporter
KeyError: '/home/shaya/Calibre-Subset'
I can confirm that calibre can read the library, see here:
Code:
shaya@calibre-ubuntu:~$ calibredb list --with-library /home/shaya/Calibre-Subset/
id title authors
1 Pathogenesis: A History of the World in Eight Jonathan Kennedy
Plagues
2 A Sleight of Shadows Kat Howard
3 Rarest Blue Baruch Sterman & Judy Taubes Sterman
4 The Gift of Fear Gavin de Becker
5 A Long Walk to Water Linda Sue Park
While I appreciate that you're unable to reproduce the error, I'm not sure why on a fresh VM, with a fresh install of Calibre, that this would happen?