欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ACRCloud音乐识别python3版SDK,acrcloud_extr_tool.so导入报错

程序员文章站 2022-04-19 19:36:55
...

背景:
mac环境下载以下python版本音乐识别SDK,按md文档操作后,执行test.py文件时报错。

1)sdk地址:
https://github.com/acrcloud/acrcloud_sdk_pythonACRCloud音乐识别python3版SDK,acrcloud_extr_tool.so导入报错

2)操作步骤
1、下载zip文件,解压
2、修改mac/x86-64/python3路径下test.py和mac/x86-64/python3/acrcloud路径下recognizer.py文件中的host、access_key和access_secret
3、mac/x86-64/python3路径下添加一个test.mp3文件
4、执行python test.py test.mp3

3)报错信息

  File "test.py", line 9, in <module>
    from acrcloud.recognizer import ACRCloudRecognizer
  File "/Users/tangdou/PycharmProjects/acrcloud_sdk_python-master/mac/x86-64/python3/acrcloud/recognizer.py", line 21, in <module>
    import acrcloud_extr_tool
ImportError: dlopen(/Users/~/acrcloud_sdk_python-master/mac/x86-64/python3/acrcloud/acrcloud_extr_tool.so, 2): Symbol not found: ____chkstk_darwin
  Referenced from: /Users/~/acrcloud_sdk_python-master/mac/x86-64/python3/acrcloud/acrcloud_extr_tool.so
  Expected in: /usr/lib/libSystem.B.dylib
 in /Users/~/acrcloud_sdk_python-master/mac/x86-64/python3/acrcloud/acrcloud_extr_tool.so

4)查到的类似问题,但无解决方案

https://github.com/acrcloud/acrcloud_sdk_python/issuesACRCloud音乐识别python3版SDK,acrcloud_extr_tool.so导入报错

相关标签: 音乐识别