Skip to content

ModuleNotFoundError: No module named 'ai4bharat' #43

Description

@SKB3002

Tried installing !pip install ai4bharat-transliteration

but
Collecting ai4bharat-transliteration
Downloading ai4bharat_transliteration-1.1.3-py3-none-any.whl.metadata (7.1 kB)
Collecting pydload (from ai4bharat-transliteration)
Downloading pydload-1.0.9-py2.py3-none-any.whl.metadata (1.3 kB)
Requirement already satisfied: flask in /usr/local/lib/python3.11/dist-packages (from ai4bharat-transliteration) (3.1.1)
Collecting flask-cors (from ai4bharat-transliteration)
Downloading flask_cors-6.0.1-py3-none-any.whl.metadata (5.3 kB)
Collecting gevent (from ai4bharat-transliteration)
Downloading gevent-25.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (13 kB)
Collecting sacremoses (from ai4bharat-transliteration)
Downloading sacremoses-0.1.1-py3-none-any.whl.metadata (8.3 kB)
Requirement already satisfied: pandas in /usr/local/lib/python3.11/dist-packages (from ai4bharat-transliteration) (2.2.3)
Requirement already satisfied: tqdm in /usr/local/lib/python3.11/dist-packages (from ai4bharat-transliteration) (4.67.1)
Requirement already satisfied: ujson in /usr/local/lib/python3.11/dist-packages (from ai4bharat-transliteration) (5.10.0)
Collecting mock (from ai4bharat-transliteration)
Downloading mock-5.2.0-py3-none-any.whl.metadata (3.1 kB)
Collecting tensorboardX (from ai4bharat-transliteration)
Downloading tensorboardx-2.6.4-py3-none-any.whl.metadata (6.2 kB)
Requirement already satisfied: pyarrow in /usr/local/lib/python3.11/dist-packages (from ai4bharat-transliteration) (19.0.1)
Collecting fairseq (from ai4bharat-transliteration)
Downloading fairseq-0.12.2.tar.gz (9.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.6/9.6 MB 76.9 MB/s eta 0:00:00:00:0100:01
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting urduhack (from ai4bharat-transliteration)
Downloading urduhack-1.1.1-py3-none-any.whl.metadata (7.2 kB)
Collecting indic-nlp-library (from ai4bharat-transliteration)
Downloading indic_nlp_library-0.92-py3-none-any.whl.metadata (5.7 kB)
Requirement already satisfied: cffi in /usr/local/lib/python3.11/dist-packages (from fairseq->ai4bharat-transliteration) (1.17.1)
Requirement already satisfied: cython in /usr/local/lib/python3.11/dist-packages (from fairseq->ai4bharat-transliteration) (3.0.12)
Collecting hydra-core<1.1,>=1.0.7 (from fairseq->ai4bharat-transliteration)
Downloading hydra_core-1.0.7-py3-none-any.whl.metadata (3.7 kB)
Collecting omegaconf<2.1 (from fairseq->ai4bharat-transliteration)
Downloading 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->ai4bharat-transliteration) has invalid metadata: .* suffix can only be used with == or != operators
PyYAML (>=5.1.)
~~~~~~^
Please use pip<24.1 if you need to use this version.
Downloading omegaconf-2.0.5-py3-none-any.whl.metadata (3.0 kB)
WARNING: Ignoring version 2.0.5 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/e5/f6/043b6d255dd6fbf2025110cea35b87f4c5100a181681d8eab496269f0d5b/omegaconf-2.0.5-py3-none-any.whl (from fairseq->ai4bharat-transliteration) has invalid metadata: .
suffix can only be used with == or != operators
PyYAML (>=5.1.)
~~~~~~^
Please use pip<24.1 if you need to use this version.
Downloading omegaconf-2.0.4-py3-none-any.whl.metadata (3.0 kB)
WARNING: Ignoring version 2.0.4 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/92/b1/4f3023143436f12c98bab53f0b3db617bd18a7d223627d5030e13a7b4fc2/omegaconf-2.0.4-py3-none-any.whl (from fairseq->ai4bharat-transliteration) has invalid metadata: .
suffix can only be used with == or != operators
PyYAML (>=5.1.)
~~~~~~^
Please use pip<24.1 if you need to use this version.
Downloading omegaconf-2.0.3-py3-none-any.whl.metadata (3.0 kB)
WARNING: Ignoring version 2.0.3 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/29/08/a88210c2c1aa0a3f65f05d8a6c98939ccb84b6fb982aa6567dec4e6773f9/omegaconf-2.0.3-py3-none-any.whl (from fairseq->ai4bharat-transliteration) has invalid metadata: .
suffix can only be used with == or != operators
PyYAML (>=5.1.)
~~~~~~^
Please use pip<24.1 if you need to use this version.
Downloading omegaconf-2.0.2-py3-none-any.whl.metadata (3.0 kB)
WARNING: Ignoring version 2.0.2 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/72/fe/f8d162aa059fb4f327fd75144dd69aa7e8acbb6d8d37013e4638c8490e0b/omegaconf-2.0.2-py3-none-any.whl (from fairseq->ai4bharat-transliteration) has invalid metadata: .
suffix can only be used with == or != operators
PyYAML (>=5.1.)
~~~~~~^
Please use pip<24.1 if you need to use this version.
Downloading omegaconf-2.0.1-py3-none-any.whl.metadata (3.0 kB)
WARNING: Ignoring version 2.0.1 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/86/ec/605805e60abdb025b06664d107335031bb8ebdc52e0a90bdbad6a7130279/omegaconf-2.0.1-py3-none-any.whl (from fairseq->ai4bharat-transliteration) has invalid metadata: .
suffix can only be used with == or != operators
PyYAML (>=5.1.)
~~~~~~^
Please use pip<24.1 if you need to use this version.
Downloading omegaconf-2.0.0-py3-none-any.whl.metadata (3.5 kB)
Requirement already satisfied: numpy in /usr/local/lib/python3.11/dist-packages (from fairseq->ai4bharat-transliteration) (1.26.4)
Requirement already satisfied: regex in /usr/local/lib/python3.11/dist-packages (from fairseq->ai4bharat-transliteration) (2024.11.6)
Collecting sacrebleu>=1.4.12 (from fairseq->ai4bharat-transliteration)
Downloading sacrebleu-2.5.1-py3-none-any.whl.metadata (51 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.8/51.8 kB 3.1 MB/s eta 0:00:00
Requirement already satisfied: torch in /usr/local/lib/python3.11/dist-packages (from fairseq->ai4bharat-transliteration) (2.6.0+cu124)
Collecting bitarray (from fairseq->ai4bharat-transliteration)
Downloading bitarray-3.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (35 kB)
Requirement already satisfied: torchaudio>=0.8.0 in /usr/local/lib/python3.11/dist-packages (from fairseq->ai4bharat-transliteration) (2.6.0+cu124)
Requirement already satisfied: blinker>=1.9.0 in /usr/local/lib/python3.11/dist-packages (from flask->ai4bharat-transliteration) (1.9.0)
Requirement already satisfied: click>=8.1.3 in /usr/local/lib/python3.11/dist-packages (from flask->ai4bharat-transliteration) (8.2.1)
Requirement already satisfied: itsdangerous>=2.2.0 in /usr/local/lib/python3.11/dist-packages (from flask->ai4bharat-transliteration) (2.2.0)
Requirement already satisfied: jinja2>=3.1.2 in /usr/local/lib/python3.11/dist-packages (from flask->ai4bharat-transliteration) (3.1.6)
Requirement already satisfied: markupsafe>=2.1.1 in /usr/local/lib/python3.11/dist-packages (from flask->ai4bharat-transliteration) (3.0.2)
Requirement already satisfied: werkzeug>=3.1.0 in /usr/local/lib/python3.11/dist-packages (from flask->ai4bharat-transliteration) (3.1.3)
Requirement already satisfied: greenlet>=3.2.2 in /usr/local/lib/python3.11/dist-packages (from gevent->ai4bharat-transliteration) (3.2.3)
Collecting zope.event (from gevent->ai4bharat-transliteration)
Downloading zope_event-5.1.1-py3-none-any.whl.metadata (5.0 kB)
Collecting zope.interface (from gevent->ai4bharat-transliteration)
Downloading zope.interface-7.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (44 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.4/44.4 kB 2.2 MB/s eta 0:00:00
Collecting sphinx-argparse (from indic-nlp-library->ai4bharat-transliteration)
Downloading sphinx_argparse-0.5.2-py3-none-any.whl.metadata (3.7 kB)
Requirement already satisfied: sphinx-rtd-theme in /usr/local/lib/python3.11/dist-packages (from indic-nlp-library->ai4bharat-transliteration) (0.2.4)
Collecting morfessor (from indic-nlp-library->ai4bharat-transliteration)
Downloading Morfessor-2.0.6-py3-none-any.whl.metadata (628 bytes)
Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.11/dist-packages (from pandas->ai4bharat-transliteration) (2.9.0.post0)
Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.11/dist-packages (from pandas->ai4bharat-transliteration) (2025.2)
Requirement already satisfied: tzdata>=2022.7 in /usr/local/lib/python3.11/dist-packages (from pandas->ai4bharat-transliteration) (2025.2)
Requirement already satisfied: progressbar2 in /usr/local/lib/python3.11/dist-packages (from pydload->ai4bharat-transliteration) (4.5.0)
Requirement already satisfied: requests in /usr/local/lib/python3.11/dist-packages (from pydload->ai4bharat-transliteration) (2.32.4)
Requirement already satisfied: joblib in /usr/local/lib/python3.11/dist-packages (from sacremoses->ai4bharat-transliteration) (1.5.1)
Requirement already satisfied: packaging in /usr/local/lib/python3.11/dist-packages (from tensorboardX->ai4bharat-transliteration) (25.0)
Requirement already satisfied: protobuf>=3.20 in /usr/local/lib/python3.11/dist-packages (from tensorboardX->ai4bharat-transliteration) (3.20.3)
Collecting tf2crf (from urduhack->ai4bharat-transliteration)
Downloading tf2crf-0.1.33-py2.py3-none-any.whl.metadata (1.9 kB)
Collecting tensorflow-datasets~=3.1 (from urduhack->ai4bharat-transliteration)
Downloading tensorflow_datasets-3.2.1-py3-none-any.whl.metadata (4.8 kB)
INFO: pip is looking at multiple versions of urduhack to determine which version is compatible with other requirements. This could take a while.
Collecting urduhack (from ai4bharat-transliteration)
Downloading urduhack-1.1.0-py3-none-any.whl.metadata (7.2 kB)
Downloading urduhack-1.0.3-py3-none-any.whl.metadata (7.1 kB)
Downloading urduhack-1.0.2-py3-none-any.whl.metadata (7.1 kB)
Downloading urduhack-1.0.1-py3-none-any.whl.metadata (7.2 kB)
Downloading urduhack-1.0.0-py3-none-any.whl.metadata (7.4 kB)
Downloading urduhack-0.3.4-py3-none-any.whl.metadata (7.2 kB)
Collecting transformers~=2.10 (from urduhack->ai4bharat-transliteration)
Downloading transformers-2.11.0-py3-none-any.whl.metadata (45 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.3/45.3 kB 1.9 MB/s eta 0:00:00
Collecting urduhack (from ai4bharat-transliteration)
Downloading urduhack-0.3.3-py3-none-any.whl.metadata (7.2 kB)
INFO: pip is still looking at multiple versions of urduhack to determine which version is compatible with other requirements. This could take a while.
Downloading urduhack-0.3.2-py3-none-any.whl.metadata (6.9 kB)
Requirement already satisfied: tensorflow~=2.2 in /usr/local/lib/python3.11/dist-packages (from urduhack->ai4bharat-transliteration) (2.18.0)
Downloading urduhack-0.3.1-py3-none-any.whl.metadata (6.2 kB)
Downloading urduhack-0.2.7-py3-none-any.whl.metadata (5.6 kB)
Collecting regex (from fairseq->ai4bharat-transliteration)
Downloading regex-2019.12.20.tar.gz (679 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 679.8/679.8 kB 28.9 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting urduhack (from ai4bharat-transliteration)
Downloading urduhack-0.2.6-py3-none-any.whl.metadata (5.6 kB)
Downloading urduhack-0.2.5-py3-none-any.whl.metadata (5.7 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
Downloading urduhack-0.2.4-py3-none-any.whl.metadata (5.7 kB)
Downloading urduhack-0.2.3-py3-none-any.whl.metadata (5.8 kB)
Downloading urduhack-0.2.2-py3-none-any.whl.metadata (5.8 kB)
Downloading urduhack-0.2.1-py3-none-any.whl.metadata (5.9 kB)
Downloading urduhack-0.1.4-py3-none-any.whl.metadata (5.4 kB)
Collecting omegaconf<2.1 (from fairseq->ai4bharat-transliteration)
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->ai4bharat-transliteration) has invalid metadata: .
suffix can only be used with == or != operators
PyYAML (>=5.1.)
~~~~~~^
Please use pip<24.1 if you need to use this version.
Using cached omegaconf-2.0.5-py3-none-any.whl.metadata (3.0 kB)
WARNING: Ignoring version 2.0.5 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/e5/f6/043b6d255dd6fbf2025110cea35b87f4c5100a181681d8eab496269f0d5b/omegaconf-2.0.5-py3-none-any.whl (from fairseq->ai4bharat-transliteration) has invalid metadata: .
suffix can only be used with == or != operators
PyYAML (>=5.1.*)
~~~~~~^
Please use pip<24.1 if you need to use this version.
INFO: pip is looking at multiple versions of hydra-core to determine which version is compatible with other requirements. This could take a while.
Collecting fairseq (from ai4bharat-transliteration)
Downloading fairseq-0.12.1.tar.gz (9.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.6/9.6 MB 88.3 MB/s eta 0:00:00:00:0100:01
Installing build dependencies ... done
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

And thus:

ModuleNotFoundError: No module named 'ai4bharat'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions