I get the following error when I try to run hard-subs-to-srt:
pipenv run python hard_subs_to_srt.py "/Users/MyName/Desktop/immersion/filename.mp4" "/Users/MyNames/Desktop/immersion/filename.srt"
Warning: the environment variable LANG is not set!
We recommend setting this in ~/.profile (or equivalent) for proper expected behavior.
Creating a virtualenv for this project...
Pipfile: /Users/MyName/hard-subs-to-srt/Pipfile
Using /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 (3.9.1) to create virtualenv...
⠇ Creating virtual environment...created virtual environment CPython3.9.1.final.0-64 in 1359ms
creator CPython3Posix(dest=/Users/MyName/.local/share/virtualenvs/hard-subs-to-srt-kIPcH-L3, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/MyName/Library/Application Support/virtualenv)
added seed packages: pip==23.1.2, setuptools==67.7.2, wheel==0.40.0
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
✔ Successfully created virtual environment!
Virtualenv location: /Users/MyName/.local/share/virtualenvs/hard-subs-to-srt-kIPcH-L3
Traceback (most recent call last):
File "/Users/MyName/hard-subs-to-srt/hard_subs_to_srt.py", line 2, in <module>
from PIL import Image
ModuleNotFoundError: No module named 'PIL'
I think the problem may be that you haven't run pipenv install first. Also make sure that you have installed Tesseract OCR, see dependencies in README for more info.
I get the following error when I try to run hard-subs-to-srt: