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

mac 运行出错 #15

Closed
mamingsuper opened this issue Feb 3, 2024 · 1 comment
Closed

mac 运行出错 #15

mamingsuper opened this issue Feb 3, 2024 · 1 comment

Comments

@mamingsuper
Copy link

感谢开发软件,运行时出现错误,我是mac:
python start.py
/Users/mam94/Documents/A/To_code/audiotext/venv/lib/python3.10/site-packages/torch/nn/modules/transformer.py:20: UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/utils/tensor_numpy.cpp:84.)
device: torch.device = torch.device(torch._C.get_default_device()), # torch.device('cpu'),
Traceback (most recent call last):
File "/Users/mam94/Documents/A/To_code/audiotext/stt/start.py", line 13, in
from stslib import cfg, tool
File "/Users/mam94/Documents/A/To_code/audiotext/stt/stslib/cfg.py", line 40, in
sets=parse_ini()
File "/Users/mam94/Documents/A/To_code/audiotext/stt/stslib/cfg.py", line 11, in parse_ini
"lang":"en" if locale.getdefaultlocale()[0].split('
')[0].lower() != 'zh' else "zh",
AttributeError: 'NoneType' object has no attribute 'split'

@jianchang512
Copy link
Owner

/Users/mam94/Documents/A/To_code/audiotext/stt/stslib/cfg.py

第11行,改为

"lang":"zh",

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

2 participants