pykaldi / conda-package

1 stars 2 forks source link

cannot use pykaldi from conda: `GLIBC_2.23' not found #1

Closed mmmaat closed 5 years ago

mmmaat commented 5 years ago

Dear pykaldi developers,

I tried to use pykaldi from conda (just having a conda install -c pykaldi pykaldi in a fresh python-3.7 environment, but when trying the example notebook I get this error:

In [1]: from kaldi.util.table import MatrixWriter
ImportError: /lib64/libm.so.6: version `GLIBC_2.23' not found (required by /home/mbernard/.conda/envs/pykaldi/lib/python3.7/site-packages/kaldi/fstext/../lib/libfstscript.so.8)

My system is a centos 7 with glibc 2.17. Note that, when compiled from sources, all is working as expected.

So here is my question: is it possible to change the conda image so that it use a glibc from conda instead of the system one?

Thanks!

vrmpx commented 5 years ago

Thank you for your comment. We started working on improving the coverage of the conda package. Specifically by building the conda package for centos. However this might take a while as it is not a simple task and we (me and @dogancan) are not that familiar with centos. Any tips on how to build from source in centos?

With regard to your question: it sounds possible to either modify the library paths to prioritize conda glibc or re-write the rpaths to use the conda glibc (e.g., by using patchelf). But that may induce unexpected behavior down the line.

mmmaat commented 5 years ago

Ok thank you, I never did any conda package so I can't help you on that hand. But for the compilation on centos, just following https://github.com/pykaldi/pykaldi#from-source is fine.

vrmpx commented 5 years ago

Hey @mmmaat, I just updated the packages in anaconda. These are built in CentOS7.

Could you try them out and see if this issue persists?

You may have to create a new env or update your current installation, make sure you have the ones that end in _6 (e.g.,pykaldi: 0.0.9-py36h7c1a757_6 pykaldi )

mmmaat commented 5 years ago

Thank you, all is working now (I used the latest version suffixed _7).

vrmpx commented 5 years ago

That is great! Thanks for letting me know