Comments (5)
Can you run the command below and add the output to this issue
ldconfig -p -v | grep libdl
from pgstosrt.
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".
from pgstosrt.
Trying with v1.4.0 gives this output:
$ dotnet PgsToSrt.dll --input test2.sup --output test2.srt --tesseractlanguage eng
PgsToSrt 1.4.0.0
2021/03/05 13:19:40.603|INFO|Detected tesseract language data for language 'eng'.
2021/03/05 13:19:40.647|INFO|Starting OCR for 494 items...
2021/03/05 13:19:40.770|ERROR|Failed: Unable to load shared library 'libtesseract.so.4' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: /snap/core18/current/lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /lib/x86_64-linux-gnu/libtesseract.so.4) Unable to load shared library 'libtesseract.so.4' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: /snap/core18/current/lib/x86_64-linux-gnu/libm.so.6: version
GLIBC_2.29' not found (required by /lib/x86_64-linux-gnu/libtesseract.so.4)
Checking the current GLIBC version:
$ ldd --version
ldd (Ubuntu GLIBC 2.31-0ubuntu9.2) 2.31
...
from pgstosrt.
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-
from pgstosrt.
Thanks for the info.
I have installed dotnet with apt as you suggested and the software now runs without a problem.
Great work!
from pgstosrt.
Related Issues (20)
- entrypoint.sh for the docker container cannot handle spaces
- Error using docker HOT 3
- read_params_file: parameter not found: HOT 2
- Question HOT 2
- How to Use with MKS? HOT 1
- Bulk Conversion HOT 2
- 1.4.2 release is missing .NET5 binaries HOT 1
- Linux Docker build fails due to .NET 6 HOT 1
- Can we pack this as a dotnet tool?
- Problem with Ubuntu 23.04 and libtesseract4 HOT 1
- Accept other leptonica's names HOT 1
- Fix OCR errors option ? HOT 5
- Model used for trained data HOT 2
- error NETSDK1129: The 'Publish' target is not supported without specifying a target framework.
- Vosub support?
- Get dotnet error during execution HOT 2
- Update to .NET 5.0
- Update to Tesseract 4 HOT 1
- Update upstream dependencies, consider re-doing your customizations on top of the original code instead. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgstosrt.