Transformers-Tutorials icon indicating copy to clipboard operation
Transformers-Tutorials copied to clipboard

`GLIBC_2.29' not found

Open sz-lcw opened this issue 2 years ago • 2 comments

And after I installed the latest version of the transformers (v4.10.0), I couldn't import LayoutLMv2Processor. the error is shown as follow:

ImportError: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by xxxxx/python3.7/site-packages/tokenizers/tokenizers.cpython-37m-x86_64-linux-gnu.so)

how to fixed this problem? Thank you.

sz-lcw avatar Sep 10 '21 12:09 sz-lcw

Hi,

I just tried this out in Google Colab, it runs fine. Perhaps you need to re-install transformers using pip.

NielsRogge avatar Sep 10 '21 12:09 NielsRogge

Hi,

I just tried this out in Google Colab, it runs fine. Perhaps you need to re-install transformers using pip.

Hi, @NielsRogge ,thanks for your reply. since I using pip to install the previous version of transformers(v4.6.1), it don't have this problem. but the previous version don't have the newest interface, such as LayoutLMv2Processor. So, it seem that the newest version of the transformers (v4.10.0) rely on new version of Glibc? here is others discussion: https://stackoverflow.com/questions/67636846/importerror-when-from-transformers-import-berttokenizer

sz-lcw avatar Sep 13 '21 02:09 sz-lcw