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

Pre-commit hooks fail with older version GLIBC #39

Closed
WeilerP opened this issue Feb 14, 2023 · 0 comments · Fixed by #40
Closed

Pre-commit hooks fail with older version GLIBC #39

WeilerP opened this issue Feb 14, 2023 · 0 comments · Fixed by #40
Labels
bug Something isn't working

Comments

@WeilerP
Copy link
Owner

WeilerP commented Feb 14, 2023

Description

Newer versions of node do not work on systems that have an older version of GLIBC. See e.g. scverse/cookiecutter-scverse#143 and jupyterlab/jupyterlab#12675.

pre-commit run --all-files  
Error output
[INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node', '/.cache/pre-commit/repo8ca0hksv/node_env-default/bin/npm', 'install', '--dev', '--prod', '--ignore-prepublish', '--no-progress', '--no-save')
return code: 1
stdout: (none)
stderr:
    /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node)
    /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node)
    /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node)
    /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node)
    /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node)
    /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node)

Versions

Versions
cfgv-3.3.1 distlib-0.3.6 filelock-3.9.0 identify-2.5.18 nodeenv-1.7.0 platformdirs-3.0.0 pre-commit-3.0.4 pyyaml-6.0 virtualenv-20.19.0
@WeilerP WeilerP added the bug Something isn't working label Feb 14, 2023
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

Successfully merging a pull request may close this issue.

1 participant