11-26-2020, 06:15 AM | #76 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
LanguageTool v. 0.4.3, Sigil v. 1.4.2, Windows 10, 32 bit.
I have been forced to reinstall Windows, and thus had to reinstall Sigil and the plugins. Now, at running the languagetool, I receive this error message: Code:
Status: failed Working on index.xhtml... Traceback (most recent call last): File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 142, in launch self.exitcode = target_script.run(container) File "C:\Users\Juerg\AppData\Local\sigil-ebook\sigil\plugins\LanguageTool\plugin.py", line 490, in run result, returncode = ltWrapper(*run_args) File "C:\Users\Juerg\AppData\Local\sigil-ebook\sigil\plugins\LanguageTool\plugin.py", line 130, in ltWrapper process = subprocess.Popen(list(args), stdout=subprocess.PIPE, stderr=subprocess.PIPE, startupinfo=startupinfo) File "subprocess.py", line 854, in __init__ File "subprocess.py", line 1307, in _execute_child FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden Error: [WinError 2] Das System kann die angegebene Datei nicht finden |
11-26-2020, 06:50 AM | #77 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
|
Advert | |
|
11-26-2020, 08:29 AM | #78 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
This didn't work, although having uninstalled and reinstalled Sigil.
In the LanguagTool.json ther is the following entry: Code:
"ltPath": "F:/Sigil/LanguageTool-4.0/LanguageTool-4.0/languagetool-commandline.jar" Whereas in C:/Program Files/ there is no LanguageTool directory. And even having changed the entry in the LanguagTool.json, after starting the tool, the old entry reappears. And even having created a directory in C: with the given path (inserted the languagetool-commandline.jar, of course), there is the same error message. Ah, I see that I don't have the latest LanguageTool desktop version. But how do I get the zipped version? I only see .oxt. Last edited by Leonatus; 11-26-2020 at 09:07 AM. |
11-26-2020, 09:47 AM | #79 | ||
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
If you open a command prompt window, do you get an error message when you enter the following command? Code:
java -version Quote:
(The direct link for version 5.1 is here.) |
||
11-26-2020, 10:18 AM | #80 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
java -version returns:
Der Befehl "java" ist entweder falsch geschrieben oder konnte nicht gefunden werden. Now that I installed Java, the plugin seems to work. I didn't remember that at reinstalling Windows Java isn't shipped together. The only strange is that the tool boldly returns: "No problems found". Anyway, thanks for the help again! Last edited by Leonatus; 11-26-2020 at 10:29 AM. |
Advert | |
|
02-15-2021, 02:41 PM | #81 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Strange, now, at my other computer (Windows 10, 64 bit, Sigil v. 1.4.3, plugin v. 0.4.3) I receive repeatedly this message:
PHP Code:
|
02-16-2021, 02:53 PM | #82 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
I tested the plugin with on my 64bit Windows 10 machine with Sigil 1.4.3 and the latest LanguageTool release and wasn't able to reproduce your problem.
Download the latest LanguageTool snapshot, unpack it and update the ltPath setting in LanguageTool.json. Also double-check that you have installed the latest plugin version. If that doesn't fix the problem, check whether you have accidentally installed a 32bit Java version. Open a command prompt, paste the following string into it and hit Enter: Code:
java -XshowSettings:properties Code:
sun.arch.data.model = 64
|
02-19-2021, 03:35 AM | #83 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
64bit Java interpreter is o.k.
How do I update the ltPath setting in LanguageTool.json? The actual entry is: Code:
"E:/Plugins/Sigil/LanguageTool-4.9.1/LanguageTool-4.9.1/languagetool-commandline.jar" A suggestion that I would like to ask: As the output of LT sometimes is quite large, it were useful when there were an otion to save it - even if that would mean to lose the possibility of double-clicking and finding the text in question immediately. Is this possible? Last edited by Leonatus; 02-19-2021 at 06:17 AM. |
02-19-2021, 12:22 PM | #84 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Code:
{ "clipboard_copy": true, |
|
02-20-2021, 07:30 AM | #85 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Great! Thank you!
|
01-30-2023, 10:39 AM | #86 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
LanguageTool V. 0.4.3, LanguageTool Desktop V. 6.0 and 6.1 SNAPSHOT, Sigil V. 1.9.20, Windows 10, 64 bit.
Some time ago, I had a problem similar to that I refer today (see #76 ff.). But following all the checks recommended above, there is no solution. All began when I tried to update the plugin to the desktop version 6.0. Until then, everything worked fine. It had been just before this updating that I had applied the plugin for the last time. So, I changed the ltpath in the languageTool.json and made a test, but the result was like the following, only referring to the desktop v. 6.0: Code:
Status: failed Working on content0020.xhtml... EPUBCheck Java error. Expected text language: German (Germany) (no spell checking active) Working on C:\Users\Juerg\AppData\Local\Temp\tmpkc0shkf3\content0020.xhtml... Exception in thread "main" java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.RuntimeException: Could not check sentence (language: German (Germany)): <sentcontent> 1 Chaintre, cheintre [n. m.]: Das Ende oder die Grenze des Feldes, an dem der Pflüger den Pflug wendet. </sentcontent> at org.languagetool.MultiThreadedJLanguageTool.performCheck(MultiThreadedJLanguageTool.java:217) at org.languagetool.JLanguageTool.checkInternal(JLanguageTool.java:991) at org.languagetool.JLanguageTool.check(JLanguageTool.java:910) at org.languagetool.JLanguageTool.check(JLanguageTool.java:895) at org.languagetool.commandline.CommandLineTools.checkText(CommandLineTools.java:112) at org.languagetool.commandline.CommandLineTools.checkText(CommandLineTools.java:88) at org.languagetool.commandline.Main.runOnFile(Main.java:186) at org.languagetool.commandline.Main.main(Main.java:454) Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.RuntimeException: Could not check sentence (language: German (Germany)): <sentcontent> 1 Chaintre, cheintre [n. m.]: Das Ende oder die Grenze des Feldes, an dem der Pflüger den Pflug wendet. </sentcontent> at java.util.concurrent.ForkJoinTask.get(Unknown Source) at org.languagetool.MultiThreadedJLanguageTool.performCheck(MultiThreadedJLanguageTool.java:214) ... 7 more Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Could not check sentence (language: German (Germany)): <sentcontent> 1 Chaintre, cheintre [n. m.]: Das Ende oder die Grenze des Feldes, an dem der Pflüger den Pflug wendet. </sentcontent> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.util.concurrent.ForkJoinTask.getThrowableException(Unknown Source) ... 9 more Caused by: java.lang.RuntimeException: Could not check sentence (language: German (Germany)): <sentcontent> 1 Chaintre, cheintre [n. m.]: Das Ende oder die Grenze des Feldes, an dem der Pflüger den Pflug wendet. </sentcontent> at org.languagetool.JLanguageTool$TextCheckCallable.getOtherRuleMatches(JLanguageTool.java:1993) at org.languagetool.JLanguageTool$TextCheckCallable.call(JLanguageTool.java:1862) at org.languagetool.MultiThreadedJLanguageTool.lambda$null$1(MultiThreadedJLanguageTool.java:200) at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(Unknown Source) at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) Caused by: java.lang.RuntimeException: Could not create hunspell instance. Please note that LanguageTool supports only 64-bit platforms (Linux, Windows, Mac) and that it requires a 64-bit JVM (Java). at org.languagetool.rules.spelling.hunspell.DumontsHunspellDictionary.<init>(DumontsHunspellDictionary.java:35) at org.languagetool.rules.spelling.hunspell.Hunspell.getDictionary(Hunspell.java:46) at org.languagetool.rules.spelling.hunspell.HunspellRule.init(HunspellRule.java:584) at org.languagetool.rules.de.GermanSpellerRule.init(GermanSpellerRule.java:1557) at org.languagetool.rules.spelling.hunspell.HunspellRule.ensureInitialized(HunspellRule.java:558) at org.languagetool.rules.spelling.hunspell.HunspellRule.isMisspelled(HunspellRule.java:490) at org.languagetool.rules.de.GermanSpellerRule.isMisspelled(GermanSpellerRule.java:1927) at org.languagetool.rules.de.CaseRule.potentiallyAddUppercaseMatch(CaseRule.java:1015) at org.languagetool.rules.de.CaseRule.match(CaseRule.java:880) at org.languagetool.JLanguageTool.checkAnalyzedSentence(JLanguageTool.java:1370) at org.languagetool.JLanguageTool.access$1500(JLanguageTool.java:74) at org.languagetool.JLanguageTool$TextCheckCallable.getOtherRuleMatches(JLanguageTool.java:1950) ... 7 more Caused by: java.lang.UnsatisfiedLinkError: Error looking up function 'Hunspell_add_dic': Die angegebene Prozedur wurde nicht gefunden. at com.sun.jna.Function.<init>(Function.java:252) at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:604) at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:580) at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:566) at com.sun.jna.Native.register(Native.java:1904) at dumonts.hunspell.bindings.HunspellLibrary.<clinit>(HunspellLibrary.java:18) at dumonts.hunspell.Hunspell.<init>(Hunspell.java:21) at org.languagetool.rules.spelling.hunspell.DumontsHunspellDictionary.<init>(DumontsHunspellDictionary.java:33) ... 18 more Code:
{ "disabledRules": "GERMAN_SPELLER_RULE,GERMAN_WORD_REPEAT_BEGINNING_RULE,WHITESPACE_RULE,COMMA_PARENTHESIS_WHITESPACE,SENTENCE_WHITESPACE", "last_time_checked": "2022-08-13 17:18:09.623229", "update_check": true, "allFiles": false, "clipboard_copy": true, "ltPath": "E:/Plugins/Sigil/LanguageTool-6.1-SNAPSHOT/languagetool-commandline.jar" } |
01-30-2023, 10:54 AM | #87 |
Sigil Developer
Posts: 7,655
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Without seeing the entire error message with no lines skipped, it is had to know what the very first exception actually was and what it said before it rippled and created multiple exceptions.
One thing to explore might be hunspell: java.lang.RuntimeException: Could not create hunspell instance. Please note that LanguageTool supports only 64-bit platforms (Linux, Windows, Mac) and that it requires a 64-bit JVM (Java). Caused by: java.lang.UnsatisfiedLinkError: Error looking up function 'Hunspell_add_dic': Die angegebene Prozedur wurde nicht gefunden. It seems to needs hunspell (64 bit version only to match the jvm version) but can not find it. Sigil comes with its own hunspell.dll (if built that way). Are you using a 64 bit version of Sigil? Do you have a 64 bit version of hunspell? Last edited by KevinH; 01-30-2023 at 11:00 AM. |
01-30-2023, 11:17 AM | #88 |
Sigil Developer
Posts: 7,655
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Okay, I looked closer at newer versions of Hunspell than what comes in Sigil and they have added a new C wrapper call to the hunspell.h interface called Hunspell_add_dic.
The newer version of the language tool is looking for that specifically but it does not exist in the older internal hunspell dictionary that comes with Sigil. I will add that extra wrapper call to our hunspell.h (the underlying C++ version already exists) and/or try to update the version of hunspell that is built into Sigil. Your best bet until that time might be to download and install an official hunspell (recent version) dll and use it to replace the one in the Sigil directory (or build it youself) or use an earlier version of language tool that does not use that specific C call for hunspell. Hope this explains things. |
01-30-2023, 01:04 PM | #89 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
I tested it with the following well-known nonsense English sentence: Code:
<body> <p>I Can Has Cheezburger?</p> </body> Spoiler:
LanguageTool also worked fine with random English and Italian books. However, when I checked content0004.xhtml in Leonatus's latest German MR upload (Fogazzaro, Antonio: Kleine moderne Welt [German] V.1 29.01.2023) I got the following error message: Spoiler:
@Leonatus Unfortunately, there's nothing I can do about this. You'll need to downgrade LT 6.0 to LT 5.9 until this bug has been fixed. You might want to contact the German lead developer send him content0004.xhtml and the above error message and ask him to fix this bug. http://www.danielnaber.de/ Last edited by Doitsu; 01-30-2023 at 01:11 PM. |
|
01-30-2023, 02:18 PM | #90 |
Sigil Developer
Posts: 7,655
Karma: 5433388
Join Date: Nov 2009
Device: many
|
That error message indicates that the jar uses its C interface to call into the hunspell (much like python can call into hunspell) to add additional dictionaries (in this case an extra German one) but the Sigil supplied hunspell.dll does not have that symbol defined.
On Linux, you are probably using a newer external hunspell but on Windows and macOS my bet is that jar will find the Sigil supplied hunspll dll and thus fail to load with this error message taken from your output above. java.lang.UnsatisfiedLinkError: Error looking up function 'Hunspell_add_dic': The specified procedure could not be found. That specific symbol only exists in newer hunspell dlls not the one supplied with Sigil. Update: since Sigil hunspell was getting old (over 7 years old) DiapDealer and I decided to update to hunspell 1.7.2 (the latest) in Sigil master which should at least make this missing symbol issue go away when it is released for Windows and macOS folks. Linux users have long been using the updated version in most cases based on what their distribution offers. Last edited by KevinH; 01-30-2023 at 03:40 PM. Reason: updated |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What does 'Well-Formed Check EPUB' actually check? | bookman156 | Sigil | 21 | 03-20-2016 06:31 PM |
Grammar issues (again).... | mukoan | Writers' Corner | 25 | 06-28-2013 02:26 PM |
Trusting Words grammar check? | jhempel24 | Writers' Corner | 23 | 01-30-2013 02:52 PM |
Are DRM books with check in/check out allowed? | i8abug | Library Management | 4 | 05-31-2012 02:27 PM |
Seriously thoughtful English (or US) grammar | Sweetpea | Lounge | 26 | 10-21-2011 10:17 PM |