View Single Post
Old 09-08-2022, 02:00 PM   #41
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,114
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by lizzie1170 View Post
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?
You need to quote any path that contains spaces
theducks is offline   Reply With Quote