Skip to content

protobuf missing in requirements.txt #14

@ramteid

Description

@ramteid

First I cloned the project. After creating a new venv and running pip install -r requirements.txt, I tried using your example with inference.py.
After downloading the pytorch_model-* files, the script failed with this error:

  File "/xxx/.venv/lib/python3.11/site-packages/transformers/convert_slow_tokenizer.py", line 546, in __init__
    requires_backends(self, "protobuf")
  File "/xxx/.venv/lib/python3.11/site-packages/transformers/utils/import_utils.py", line 1828, in requires_backends
    raise ImportError("".join(failed))
ImportError: 
T5Converter requires the protobuf library but it was not found in your environment. Checkout the instructions on the
installation page of its repo: https://github.com/protocolbuffers/protobuf/tree/master/python#installation and follow the ones
that match your environment. Please note that you may need to restart your runtime after installation.

Solution: add protobuf to requirements.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions