Estou rodando o projeto no Wsl2.
Não consigo fazer o build do projeto da api. Ao rodar o comando docker-compose build o seguinte erro é retornado:
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
sys.argv ['/tmp/pip-install-s55aynx6/ruamel-yaml-clib_902331c034e0483997c51a1c2aac1188/setup.py', 'bdist_wheel', '-d', '/tmp/pip-wheel-20lpktiu']
test compiling /tmp/tmp_ruamel_8vy24bdj/test_ruamel_yaml.c -> test_ruamel_yaml OK
/usr/local/lib/python3.11/site-packages/setuptools/dist.py:286: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated, consider using implicit namespaces instead (PEP 420).
warnings.warn(msg, SetuptoolsDeprecationWarning)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-311
creating build/lib.linux-x86_64-cpython-311/ruamel
copying .ruamel/__init__.py -> build/lib.linux-x86_64-cpython-311/ruamel
creating build/lib.linux-x86_64-cpython-311/ruamel/yaml
copying .ruamel/yaml/__init__.py -> build/lib.linux-x86_64-cpython-311/ruamel/yaml
creating build/lib.linux-x86_64-cpython-311/ruamel/yaml/clib
copying ./__init__.py -> build/lib.linux-x86_64-cpython-311/ruamel/yaml/clib
copying ./LICENSE -> build/lib.linux-x86_64-cpython-311/ruamel/yaml/clib
running build_ext
building '_ruamel_yaml' extension
creating build/temp.linux-x86_64-cpython-311
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.11 -c _ruamel_yaml.c -o build/temp.linux-x86_64-cpython-311/_ruamel_yaml.o
_ruamel_yaml.c:198:12: fatal error: longintrepr.h: No such file or directory
198 | #include "longintrepr.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ruamel.yaml.clib