はじめに
PythonでWhisperを用いた文字起こしプログラムを実行時にエラーに遭遇したので備忘録
File "C:\Users\kmch4n\AppData\Local\Programs\Python\Python312\Lib\ctypes\__init__.py", line 369, in __init__
if '/' in name or '\\' in name:
^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
原因
PyPlに登録されている"whisper"というライブラリは、恐らくあなたが想定しているライブラリではない
pip install whisper
では、想定しているライブラリをインストールできていない。
対処法
pip uninstall whisper
pip install git+https://github.com/openai/whisper.git
を実行することで解決