ModuleNotFoundError: No module named '_ctypes'
error: subprocess-exited-with-error?
python3 --version
Python 3.8.9
pip3 --version
pip 23.1.2 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)
pip3 -v install vosk
Using pip 23.1.2 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)
Collecting vosk
Using cached vosk-0.3.45-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (7.2 MB)
Collecting cffi>=1.0 (from vosk)
Using cached cffi-1.15.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (442 kB)
Collecting requests (from vosk)
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Collecting tqdm (from vosk)
Using cached tqdm-4.65.0-py3-none-any.whl (77 kB)
Collecting srt (from vosk)
Using cached srt-3.5.3.tar.gz (28 kB)
Running command pip subprocess to install build dependencies
Collecting setuptools>=40.8.0
Using cached setuptools-67.8.0-py3-none-any.whl (1.1 MB)
Collecting wheel
Using cached wheel-0.40.0-py3-none-any.whl (64 kB)
Installing collected packages: wheel, setuptools
Successfully installed setuptools-67.8.0 wheel-0.40.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Installing build dependencies ... done
Running command Getting requirements to build wheel
running egg_info
writing srt.egg-info/PKG-INFO
writing dependency_links to srt.egg-info/dependency_links.txt
writing top-level names to srt.egg-info/top_level.txt
reading manifest file 'srt.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.py[co]' found under directory '*'
warning: no previously-included files matching '__pycache__' found under directory '*'
adding license file 'LICENSE'
writing manifest file 'srt.egg-info/SOURCES.txt'
Getting requirements to build wheel ... done
Running command Preparing metadata (pyproject.toml)
running dist_info
creating /tmp/pip-modern-metadata-jzmdydd1/srt.egg-info
writing /tmp/pip-modern-metadata-jzmdydd1/srt.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-modern-metadata-jzmdydd1/srt.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-modern-metadata-jzmdydd1/srt.egg-info/top_level.txt
writing manifest file '/tmp/pip-modern-metadata-jzmdydd1/srt.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-modern-metadata-jzmdydd1/srt.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.py[co]' found under directory '*'
warning: no previously-included files matching '__pycache__' found under directory '*'
adding license file 'LICENSE'
writing manifest file '/tmp/pip-modern-metadata-jzmdydd1/srt.egg-info/SOURCES.txt'
creating '/tmp/pip-modern-metadata-jzmdydd1/srt-3.5.3.dist-info'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/tmp/pip-build-env-6f97m4gt/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 380, in prepare_metadata_for_build_wheel
self.run_setup()
File "/tmp/pip-build-env-6f97m4gt/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 487, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-6f97m4gt/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
https://stackoverflow.com/questions/69496504/modulenotfounderror-no-module-named-ctypes-mac-m1``` 3.8.10 надо
Обсуждают сегодня