facebookresearch / seamless_communication

Foundational Models for State-of-the-Art Speech and Text Translation
Other
10.93k stars 1.06k forks source link

stdlib.h, error: command '/usr/bin/x86_64-solus-linux-gcc' failed with exit code 1 #489

Closed FAb7D closed 4 months ago

FAb7D commented 4 months ago

Solus KDE with NVIDIA-SMI 550.90.07 Driver Version: 550.90.07 CUDA Version: 12.4; Phyton 3.11 ;using venv. By issuing the following commands:

python3 -m venv venv
source venv/bin/activate
pip3 install fairseq2
pip3 install pydub sentencepiece
pip3 install git+https://github.com/facebookresearch/seamless_communication.git

I get:

...................
Using cached pyflakes-3.2.0-py2.py3-none-any.whl (62 kB)
Building wheels for collected packages: seamless-communication, bitarray
  Building wheel for seamless-communication (pyproject.toml) ... done
  Created wheel for seamless-communication: filename=seamless_communication-1.0.0-py3-none-any.whl size=219889 sha256=d9c0e79e3eeacf440691bf21342b45583bc2e1d7d49cd0b090b66fb7e0229623
  Stored in directory: /tmp/pip-ephem-wheel-cache-p8pqes46/wheels/bd/73/33/e547dc21938a8b3cab97382b7a22a547cdc68b219225b54758
  Building wheel for bitarray (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [27 lines of output]
      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/bitarray
      copying bitarray/__init__.py -> build/lib.linux-x86_64-cpython-311/bitarray
      copying bitarray/test_bitarray.py -> build/lib.linux-x86_64-cpython-311/bitarray
      copying bitarray/test_util.py -> build/lib.linux-x86_64-cpython-311/bitarray
      copying bitarray/util.py -> build/lib.linux-x86_64-cpython-311/bitarray
      copying bitarray/__init__.pyi -> build/lib.linux-x86_64-cpython-311/bitarray
      copying bitarray/util.pyi -> build/lib.linux-x86_64-cpython-311/bitarray
      copying bitarray/py.typed -> build/lib.linux-x86_64-cpython-311/bitarray
      copying bitarray/bitarray.h -> build/lib.linux-x86_64-cpython-311/bitarray
      copying bitarray/pythoncapi_compat.h -> build/lib.linux-x86_64-cpython-311/bitarray
      copying bitarray/test_data.pickle -> build/lib.linux-x86_64-cpython-311/bitarray
      running build_ext
      building 'bitarray._bitarray' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/bitarray
      x86_64-solus-linux-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -mtune=generic -march=x86-64 -g2 -pipe -fPIC -fno-plt -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT -fno-semantic-interposition -O3 -falign-functions=32 -I/usr/include -mtune=generic -march=x86-64 -g2 -pipe -fPIC -fno-plt -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT -fno-semantic-interposition -O3 -falign-functions=32 -fPIC -I/home/fabio/Programmi/seamless_communication/venv/include -I/usr/include/python3.11 -c bitarray/_bitarray.c -o build/temp.linux-x86_64-cpython-311/bitarray/_bitarray.o
      In file included from bitarray/_bitarray.c:12:
      /usr/include/python3.11/Python.h:23:12: fatal error: stdlib.h: File o directory non esistente
         23 | #  include <stdlib.h>
            |            ^~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-solus-linux-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 bitarray
  Running setup.py clean for bitarray
Successfully built seamless-communication
Failed to build bitarray
ERROR: Could not build wheels for bitarray, which is required to install pyproject.toml-based projects

Here are some other details if needed:

(venv) f... ~/Programmi/seamless_communication $ pip3 show torch
Name: torch
Version: 2.2.2
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
Home-page: https://pytorch.org/
Author: PyTorch Team
Author-email: packages@pytorch.org
License: BSD-3
Location: /home/../Programmi/seamless_communication/venv/lib/python3.11/site-packages
Requires: filelock, fsspec, jinja2, networkx, nvidia-cublas-cu12, nvidia-cuda-cupti-cu12, nvidia-cuda-nvrtc-cu12, nvidia-cuda-runtime-cu12, nvidia-cudnn-cu12, nvidia-cufft-cu12, nvidia-curand-cu12, nvidia-cusolver-cu12, nvidia-cusparse-cu12, nvidia-nccl-cu12, nvidia-nvtx-cu12, sympy, triton, typing-extensions
Required-by: fairseq2, fairseq2n

(venv) f... ~/Programmi/seamless_communication $ pip3 show fairseq2
Name: fairseq2
Version: 0.2.1
Summary: FAIR Sequence Modeling Toolkit
Home-page: https://github.com/facebookresearch/fairseq2
Author: Fundamental AI Research (FAIR) at Meta
Author-email: 
License: MIT
Location: /home/..../Programmi/seamless_communication/venv/lib/python3.11/site-packages
Requires: fairseq2n, jiwer, numpy, overrides, packaging, pyyaml, sacrebleu, torch, torcheval, tqdm
Required-by: 

(venv) f... ~/Programmi/seamless_communication $ pip3 show fairseq2n
Name: fairseq2n
Version: 0.2.1
Summary: FAIR Sequence Modeling Toolkit (Native)
Home-page: https://github.com/facebookresearch/fairseq2
Author: Fundamental AI Research (FAIR) at Meta
Author-email: 
License: MIT
Location: /home/.../Programmi/seamless_communication/venv/lib/python3.11/site-packages
Requires: tbb, torch
Required-by: fairseq2
FAb7D commented 4 months ago

Resolved! We needed the solus linux-headers package!