abdeladim-s / subsai

🎞️ Subtitles generation tool (Web-UI + CLI + Python package) powered by OpenAI's Whisper and its variants 🎞️
https://abdeladim-s.github.io/subsai/
GNU General Public License v3.0
1.16k stars 96 forks source link

[install issue] ld: unsupported tapi file type '!tapi-tbd' in YAML file #27

Open ddkwing opened 1 year ago

ddkwing commented 1 year ago

I have encounted a issue when I run: pip install git+https://github.com/abdeladim-s/subsai

---details---- ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libSystem.tbd' for architecture arm64 clang-16: error: linker command failed with exit code 1 (use -v to see invocation) error: command '/opt/homebrew/opt/llvm/bin/clang' failed with exit code 1 error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. full command: /Users/m/anaconda3/bin/python -u -c ' exec(compile('"'"''"'"''"'"'

This is -- a caller that pip uses to run setup.py

#

- It imports setuptools before invoking setup.py, to enable projects that directly

import from distutils.core to work with newer packaging standards.

- It provides a clear error message when setuptools is not installed.

- It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so

setuptools doesn'"'"'t think the script is -c. This avoids the following warning:

manifest_maker: standard file '"'"'-c'"'"' not found".

- It generates a shim setup.py, for handling setup.cfg-only projects.

import os, sys, tokenize

try: import setuptools except ImportError as error: print( "ERROR: Can not execute setup.py since setuptools is not available in " "the build environment.", file=sys.stderr, ) sys.exit(1)

file = %r sys.argv[0] = file

if os.path.exists(file): filename = file with tokenize.open(file) as f: setup_py_code = f.read() else: filename = "" setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec")) '"'"''"'"''"'"' % ('"'"'/private/var/folders/bv/x8bqw0hd5hz7fdsvcdl9f43r0000gn/T/pip-install-fzmlj4fc/webrtcvad_3f3618882ee14b95b613dfb742749d32/setup.py'"'"',), "", "exec"))' bdist_wheel -d /private/var/folders/bv/x8bqw0hd5hz7fdsvcdl9f43r0000gn/T/pip-wheel-t5tnh_6c cwd: /private/var/folders/bv/x8bqw0hd5hz7fdsvcdl9f43r0000gn/T/pip-install-fzmlj4fc/webrtcvad_3f3618882ee14b95b613dfb742749d32/ Building wheel for webrtcvad (setup.py) ... error ERROR: Failed building wheel for webrtcvad

ddkwing commented 1 year ago

I have reinstalled, CommandLineTools, and rerun xcode-select --install, but it's not working

abdeladim-s commented 1 year ago

@ddkwing, What OS are you using ? I think there are no prebuilt wheels of webrtcvad for your system. Could you please try this and see if it is working:

pip install webrtcvad