Comments (6)
I can make a symlink to fix this, but it feels dirty. I'm wondering which systems does this work on?
I guess it works too. The ci pipeline uses a debian base (ubuntu) but it works on a lots of distos including arch. I guess your distro has its own way of packaging libs.
Could
stt
check forlibbz2.so.1
instead, or after checking forlibbz2.so.1.0
I don't know the details of the implement. but I think it is reasonable to fallback to libbz2.so.1
if libbz2.so.1.0
is not found instead of spiting ImportError("libbz2.so.1.0: cannot open shared object file: No such file or directory")
...
For what its worth, I think it's KenLM that uses this lib so it probably means that you have not built and installed kenlm properly in your $PATH
according to your disto standards.
from stt.
Hi @wasertech I installed stt
in a virtual environment from pip so I haven't installed KenLM directly. And I'm on CentOS Stream 8. Here's how I installed stt:
$ python3.9 -V
Python 3.9.14
$ python -m venv /tmp/venv-test
$ source /tmp/venv-test/bin/activate
$ pip install --upgrade pip setuptools wheel
$ pip install stt
I don't fully understand the Python packaging ecosystem, but stt seems to bring its own KenLM via a wheel? I have this in my virtual env:
$ ldd /tmp/venv-test/lib64/python3.9/site-packages/stt/lib/libkenlm.so
linux-vdso.so.1 (0x00007ffd5551d000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f8427170000)
libm.so.6 => /lib64/libm.so.6 (0x00007f8426dee000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f8426bd6000)
libc.so.6 => /lib64/libc.so.6 (0x00007f8426811000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8427505000)
Perhaps this issue belongs on the KenLM issue tracker then, and we can close this one.
from stt.
Perhaps this issue belongs on the KenLM issue tracker then, and we can close this one.
it is not a issue. Your are installing a package (STT) that is built using Debian based distro.
But you are not using a debian based system, you should probably build your binaries according to your distribution.
In other words you should be able to install STT on the system with rpm not using pip.
For example, on arch, I wrote a package to build STT the way arch wants it.
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=stt
It should be the same for CentOS but according to RedHad packaging guidelines.
So when you build KenLM, you can pass the correct links to libs and it should work.
from stt.
To be clear, when you install STT from pip, you are just grabbing the pre-built python bindings. These are built on Ubuntu from libkenlm.so
and libstt.so
. So if one or the other is missing a lib that was present (somewhere in particular) when it was built but is not there anymore (or it has changed location) it will complain this lib is missing.
from stt.
@wasertech I use Arch too BTW (and I also maintain packages on the AUR... but that's irrelevant here).
Anyway, what is the point of providing a pip installable STT if it is only expected to work on Debian-based distros? If there's a notice to this effect in the README and I missed it, then my apologies. Otherwise, in scientific computing many institutes use RHEL / CentOS.
from stt.
Coqui uses a GitHub ci pipeline to build all prebuilt binaries. Including python bindings. For Linux, it uses a stable release of Ubuntu which is based on stable Debian. It also a pretty standard Linux distribution.
i didn’t choose it, it don’t use Ubuntu and I don’t even work at coqui. I’m just telling you that your distribution has not followed the same rules as Debian when providing libs. On arch we use aliases like you did to loosely follow Debian’s way of sharing libs. On arch you can pip install stt and it works like a charm. In your case, since your distro doesn’t make the effort to make thoses aliases you should make them yourself, or follow their way of shipping software thru rpm and tell KenLM where to finds its libs when you build it.
from stt.
Related Issues (20)
- Bug: lm_optimize fails due to check failing. HOT 2
- Bug: Segmentation Fault HOT 1
- Bug: Scorer.fill_dictiomary() Python function throws SWIG exception
- Feature request: Multiple Parallel/Concatenatable Models
- Bug: Android couldn`t find libstt-jni.so
- Feature request: Cancel previous workflow actions
- Feature request: Tensorflow 2.0 compatibility HOT 11
- Feature request: add Typescript @types for the WASM bindings
- Bug: --alphabet required with --force_bytes_output_mode off but not accepted as a CLI option HOT 4
- Update `genrate_scorer_package` error message when not given any `checkpoint` HOT 1
- Bug: Update `Python` inside `Dockerfile.build` HOT 1
- Bug: Illegal Hard Instruction on generate_scorer_package
- Improvment: `NotFoundError`: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for `best_dev_checkpoint` HOT 2
- Bug: "import stt" works in notebook but not in bash command HOT 1
- Feature request: Replace Scorer.KenLM with Scorer.Transform HOT 18
- Bug: Importer `import_librivox.py` can't render absolute path of WAV files in CSV HOT 2
- Bug: Update `set-output` calls for ci pipeline v3 HOT 1
- Upload missing aarch64 and arm32 wheels to PyPi
- Bug: Model zoo seems to be gone HOT 2
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 stt.