-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception occurs on Ubuntu 20.04 #19
Comments
Can you run the command below and add the output to this issue |
I cannot reproduce this issue with Ubuntu on Windows. But you can retry with the latest version (v1.4.0), it has an improved linux support and error logging, by now you should have a more descriptive message than "Exception has been thrown by the target of an invocation". |
Trying with v1.4.0 gives this output: $ dotnet PgsToSrt.dll --input test2.sup --output test2.srt --tesseractlanguage eng 2021/03/05 13:19:40.603|INFO|Detected tesseract language data for language 'eng'. Checking the current GLIBC version:
|
Ok, it's not working because you installed dotnet 5 through Snap and libtesseract with apt (or another 'non-snap' package manager). Unfortunatly that's leading to a situation where this version of dotnet 5 is depending on Snap 'core18' (ie. Ubuntu 18), but libtessract4 is compiled to work on Ubuntu 20 (your Ubuntu installed version). I may create a Snap version of PgsToStr in the future but the quick fix for now is to install dotnet 5 with apt. https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#2004- |
Thanks for the info. |
$ dotnet PgsToSrt.dll --input test.sup --output test.srt --tesseractlanguage eng
PgsToSrt 1.3.0.0
2021/01/31 13:38:00.145|INFO|Detected tesseract language data for language 'eng'.
2021/01/31 13:38:00.180|INFO|Starting OCR for 285 items...
2021/01/31 13:38:00.228|ERROR|Error: Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Tncl.NativeLoader.NativeInstance.CreateInstance(NativeLoader loader, Type interfaceType)
at PgsToSrt.TesseractApi.Initialize()
at PgsOcr.DoOcr() Exception has been thrown by the target of an invocation.
I am using:
$ ldconfig -p -v | grep libdl
libdl.so.2 (libc6,x86-64, OS ABI: Linux 3.2.0) => /lib/x86_64-linux-gnu/libdl.so.2
libdl.so.2 (libc6, OS ABI: Linux 3.2.0) => /lib/i386-linux-gnu/libdl.so.2
libdl.so (libc6,x86-64, OS ABI: Linux 3.2.0) => /lib/x86_64-linux-gnu/libdl.so
Simiar to issue #6, caused by the missing libtesseract3 package
The text was updated successfully, but these errors were encountered: