View Single Post
Old 09-08-2022, 03:20 AM   #39
lizzie1170
Member
lizzie1170 began at the beginning.
 
lizzie1170's Avatar
 
Posts: 12
Karma: 10
Join Date: Jul 2022
Device: none
Quote:
Originally Posted by capink View Post
Thanks for the exhaustive list of commands. Should be useful for future reference.
I share your view that the temporary directory location seems odd. But lizzie1170 indicated in a previous post the directory was created but was missing the converted temp.txt file, which is consistent with the ebook-convert error.

So, I modified the first chain and attached it to this post. Note that you need to remove the old chain first to be able to import the modified version (because of name clashes).
I imported the latest code. I have the portable version on an external hard drive, I found that ebook-convert is located at:
D:\User\Calibre Portable\Calibre\ebook-convert.exe

I edited this path in the code.
converter = 'D:\USER\Calibre Portable\Calibre\ebook-convert.exe'

I got the same error:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\USER\\AppData\\Local\\Temp\\tmp_mmjtpdw\\temp .txt'

Maybe it's because of the paths I've set for the environment variables?
** CALIBRE_CONFIG_DIRECTORY = D:\USER\Calibre Portable\Calibre Settings
** CALIBRE_DEVELOP_FROM = D:\USER\Calibre Portable\calibre-6.3.0\src
** CALIBRE_TEMP_DIR = C:\USER\AppData\Local\Temp

When I ran debug mode.
"D:\User\Calibre" is not recognized as an internal or external command, operable program or batch file.
Traceback (most recent call last):
File "calibre_plugins.action_chains.chains", line 182, in _run_loop
File "calibre_plugins.action_chains.actions.code", line 130, in run
File "module", line 49, in run
File "module", line 29, in tags_from_epub

Maybe it's the path to ebook-convert?
Attached Thumbnails
Click image for larger version

Name:	res_code_2.png
Views:	81
Size:	37.7 KB
ID:	196373   Click image for larger version

Name:	res_code_2.1.PNG
Views:	71
Size:	19.9 KB
ID:	196376  
lizzie1170 is offline   Reply With Quote