speech-to-speech-translation
speech-to-speech-translation copied to clipboard
Installing on Colab fails
Hi, I am trying to run the code in google colab notebook, but an error occurs.
"ERROR: Command errored out with exit status 1: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/content/speech-to-speech-translation/setup.py'"'"'; file='"'"'/content/speech-to-speech-translation/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output."
Do you know how to solve it?
install
!git clone https://github.com/fengpeng-yue/speech-to-speech-translation.git
cd speech-to-speech-translation
!pip install --editable ./
install log
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Obtaining file:///content/speech-to-speech-translation
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... done
Requirement already satisfied: tqdm in /usr/local/lib/python3.7/dist-packages (from fairseq==1.0.0a0+099aa32) (4.64.0)
Requirement already satisfied: numpy in /usr/local/lib/python3.7/dist-packages (from fairseq==1.0.0a0+099aa32) (1.21.6)
Requirement already satisfied: cython in /usr/local/lib/python3.7/dist-packages (from fairseq==1.0.0a0+099aa32) (0.29.30)
Collecting bitarray
Downloading bitarray-2.6.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (235 kB)
|████████████████████████████████| 235 kB 5.1 MB/s
Requirement already satisfied: cffi in /usr/local/lib/python3.7/dist-packages (from fairseq==1.0.0a0+099aa32) (1.15.1)
Collecting hydra-core<1.1,>=1.0.7
Downloading hydra_core-1.0.7-py3-none-any.whl (123 kB)
|████████████████████████████████| 123 kB 66.5 MB/s
Requirement already satisfied: regex in /usr/local/lib/python3.7/dist-packages (from fairseq==1.0.0a0+099aa32) (2022.6.2)
Collecting sacrebleu>=1.4.12
Downloading sacrebleu-2.1.0-py3-none-any.whl (92 kB)
|████████████████████████████████| 92 kB 11.9 MB/s
Requirement already satisfied: torch in /usr/local/lib/python3.7/dist-packages (from fairseq==1.0.0a0+099aa32) (1.12.0+cu113)
Collecting omegaconf<2.1
Downloading omegaconf-2.0.6-py3-none-any.whl (36 kB)
Requirement already satisfied: torchaudio>=0.8.0 in /usr/local/lib/python3.7/dist-packages (from fairseq==1.0.0a0+099aa32) (0.12.0+cu113)
Requirement already satisfied: importlib-resources in /usr/local/lib/python3.7/dist-packages (from hydra-core<1.1,>=1.0.7->fairseq==1.0.0a0+099aa32) (5.8.0)
Collecting antlr4-python3-runtime==4.8
Downloading antlr4-python3-runtime-4.8.tar.gz (112 kB)
|████████████████████████████████| 112 kB 48.3 MB/s
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from omegaconf<2.1->fairseq==1.0.0a0+099aa32) (4.1.1)
Collecting PyYAML>=5.1.*
Downloading PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (596 kB)
|████████████████████████████████| 596 kB 54.2 MB/s
Requirement already satisfied: tabulate>=0.8.9 in /usr/local/lib/python3.7/dist-packages (from sacrebleu>=1.4.12->fairseq==1.0.0a0+099aa32) (0.8.10)
Collecting colorama
Downloading colorama-0.4.5-py2.py3-none-any.whl (16 kB)
Collecting portalocker
Downloading portalocker-2.5.1-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: pycparser in /usr/local/lib/python3.7/dist-packages (from cffi->fairseq==1.0.0a0+099aa32) (2.21)
Requirement already satisfied: zipp>=3.1.0 in /usr/local/lib/python3.7/dist-packages (from importlib-resources->hydra-core<1.1,>=1.0.7->fairseq==1.0.0a0+099aa32) (3.8.1)
Building wheels for collected packages: antlr4-python3-runtime
Building wheel for antlr4-python3-runtime (setup.py) ... done
Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.8-py3-none-any.whl size=141230 sha256=1eb17c1524bf2716e2946adb55e7c15f409003b7510e7d6e61c542ca62140d75
Stored in directory: /root/.cache/pip/wheels/ca/33/b7/336836125fc9bb4ceaa4376d8abca10ca8bc84ddc824baea6c
Successfully built antlr4-python3-runtime
Installing collected packages: PyYAML, portalocker, omegaconf, colorama, antlr4-python3-runtime, sacrebleu, hydra-core, bitarray, fairseq
Attempting uninstall: PyYAML
Found existing installation: PyYAML 3.13
Uninstalling PyYAML-3.13:
Successfully uninstalled PyYAML-3.13
Running setup.py develop for fairseq
ERROR: Command errored out with exit status 1: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/content/speech-to-speech-translation/setup.py'"'"'; __file__='"'"'/content/speech-to-speech-translation/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.