|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#31 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Jul 2022
Device: none
|
Quote:
Code:
"ebook-convert" 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 46, in run File "module", line 20, in tags_from_epub FileNotFoundError: [Errno 2] No such file or directory: 'C:\\XXXXXXXX\\AppData\\Local\\Temp\\tmpocxcipyw\\temp.txt' |
|
![]() |
![]() |
![]() |
#32 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
#33 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
Another semi-automatic solution for you to get around this error:
Edit: You can make a chain of all the above steps. Make sure to check the option to wait for ongoing jobs in the "Calibre Actions" settings dialog. Edit2: Chain attached below. There are two things to take into consideration while using this chain
Edit3: For anyone else who wants to test this, you must make a dictionary of tags and corresponding regular expressions in the format illustrated below (This is the format chosen by OP in his original code). Code:
{ "case_sensitive_tag": "case_sensitive_tag", "science-fiction": "(?i)science.?fiction", "non-fiction": "(?i)non.?fiction" } Last edited by capink; 09-06-2022 at 04:46 PM. |
![]() |
![]() |
![]() |
#34 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
Quote:
Edit: Now the I think about it maybe Windows use a different name for the command line tools e.g. ebook-convert.exe. Maybe someone can confirm this. If so, I can modify the first chain which is better than the second IMO. Last edited by capink; 09-07-2022 at 01:54 PM. |
|
![]() |
![]() |
![]() |
#35 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Code:
directories C:\Program Files\Calibre2\app files C:\Program Files\Calibre2\calibre-complete.exe C:\Program Files\Calibre2\calibre-customize.exe C:\Program Files\Calibre2\calibre-debug.exe C:\Program Files\Calibre2\calibre-parallel.exe C:\Program Files\Calibre2\calibre-server.exe C:\Program Files\Calibre2\calibre-smtp.exe C:\Program Files\Calibre2\calibre.exe C:\Program Files\Calibre2\calibredb.exe C:\Program Files\Calibre2\ebook-convert.exe C:\Program Files\Calibre2\ebook-device.exe C:\Program Files\Calibre2\ebook-edit.exe C:\Program Files\Calibre2\ebook-meta.exe C:\Program Files\Calibre2\ebook-polish.exe C:\Program Files\Calibre2\ebook-viewer.exe C:\Program Files\Calibre2\fetch-ebook-metadata.exe C:\Program Files\Calibre2\LICENSE C:\Program Files\Calibre2\lrf2lrs.exe C:\Program Files\Calibre2\lrfviewer.exe C:\Program Files\Calibre2\lrs2lrf.exe C:\Program Files\Calibre2\markdown-calibre.exe C:\Program Files\Calibre2\web2disk.exe And I still doubt that the path in the FileNotFoundError is 'real' - unless someone/something has created it manually i.e.
To me at least, they both seem unlikely. BR Last edited by BetterRed; 09-07-2022 at 05:46 PM. |
|
![]() |
![]() |
![]() |
#36 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
Thanks for the exhaustive list of commands. Should be useful for future reference.
Quote:
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). Last edited by capink; 09-08-2022 at 12:36 PM. |
|
![]() |
![]() |
![]() |
#37 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@capink - I don't have the AC PI installed, so I can't test any chains.
BR |
![]() |
![]() |
![]() |
#38 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
Yes I know. The last sentence was not directed to you.
|
![]() |
![]() |
![]() |
#39 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Jul 2022
Device: none
|
Quote:
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? |
|
![]() |
![]() |
![]() |
#40 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
I cannot debug anything happening on Windows because I do not have access. If the latest update is not working for you, use the solution posted in the post two posts before it. If that doesn't work, you are out of luck.
|
![]() |
![]() |
![]() |
#41 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
![]() |
![]() |
![]() |
#42 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
What is your rationale for using them? I can't speak to CALIBRE_DEVELOP_FROM as I've only used it with the installed version of calibre, and that was a decade ago. BR |
|
![]() |
![]() |
![]() |
#43 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Jul 2022
Device: none
|
Quote:
![]() I got excited and loaded over 1000 books in one task and my computer restarted so I only run the code on groups of 50 books. Do you think that an EVENT can be created with which the code can be executed automatically, even one by one? |
|
![]() |
![]() |
![]() |
#44 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
Quote:
Anyway, it does not make sense in your case, because the chain is interactive, so the conversion settings dialog will keep popping up with every iteration. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I bulk-delete a number of selected tags from all books in my library? | droopy | Library Management | 1 | 08-09-2020 06:24 PM |
How are tags selected between multiple metadata sources? | Isomorpheus | Library Management | 3 | 10-19-2019 01:29 PM |
HTML Metadata add Tags? | skb | Conversion | 5 | 07-16-2019 07:24 AM |
Help Please- Add and Convert Books and Download Metadata not working??? | gorgeousbird | Calibre | 5 | 08-14-2012 12:31 AM |
ADD Books & extract tags from title? | johnb0647 | Calibre | 3 | 01-08-2011 05:36 PM |