Closed sandeep-krutrim closed 2 weeks ago
Pin the pip version to 24.0 and try. You can change below line to python3 -m pip install --upgrade pip==24.0
https://github.com/AI4Bharat/IndicTrans2/blob/f897168d81b362c59207dc1fa2cf2c77041230b7/install.sh#L15
Getting this error when using install.sh
`Successfully installed absl-py-2.1.0 aiofiles-23.2.1 altair-5.3.0 annotated-types-0.7.0 anyio-4.4.0 astunparse-1.6.3 attrs-23.2.0 click-7.1.2 colorama-0.4.6 contourpy-1.2.1 ctranslate2-3.9.0 cycler-0.12.1 dill-0.3.8 docopt-0.6.2 exceptiongroup-1.2.1 fastapi-0.110.3 ffmpy-0.3.2 flatbuffers-24.3.25 fonttools-4.53.0 future-1.0.0 gast-0.6.0 google-pasta-0.2.0 gradio-4.26.0 gradio-client-0.15.1 grpcio-1.64.1 h11-0.14.0 h5py-3.11.0 httpcore-1.0.5 httpx-0.27.0 huggingface-hub-0.23.4 importlib-resources-6.4.0 joblib-1.4.2 jsonschema-4.22.0 jsonschema-specifications-2023.12.1 keras-3.4.1 kiwisolver-1.4.5 libclang-18.1.1 lxml-5.2.2 markdown-3.6 markdown-it-py-3.0.0 matplotlib-3.9.0 mdurl-0.1.2 ml-dtypes-0.3.2 mock-5.1.0 mosestokenizer-1.2.1 namex-0.0.8 nltk-3.8.1 numpy-1.26.4 openfile-0.0.7 opt-einsum-3.3.0 optree-0.11.0 orjson-3.10.6 pillow-10.4.0 portalocker-2.10.0 promise-2.3 protobuf-3.20.3 pydantic-2.8.2 pydantic-core-2.20.1 pydub-0.25.1 pyparsing-3.1.2 python-multipart-0.0.9 pyyaml-6.0.1 referencing-0.35.1 regex-2024.5.15 rich-13.7.1 rpds-py-0.18.1 ruff-0.5.0 sacrebleu-2.3.1 sacremoses-0.1.1 semantic-version-2.10.0 shellingham-1.5.4 sniffio-1.3.1 starlette-0.37.2 tabulate-0.9.0 tensorboard-2.16.2 tensorboard-data-server-0.7.2 tensorflow-2.16.2 tensorflow-addons-0.23.0 tensorflow-datasets-3.2.1 tensorflow-io-gcs-filesystem-0.37.1 tensorflow-metadata-1.15.0 termcolor-2.4.0 tf2crf-0.1.33 tokenizers-0.13.3 tomlkit-0.12.0 toolwrapper-2.1.0 toolz-0.12.1 tqdm-4.66.4 transformers-4.28.1 typeguard-2.13.3 typer-0.10.0 uctools-1.3.0 urduhack-1.1.1 uvicorn-0.30.1 websockets-11.0.3 werkzeug-3.0.3 wrapt-1.16.0 2024-07-04 06:04:54.259356: I external/local_tsl/tsl/cuda/cudart_stub.cc:32] Could not find cuda drivers on your machine, GPU will not be used. 2024-07-04 06:04:54.261982: I external/local_tsl/tsl/cuda/cudart_stub.cc:32] Could not find cuda drivers on your machine, GPU will not be used. 2024-07-04 06:04:54.272369: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:479] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered 2024-07-04 06:04:54.293163: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:10575] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered 2024-07-04 06:04:54.293203: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1442] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered 2024-07-04 06:04:54.305759: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2024-07-04 06:04:54.937893: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT /home/sandeep.pandey/miniconda3/envs/itv2/lib/python3.9/site-packages/tensorflow_addons/utils/tfa_eol_msg.py:23: UserWarning:
TensorFlow Addons (TFA) has ended development and introduction of new features. TFA has entered a minimal maintenance and release mode until a planned end of life in May 2024. Please modify downstream libraries to take dependencies from other repositories in our TensorFlow community (e.g. Keras, Keras-CV, and Keras-NLP).
For more information see: https://github.com/tensorflow/addons/issues/2807
warnings.warn( /home/sandeep.pandey/miniconda3/envs/itv2/lib/python3.9/site-packages/tensorflow_addons/utils/ensure_tf_install.py:53: UserWarning: Tensorflow Addons supports using Python ops for all Tensorflow versions above or equal to 2.13.0 and strictly below 2.16.0 (nightly versions are not supported). The versions of TensorFlow you are currently using is 2.16.2 and is not supported. Some things might work, some things might not. If you were to encounter a bug, do not file an issue. If you want to make sure you're using a tested and supported configuration, either change the TensorFlow version or the TensorFlow Addons's version. You can find the compatibility matrix in TensorFlow Addon's readme: https://github.com/tensorflow/addons warnings.warn( Traceback (most recent call last): File "", line 1, in
File "/home/sandeep.pandey/miniconda3/envs/itv2/lib/python3.9/site-packages/urduhack/init.py", line 6, in
from .pipeline import Pipeline
File "/home/sandeep.pandey/miniconda3/envs/itv2/lib/python3.9/site-packages/urduhack/pipeline/init.py", line 4, in
from .core import Pipeline
File "/home/sandeep.pandey/miniconda3/envs/itv2/lib/python3.9/site-packages/urduhack/pipeline/core.py", line 7, in
from .parsers.ner import NerParser
File "/home/sandeep.pandey/miniconda3/envs/itv2/lib/python3.9/site-packages/urduhack/pipeline/parsers/ner.py", line 4, in
from urduhack.models.ner import predict_ner
File "/home/sandeep.pandey/miniconda3/envs/itv2/lib/python3.9/site-packages/urduhack/models/ner/init.py", line 4, in
from .predict import predict_ner
File "/home/sandeep.pandey/miniconda3/envs/itv2/lib/python3.9/site-packages/urduhack/models/ner/predict.py", line 11, in
from urduhack.models.ner.model import _bi_lstm_crf_model
File "/home/sandeep.pandey/miniconda3/envs/itv2/lib/python3.9/site-packages/urduhack/models/ner/model.py", line 5, in
from tf2crf import CRF
File "/home/sandeep.pandey/miniconda3/envs/itv2/lib/python3.9/site-packages/tf2crf/init.py", line 2, in
from .crf import CRF
File "/home/sandeep.pandey/miniconda3/envs/itv2/lib/python3.9/site-packages/tf2crf/crf.py", line 2, in
import tensorflow_addons as tfa
File "/home/sandeep.pandey/miniconda3/envs/itv2/lib/python3.9/site-packages/tensorflow_addons/init.py", line 23, in
from tensorflow_addons import activations
File "/home/sandeep.pandey/miniconda3/envs/itv2/lib/python3.9/site-packages/tensorflow_addons/activations/init.py", line 17, in
from tensorflow_addons.activations.gelu import gelu
File "/home/sandeep.pandey/miniconda3/envs/itv2/lib/python3.9/site-packages/tensorflow_addons/activations/gelu.py", line 19, in
from tensorflow_addons.utils.types import TensorLike
File "/home/sandeep.pandey/miniconda3/envs/itv2/lib/python3.9/site-packages/tensorflow_addons/utils/types.py", line 29, in
from keras.src.engine import keras_tensor
ModuleNotFoundError: No module named 'keras.src.engine'
[nltk_data] Downloading package punkt to
[nltk_data] /home/sandeep.pandey/nltk_data...
[nltk_data] Package punkt is already up-to-date!
Collecting sentencepiece
Using cached sentencepiece-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (7.7 kB)
Using cached sentencepiece-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)
Installing collected packages: sentencepiece
Successfully installed sentencepiece-0.2.0
fatal: destination path 'fairseq' already exists and is not an empty directory.
Processing /home/sandeep.pandey/local_setup/new/IndicEmbeddings/llm2vec_modified/translation/new/IndicTrans2/fairseq
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting cffi (from fairseq==0.12.2)
Using cached cffi-1.16.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting cython (from fairseq==0.12.2)
Using cached Cython-3.0.10-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.2 kB)
Collecting hydra-core<1.1,>=1.0.7 (from fairseq==0.12.2)
Using cached hydra_core-1.0.7-py3-none-any.whl.metadata (3.7 kB)
Collecting omegaconf<2.1 (from fairseq==0.12.2)
Using cached omegaconf-2.0.6-py3-none-any.whl.metadata (3.0 kB)
WARNING: Ignoring version 2.0.6 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/d0/eb/9d63ce09dd8aa85767c65668d5414958ea29648a0eec80a4a7d311ec2684/omegaconf-2.0.6-py3-none-any.whl (from fairseq==0.12.2) has invalid metadata: . suffix can only be used with
==
or!=
operators PyYAML (>=5.1.)