Skip to content
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

The Conda package doesn't work on CentOS 7 and Ubuntu 18.04 #585

Closed
bryant1410 opened this issue Jan 7, 2021 · 15 comments
Closed

The Conda package doesn't work on CentOS 7 and Ubuntu 18.04 #585

bryant1410 opened this issue Jan 7, 2021 · 15 comments

Comments

@bryant1410
Copy link

bryant1410 commented Jan 7, 2021

import tokenizers doesn't work on CentOS 7 (and RHEL 7), because it has glibc 2.17, while the Conda package (at least for Python 3.8) was compiled against a newer version (the error says version 'GLIBC_2.18' not found).

I believe CentOS and RHEL 7 are both still popular, though I can't back up this claim (I can't find a link). My university cluster uses it at least. And note version 7 is the latest CentOS version with long-term support.

It does work from PyPI's version, so I just use that one. However, it'd be good it worked from Conda. So it seems it's related to the glibc version specified by Conda, while the one provided by ubuntu-latest (Ubuntu 18.04 as of today, IIUC) seems to work fine. Conda docs say they do provide their own glibc version. Because there isn't such a libc package in Conda, they provide a solution via virtual packages. So it seems that all that's needed is to set an env var like:

CONDA_OVERRIDE_GLIBC=2.17

(note Rust dynamically links the compiled binary to the available glibc version at build time).

Could you take a look at it? Not sure how it can be tested w/o pushing a release.

Related issues (some people also mention CentOS 7):

Update: it's got a bit worse, as now it requires a newer GLIBC version:

/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found

It's not working for me on Ubuntu 18.04 (GLIBC 2.27).

What this article details may be the solution for it: Building Rust binaries in CI that work with older GLIBC

@freddycct
Copy link

I face the same issue.

@Rictus
Copy link

Rictus commented Feb 17, 2021

I am facing the same issue.

@harrisonbay
Copy link

harrisonbay commented Mar 31, 2021

Yep, same issue here as well on CentOS 7.9 (used in my university's cluster)

@AmenRa
Copy link

AmenRa commented Apr 6, 2021

Same issue on Ubuntu 18.04.5 LTS.
Ubuntu 18.04's latest GLIBC version is 2.27.
Conda-installed tokenizers (through transformers installation) version 0.10.2 requires GLIBC 2.29.

@rubencart
Copy link

Same thing as @AmenRa

@e-yi
Copy link

e-yi commented Apr 16, 2021

Same issue. Had to uninstall tokenizers temporarily.

@AmenRa
Copy link

AmenRa commented Apr 16, 2021

Same issue on Ubuntu 18.04.5 LTS.
Ubuntu 18.04's latest GLIBC version is 2.27.
Conda-installed tokenizers (through transformers installation) version 0.10.2 requires GLIBC 2.29.

As a workaround, I've installed the previous tokenizers version, and everything works fine now:

conda install -c huggingface tokenizers=0.10.1 transformers=4.4.2

@zack-kimble
Copy link

zack-kimble commented Apr 20, 2021

Same issue for me on Ubuntu 18.04. I just changed to pip installation, which seems to be working.

@Leojc
Copy link

Leojc commented May 19, 2021

use pip instead of conda:

conda uninstall tokenizers, transformers
pip install transformers

@bryant1410
Copy link
Author

This article explains how to fix it, if anybody wants to go ahead: https://kobzol.github.io/rust/ci/2021/05/07/building-rust-binaries-in-ci-that-work-with-older-glibc.html

@bryant1410 bryant1410 changed the title The latest Conda package doesn't work on CentOS 7 The latest Conda package doesn't work on CentOS 7 and Ubuntu 18.04 Jul 8, 2021
@bryant1410 bryant1410 changed the title The latest Conda package doesn't work on CentOS 7 and Ubuntu 18.04 The Conda package doesn't work on CentOS 7 and Ubuntu 18.04 Jul 8, 2021
n1t0 added a commit that referenced this issue Sep 8, 2021
@brando90
Copy link

brando90 commented Oct 3, 2022

same issue here: huggingface/transformers#15062

@Narsil
Copy link
Collaborator

Narsil commented Oct 5, 2022

Hi @brando90 do you mind creating a new issue with exactly what you are trying and what's failing and what you expect ?

This issue and the linked one seem like two very different kind of issues.

Cheers.

@brando90
Copy link

brando90 commented Oct 5, 2022 via email

@Narsil
Copy link
Collaborator

Narsil commented Oct 6, 2022

Closing this

@Narsil Narsil closed this as completed Oct 6, 2022
@bryant1410
Copy link
Author

@Narsil is this really fixed? When? How? Can't test it right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests