js-beautify icon indicating copy to clipboard operation
js-beautify copied to clipboard

ERROR: Could not build wheels for jsbeautifier

Open frost19k opened this issue 2 years ago • 0 comments

I'm trying to install jsbeautifier in kalilinux/kali-last-release Docker container. The install fails with RecursionError: maximum recursion depth exceeded - full output below.

This doesn't seem to be a jsbeautifier specific issue since docker run -it --rm python:3.10-slim pip3 install jsbeautifier runs successfully.

I'm hoping someone could shed some light on why this might be happening or point me in the direction of a solution.

FROM kalilinux/kali-last-release:latest AS base
RUN apt update && apt install -y build-essential python3 python3-dev python3-pip python3-pip-whl
RUN pip install jsbeautifier
ENTRYPOINT [ "js-beautify" ]
❯ docker build -t jsbeautifier:test -f Dockerfile .
[...]
#6 7.834         File "/usr/lib/python3.10/_distutils_system_mod.py", line 125, in _inject_headers
#6 7.834           scheme['headers'] = orig_install._load_schemes()['posix_prefix']['headers']
#6 7.834         File "/usr/lib/python3.10/_distutils_system_mod.py", line 137, in wrapped_load_schemes
#6 7.834           _inject_headers(name, scheme)
#6 7.834         File "/usr/lib/python3.10/_distutils_system_mod.py", line 125, in _inject_headers
#6 7.834           scheme['headers'] = orig_install._load_schemes()['posix_prefix']['headers']
#6 7.834         File "/usr/lib/python3.10/_distutils_system_mod.py", line 137, in wrapped_load_schemes
#6 7.834           _inject_headers(name, scheme)
#6 7.834         File "/usr/lib/python3.10/_distutils_system_mod.py", line 125, in _inject_headers
#6 7.834           scheme['headers'] = orig_install._load_schemes()['posix_prefix']['headers']
#6 7.834         File "/usr/lib/python3.10/_distutils_system_mod.py", line 135, in wrapped_load_schemes
#6 7.834           schemes = _load_schemes()
#6 7.834         File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/install.py", line 103, in _load_schemes
#6 7.834           sysconfig_schemes = _load_sysconfig_schemes() or {}
#6 7.834         File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/install.py", line 91, in _load_sysconfig_schemes
#6 7.834           with contextlib.suppress(AttributeError):
#6 7.834       RecursionError: maximum recursion depth exceeded
#6 7.834       [end of output]
#6 7.834   
#6 7.834   note: This error originates from a subprocess, and is likely not a problem with pip.
#6 7.835   ERROR: Failed building wheel for jsbeautifier
#6 7.836 Failed to build jsbeautifier
#6 7.836 ERROR: Could not build wheels for jsbeautifier, which is required to install pyproject.toml-based projects
------
executor failed running [/bin/sh -c pip install jsbeautifier]: exit code: 1

The full (>2k lines) output can be viewed here.

frost19k avatar May 14 '22 08:05 frost19k