SYSTRAN / faster-whisper

Faster Whisper transcription with CTranslate2
MIT License
11.44k stars 952 forks source link

cant install at the moment #571

Open tobiasmeyhoefer opened 10 months ago

tobiasmeyhoefer commented 10 months ago

faces this error while installing any help?

pip install faster-whisper  ✔  16:07:05  Collecting faster-whisper Downloading faster_whisper-0.9.0-py3-none-any.whl.metadata (11 kB) Collecting av==10. (from faster-whisper) Downloading av-10.0.0.tar.gz (2.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 MB 9.1 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting ctranslate2<4,>=3.17 (from faster-whisper) Downloading ctranslate2-3.21.0-cp312-cp312-macosx_11_0_arm64.whl.metadata (10 kB) Requirement already satisfied: huggingface-hub>=0.13 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from faster-whisper) (0.19.4) Collecting tokenizers<0.15,>=0.13 (from faster-whisper) Downloading tokenizers-0.14.1-cp312-cp312-macosx_11_0_arm64.whl.metadata (6.7 kB) INFO: pip is looking at multiple versions of faster-whisper to determine which version is compatible with other requirements. This could take a while. Collecting faster-whisper Downloading faster_whisper-0.8.0-py3-none-any.whl.metadata (10 kB) Collecting tokenizers==0.13. (from faster-whisper) Downloading tokenizers-0.13.3.tar.gz (314 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 314.9/314.9 kB 2.0 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting faster-whisper Downloading faster_whisper-0.7.1-py3-none-any.whl.metadata (9.9 kB) Downloading faster_whisper-0.7.0-py3-none-any.whl.metadata (9.9 kB) Downloading faster_whisper-0.6.0-py3-none-any.whl.metadata (9.1 kB) Downloading faster_whisper-0.5.1-py3-none-any.whl (1.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 2.1 MB/s eta 0:00:00 Collecting numpy (from ctranslate2<4,>=3.17->faster-whisper) Downloading numpy-1.26.2-cp312-cp312-macosx_11_0_arm64.whl.metadata (61 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 2.8 MB/s eta 0:00:00 Requirement already satisfied: pyyaml<7,>=5.3 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from ctranslate2<4,>=3.17->faster-whisper) (6.0.1) Requirement already satisfied: filelock in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from huggingface-hub>=0.13->faster-whisper) (3.13.1) Requirement already satisfied: fsspec>=2023.5.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from huggingface-hub>=0.13->faster-whisper) (2023.10.0) Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from huggingface-hub>=0.13->faster-whisper) (2.31.0) Requirement already satisfied: tqdm>=4.42.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from huggingface-hub>=0.13->faster-whisper) (4.66.1) Requirement already satisfied: typing-extensions>=3.7.4.3 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from huggingface-hub>=0.13->faster-whisper) (4.8.0) Requirement already satisfied: packaging>=20.9 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from huggingface-hub>=0.13->faster-whisper) (23.2) Requirement already satisfied: charset-normalizer<4,>=2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests->huggingface-hub>=0.13->faster-whisper) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests->huggingface-hub>=0.13->faster-whisper) (3.4) Requirement already satisfied: urllib3<3,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests->huggingface-hub>=0.13->faster-whisper) (2.1.0) Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests->huggingface-hub>=0.13->faster-whisper) (2023.11.17) Downloading ctranslate2-3.21.0-cp312-cp312-macosx_11_0_arm64.whl (1.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 10.7 MB/s eta 0:00:00 Downloading numpy-1.26.2-cp312-cp312-macosx_11_0_arm64.whl (13.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.7/13.7 MB 6.4 MB/s eta 0:00:00 Building wheels for collected packages: av, tokenizers Building wheel for av (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for av (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [341 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.9-universal2-cpython-312 creating build/lib.macosx-10.9-universal2-cpython-312/av copying av/deprecation.py -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/datasets.py -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/init.py -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/about.py -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/main.py -> build/lib.macosx-10.9-universal2-cpython-312/av creating build/lib.macosx-10.9-universal2-cpython-312/av/video copying av/video/init.py -> build/lib.macosx-10.9-universal2-cpython-312/av/video creating build/lib.macosx-10.9-universal2-cpython-312/av/codec copying av/codec/init.py -> build/lib.macosx-10.9-universal2-cpython-312/av/codec creating build/lib.macosx-10.9-universal2-cpython-312/av/container copying av/container/init.py -> build/lib.macosx-10.9-universal2-cpython-312/av/container creating build/lib.macosx-10.9-universal2-cpython-312/av/audio copying av/audio/init.py -> build/lib.macosx-10.9-universal2-cpython-312/av/audio creating build/lib.macosx-10.9-universal2-cpython-312/av/subtitles copying av/subtitles/init.py -> build/lib.macosx-10.9-universal2-cpython-312/av/subtitles creating build/lib.macosx-10.9-universal2-cpython-312/av/filter copying av/filter/init.py -> build/lib.macosx-10.9-universal2-cpython-312/av/filter creating build/lib.macosx-10.9-universal2-cpython-312/av/sidedata copying av/sidedata/init.py -> build/lib.macosx-10.9-universal2-cpython-312/av/sidedata creating build/lib.macosx-10.9-universal2-cpython-312/av/data copying av/data/init.py -> build/lib.macosx-10.9-universal2-cpython-312/av/data copying av/utils.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/frame.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/descriptor.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/logging.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/format.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/init.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/error.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/buffer.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/packet.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/bytesource.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/enum.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/option.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/stream.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/dictionary.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/plane.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av copying av/video/frame.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/video copying av/video/reformatter.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/video copying av/video/format.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/video copying av/video/init.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/video copying av/video/codeccontext.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/video copying av/video/stream.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/video copying av/video/plane.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/video copying av/codec/init.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/codec copying av/codec/context.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/codec copying av/codec/codec.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/codec copying av/container/input.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/container copying av/container/core.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/container copying av/container/init.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/container copying av/container/pyio.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/container copying av/container/output.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/container copying av/container/streams.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/container copying av/audio/frame.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/audio copying av/audio/fifo.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/audio copying av/audio/format.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/audio copying av/audio/layout.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/audio copying av/audio/init.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/audio copying av/audio/codeccontext.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/audio copying av/audio/stream.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/audio copying av/audio/resampler.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/audio copying av/audio/plane.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/audio copying av/subtitles/init.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/subtitles copying av/subtitles/codeccontext.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/subtitles copying av/subtitles/stream.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/subtitles copying av/subtitles/subtitle.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/subtitles copying av/filter/init.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/filter copying av/filter/graph.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/filter copying av/filter/context.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/filter copying av/filter/filter.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/filter copying av/filter/pad.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/filter copying av/filter/link.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/filter copying av/sidedata/init.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/sidedata copying av/sidedata/motionvectors.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/sidedata copying av/sidedata/sidedata.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/sidedata copying av/data/init.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/data copying av/data/stream.pxd -> build/lib.macosx-10.9-universal2-cpython-312/av/data running build_ext building 'av.plane' extension creating build/temp.macosx-10.9-universal2-cpython-312 creating build/temp.macosx-10.9-universal2-cpython-312/src creating build/temp.macosx-10.9-universal2-cpython-312/src/av clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/Cellar/ffmpeg/6.0_1/include -I/opt/homebrew/opt/portaudio/include/ -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c src/av/plane.c -o build/temp.macosx-10.9-universal2-cpython-312/src/av/plane.o clang -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -g -L/opt/homebrew/opt/openssl@3/lib -I/opt/homebrew/opt/openssl@3/include build/temp.macosx-10.9-universal2-cpython-312/src/av/plane.o -L/opt/homebrew/Cellar/ffmpeg/6.0_1/lib -L/opt/homebrew/opt/portaudio/lib/ -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.macosx-10.9-universal2-cpython-312/av/plane.cpython-312-darwin.so ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavformat.60.3.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavcodec.60.3.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavdevice.60.1.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libswscale.7.1.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavfilter.9.3.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavutil.58.2.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libswresample.4.10.100.dylib': found architecture 'arm64', required architecture 'x86_64' building 'av.dictionary' extension clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/Cellar/ffmpeg/6.0_1/include -I/opt/homebrew/opt/portaudio/include/ -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c src/av/dictionary.c -o build/temp.macosx-10.9-universal2-cpython-312/src/av/dictionary.o clang -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -g -L/opt/homebrew/opt/openssl@3/lib -I/opt/homebrew/opt/openssl@3/include build/temp.macosx-10.9-universal2-cpython-312/src/av/dictionary.o -L/opt/homebrew/Cellar/ffmpeg/6.0_1/lib -L/opt/homebrew/opt/portaudio/lib/ -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.macosx-10.9-universal2-cpython-312/av/dictionary.cpython-312-darwin.so ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavformat.60.3.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavutil.58.2.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libswresample.4.10.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libswscale.7.1.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavdevice.60.1.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavfilter.9.3.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavcodec.60.3.100.dylib': found architecture 'arm64', required architecture 'x86_64' building 'av.stream' extension clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/Cellar/ffmpeg/6.0_1/include -I/opt/homebrew/opt/portaudio/include/ -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c src/av/stream.c -o build/temp.macosx-10.9-universal2-cpython-312/src/av/stream.o clang -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -g -L/opt/homebrew/opt/openssl@3/lib -I/opt/homebrew/opt/openssl@3/include build/temp.macosx-10.9-universal2-cpython-312/src/av/stream.o -L/opt/homebrew/Cellar/ffmpeg/6.0_1/lib -L/opt/homebrew/opt/portaudio/lib/ -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.macosx-10.9-universal2-cpython-312/av/stream.cpython-312-darwin.so ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavfilter.9.3.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavformat.60.3.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavutil.58.2.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavdevice.60.1.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavcodec.60.3.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libswscale.7.1.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libswresample.4.10.100.dylib': found architecture 'arm64', required architecture 'x86_64' building 'av.option' extension clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/Cellar/ffmpeg/6.0_1/include -I/opt/homebrew/opt/portaudio/include/ -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c src/av/option.c -o build/temp.macosx-10.9-universal2-cpython-312/src/av/option.o clang -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -g -L/opt/homebrew/opt/openssl@3/lib -I/opt/homebrew/opt/openssl@3/include build/temp.macosx-10.9-universal2-cpython-312/src/av/option.o -L/opt/homebrew/Cellar/ffmpeg/6.0_1/lib -L/opt/homebrew/opt/portaudio/lib/ -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.macosx-10.9-universal2-cpython-312/av/option.cpython-312-darwin.so ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavformat.60.3.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavdevice.60.1.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavutil.58.2.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavfilter.9.3.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libswresample.4.10.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libswscale.7.1.100.dylib': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/opt/homebrew/Cellar/ffmpeg/6.0_1/lib/libavcodec.60.3.100.dylib': found architecture 'arm64', required architecture 'x86_64' building 'av.enum' extension clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/Cellar/ffmpeg/6.0_1/include -I/opt/homebrew/opt/portaudio/include/ -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c src/av/enum.c -o build/temp.macosx-10.9-universal2-cpython-312/src/av/enum.o src/av/enum.c:5798:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] Pyx_GetModuleGlobalName(pyx_t_1, pyx_n_s_unpickle); if (unlikely(!pyx_t_1)) PYX_ERR(0, 212, pyx_L1_error) ^ src/av/enum.c:1439:43: note: expanded from macro 'Pyx_GetModuleGlobalName' (var) = (likely(pyx_dict_version == PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ src/av/enum.c:1411:65: note: expanded from macro 'PYX_GET_DICT_VERSION'

define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)

                                                                  ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
      Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  src/av/enum.c:8876:5: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_EnumProperty); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
      ^
  src/av/enum.c:1439:43: note: expanded from macro '__Pyx_GetModuleGlobalName'
      (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
                                            ^
  src/av/enum.c:1411:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
  #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                  ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
      Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  src/av/enum.c:8922:5: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
      __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_pyx_unpickle_EnumProperty); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
      ^
  src/av/enum.c:1439:43: note: expanded from macro '__Pyx_GetModuleGlobalName'
      (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
                                            ^
  src/av/enum.c:1411:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
  #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                  ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
      Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  src/av/enum.c:9117:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_EnumType); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 388, __pyx_L1_error)
    ^
  src/av/enum.c:1439:43: note: expanded from macro '__Pyx_GetModuleGlobalName'
      (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
                                            ^
  src/av/enum.c:1411:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
  #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                  ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
      Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  src/av/enum.c:11766:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_copyreg); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 135, __pyx_L1_error)
    ^
  src/av/enum.c:1439:43: note: expanded from macro '__Pyx_GetModuleGlobalName'
      (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
                                            ^
  src/av/enum.c:1411:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
  #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                  ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
      Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  src/av/enum.c:11771:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_unpickle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 135, __pyx_L1_error)
    ^
  src/av/enum.c:1439:43: note: expanded from macro '__Pyx_GetModuleGlobalName'
      (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
                                            ^
  src/av/enum.c:1411:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
  #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                  ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
      Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  src/av/enum.c:12848:36: error: no member named 'curexc_traceback' in 'struct _ts'
          PyObject* tmp_tb = tstate->curexc_traceback;
                             ~~~~~~  ^
  src/av/enum.c:12851:21: error: no member named 'curexc_traceback' in 'struct _ts'
              tstate->curexc_traceback = tb;
              ~~~~~~  ^
  src/av/enum.c:12947:27: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
      return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
                            ^
  src/av/enum.c:1411:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
  #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                  ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
      Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  src/av/enum.c:12959:36: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
      return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
                                     ^
  src/av/enum.c:1411:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
  #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                  ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
      Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  src/av/enum.c:12963:56: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
      if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
                                                         ^
  src/av/enum.c:1411:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
  #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                  ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
      Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  src/av/enum.c:12980:5: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
      __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
      ^
  src/av/enum.c:1413:21: note: expanded from macro '__PYX_UPDATE_DICT_CACHE'
      (version_var) = __PYX_GET_DICT_VERSION(dict);\
                      ^
  src/av/enum.c:1411:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
  #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                  ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
      Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  src/av/enum.c:13086:22: error: call to undeclared function '_PyUnicode_Ready'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
          if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
                       ^
  src/av/enum.c:584:51: note: expanded from macro '__Pyx_PyUnicode_READY'
                                                0 : _PyUnicode_Ready((PyObject *)(op)))
                                                    ^
  src/av/enum.c:13086:22: note: did you mean '_PyUnicode_Copy'?
  src/av/enum.c:584:51: note: expanded from macro '__Pyx_PyUnicode_READY'
                                                0 : _PyUnicode_Ready((PyObject *)(op)))
                                                    ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/unicodeobject.h:400:23: note: '_PyUnicode_Copy' declared here
  PyAPI_FUNC(PyObject*) _PyUnicode_Copy(
                        ^
  src/av/enum.c:14269:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
          __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
          ^
  src/av/enum.c:1418:16: note: expanded from macro '__PYX_PY_DICT_LOOKUP_IF_MODIFIED'
      if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
                 ^
  src/av/enum.c:1411:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
  #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                  ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
      Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  src/av/enum.c:14269:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
          __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
          ^
  src/av/enum.c:1422:30: note: expanded from macro '__PYX_PY_DICT_LOOKUP_IF_MODIFIED'
          __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
                               ^
  src/av/enum.c:1411:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
  #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                  ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
      Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      ^
  /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  src/av/enum.c:14532:55: error: no member named 'ob_digit' in 'struct _longobject'
              const digit* digits = ((PyLongObject*)x)->ob_digit;
                                    ~~~~~~~~~~~~~~~~~~  ^
  src/av/enum.c:14587:55: error: no member named 'ob_digit' in 'struct _longobject'
              const digit* digits = ((PyLongObject*)x)->ob_digit;
                                    ~~~~~~~~~~~~~~~~~~  ^
  src/av/enum.c:14728:55: error: no member named 'ob_digit' in 'struct _longobject'
              const digit* digits = ((PyLongObject*)x)->ob_digit;
                                    ~~~~~~~~~~~~~~~~~~  ^
  src/av/enum.c:14783:55: error: no member named 'ob_digit' in 'struct _longobject'
              const digit* digits = ((PyLongObject*)x)->ob_digit;
                                    ~~~~~~~~~~~~~~~~~~  ^
  src/av/enum.c:16241:18: error: call to undeclared function '_PyUnicode_Ready'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
                   ^
  src/av/enum.c:584:51: note: expanded from macro '__Pyx_PyUnicode_READY'
                                                0 : _PyUnicode_Ready((PyObject *)(op)))
                                                    ^
  src/av/enum.c:16376:47: error: no member named 'ob_digit' in 'struct _longobject'
      const digit* digits = ((PyLongObject*)b)->ob_digit;
                            ~~~~~~~~~~~~~~~~~~  ^
  12 warnings and 9 errors generated.
  error: command '/usr/bin/clang' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for av Building wheel for tokenizers (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for tokenizers (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [51 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.9-universal2-cpython-312 creating build/lib.macosx-10.9-universal2-cpython-312/tokenizers copying py_src/tokenizers/init.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers creating build/lib.macosx-10.9-universal2-cpython-312/tokenizers/models copying py_src/tokenizers/models/init.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/models creating build/lib.macosx-10.9-universal2-cpython-312/tokenizers/decoders copying py_src/tokenizers/decoders/init.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/decoders creating build/lib.macosx-10.9-universal2-cpython-312/tokenizers/normalizers copying py_src/tokenizers/normalizers/init.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/normalizers creating build/lib.macosx-10.9-universal2-cpython-312/tokenizers/pre_tokenizers copying py_src/tokenizers/pre_tokenizers/init.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/pre_tokenizers creating build/lib.macosx-10.9-universal2-cpython-312/tokenizers/processors copying py_src/tokenizers/processors/init.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/processors creating build/lib.macosx-10.9-universal2-cpython-312/tokenizers/trainers copying py_src/tokenizers/trainers/init.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/trainers creating build/lib.macosx-10.9-universal2-cpython-312/tokenizers/implementations copying py_src/tokenizers/implementations/byte_level_bpe.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/implementations copying py_src/tokenizers/implementations/sentencepiece_unigram.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/implementations copying py_src/tokenizers/implementations/sentencepiece_bpe.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/implementations copying py_src/tokenizers/implementations/base_tokenizer.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/implementations copying py_src/tokenizers/implementations/init.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/implementations copying py_src/tokenizers/implementations/char_level_bpe.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/implementations copying py_src/tokenizers/implementations/bert_wordpiece.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/implementations creating build/lib.macosx-10.9-universal2-cpython-312/tokenizers/tools copying py_src/tokenizers/tools/init.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/tools copying py_src/tokenizers/tools/visualizer.py -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/tools copying py_src/tokenizers/init.pyi -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers copying py_src/tokenizers/models/init.pyi -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/models copying py_src/tokenizers/decoders/init.pyi -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/decoders copying py_src/tokenizers/normalizers/init.pyi -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/normalizers copying py_src/tokenizers/pre_tokenizers/init.pyi -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/pre_tokenizers copying py_src/tokenizers/processors/init.pyi -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/processors copying py_src/tokenizers/trainers/init.pyi -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/trainers copying py_src/tokenizers/tools/visualizer-styles.css -> build/lib.macosx-10.9-universal2-cpython-312/tokenizers/tools running build_ext running build_rust error: can't find Rust compiler

  If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

  To update pip, run:

      pip install --upgrade pip

  and then retry package installation.

  If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for tokenizers Failed to build av tokenizers ERROR: Could not build wheels for av, tokenizers, which is required to install pyproject.toml-based projects

hoonlight commented 10 months ago

Use python 3.11 instead of python 3.12.

BBC-Esq commented 7 months ago

Use python 3.11 instead of python 3.12.

Last I heard, pytorch is not compatible with Python 3.12 yet...and maybe other libraries as well, but I do know that Pytorch isn't...