feldberlin / timething

Timething is a library for aligning text transcripts with their audio recordings.
MIT License
101 stars 7 forks source link

Dependency mismatch with `transformers` #19

Closed jgcodes2020 closed 12 months ago

jgcodes2020 commented 1 year ago

What

Current timething's requirement for tokenizers is incompatible with current transformers.

How to reproduce

Steps to reproduce the behavior:

  1. install the package from pip.
  2. Try to run timething --help

Expected

No errors at all.

Additional context

A basic workaround involves the following:

  1. Find dependency_version_check.py in transformers.
  2. Find a line that sets pkgs_to_check_at_runtime and remove tokenizers. This prevents the version check. a. There is probably a better way to fix it.
    # pkgs_to_check_at_runtime = "python tqdm regex sacremoses requests packaging filelock numpy tokenizers".split()
    pkgs_to_check_at_runtime = "python tqdm regex sacremoses requests packaging filelock numpy".split()
purzelrakete commented 12 months ago

thanks @jgcodes2020, this is now fixed.