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

python: GLIBC_2.36' not found when python language is enabled #819

Closed
imincik opened this issue Sep 15, 2023 · 4 comments
Closed

python: GLIBC_2.36' not found when python language is enabled #819

imincik opened this issue Sep 15, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@imincik
Copy link
Contributor

imincik commented Sep 15, 2023

Describe the bug
When I enable Python language in devenv.nix file and try to enter shell environment it fails with following error:

/nix/store/iw1vmh509hcbby8dbpsaanbri4zsq7dj-python3-3.10.10/bin/python: /nix/store/76l4v99sk83ylfwkz8wmwrm4s8h73rhd-glibc-2.35-224/lib/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/fcdkcrsrg289h6k33fwmfkhsdj55r6yr-libxcrypt-4.4.36/lib/libcrypt.so.2)

To reproduce
Please provide an Short, Self Contained, Correct (Compilable), Example by creating a gist using devenv.nix, devenv.yaml, and optionally devenv.lock.

Make sure to include full logs and what you expected to happen.

  • Create following devenv configuration:

devenv.yaml

inputs:
  nixpkgs:
    url: github:NixOS/nixpkgs/nixpkgs-unstable

devenv.nix

{ pkgs, ... }:

{
  languages.python.enable = true;
}
  • Try to enter devenv shell
devenv shell
/nix/store/iw1vmh509hcbby8dbpsaanbri4zsq7dj-python3-3.10.10/bin/python: /nix/store/76l4v99sk83ylfwkz8wmwrm4s8h73rhd-glibc-2.35-224/lib/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/fcdkcrsrg289h6k33fwmfkhsdj55r6yr-libxcrypt-4.4.36/lib/libcrypt.so.2)

Version

Paste the output of $ devenv version here.

devenv: 0.6.3
@imincik imincik added the bug Something isn't working label Sep 15, 2023
@bobvanderlinden
Copy link
Contributor

This is probably related to #749. The problems is that LD_LIBRARY_PATH is set to paths in devenvs packages. That includes glibc, so any application will be dynamically linked against the glibc from devenv. Many libraries (including libraries that devenv itself indirectly depends on) are not compatible with older/newer glibc versions.

#745 holds a solution to this problem.

@imincik
Copy link
Contributor Author

imincik commented Sep 17, 2023

Thank you, looking forward for #745

@mcdonc
Copy link
Contributor

mcdonc commented Jan 10, 2024

I think this is the same bug as #555. I left a comment in that issue at #555 (comment) explaining the circumstances that will fix this bug.

@domenkozar
Copy link
Member

I believe this is fixed in 1.0.1, please reopen if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants