Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macos 源码安装时,sudo python3 setup.py install,报错 #174

Open
sigilzen opened this issue Nov 26, 2024 · 5 comments
Open

macos 源码安装时,sudo python3 setup.py install,报错 #174

sigilzen opened this issue Nov 26, 2024 · 5 comments

Comments

@sigilzen
Copy link

环境:macos 15.1.1、python3.9.6
run :sudo python3 setup.py install


                make -j4 install/strip

sh: line 3: cmake: command not found
make: *** No rule to make target `install/strip'. Stop.
Traceback (most recent call last):
File "/Users/xxj/Documents/CapsWriter-offline/sherpa-onnx/setup.py", line 62, in
setuptools.setup(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)

@sigilzen
Copy link
Author

经过一番折腾和chatgpt的帮助,客户端能运行在macos上了,但是服务器端还有问题,虽然提示模块加载完成,模型加载完成,但是似乎没有启动服务端。客户端也链接不上。
iShot_2024-11-26_22 41 35
Uploading iShot_2024-11-26_22.41.35.png…

@sigilzen
Copy link
Author

服务端启动的时候,提示:FileExistsError: The models/punc_ct-transformer_cn-en/config.yaml does not exist.
缺少config.yaml文件。看了一下对应的模型文件夹下,确实没有这个配置文件。请哪位大佬指点一下,感谢!

@sigilzen
Copy link
Author

重新下载了标点模型后,找到了config.yaml文件,服务端也能启动了。但是客户端仍然连不上服务端。提示: 服务端未连接,无法发送。
iShot_2024-11-27_11 08 53
iShot_2024-11-27_11 08 02

@sigilzen
Copy link
Author

接上,服务端启动的时候有个提示:
objc[60396]: Class CoreMLExecution is implemented in both /Library/Python/3.9/site-packages/sherpa_onnx-1.10.31-py3.9-macosx-10.9-universal2.egg/sherpa_onnx/lib/libonnxruntime.1.17.1.dylib (0x104448c10) and /Library/Python/3.9/site-packages/onnxruntime/capi/onnxruntime_pybind11_state.so (0x12c0d9258). One of the two will be used. Which one is undefined.

@sigilzen
Copy link
Author

接上,结束任务后,有提示:
iShot_2024-11-27_11 22 21

^C
再见!
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 572, in _do_shutdown
self.call_soon_threadsafe(future.set_result, None)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 791, in call_soon_threadsafe
self._check_closed()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 510, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 574, in _do_shutdown
self.call_soon_threadsafe(future.set_exception, ex)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 791, in call_soon_threadsafe
self._check_closed()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 510, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
xxj@XiaoJians-MacBook-Pro CapsWriter-Offline-1.0 % /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 6 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant