Module initialization error: 'sndfile library not found'
- Dominant language
- JavaScript
- Stars
- 931
- Forks
- 128
- PR merge metrics
- No merged PRs in 30d
Description
[root@izwz9bscni6kr6hb0hvwfyz old_solfege_pub]# fun local invoke FcDemo/old_solfege_pub -e event.json
using template: template.yml
{
"wav_url": "https://sight-singing.oss-cn-qingdao.aliyuncs.com/mp3/c804b7985aa75d379066812150db52f6.mp3"
"input_json":"https://sight-singing.oss-cn-qingdao.aliyuncs.com/final-json/f44ef7a338986dc5d313fc695eb5b11e.json"
"output_json":"./test.json"
}
skip pulling image aliyunfc/runtime-python2.7:1.7.7...
FunctionCompute python runtime inited.
FC Invoke Start RequestId: d29511d9-23eb-4001-9721-4396ec95b866
Using TensorFlow backend.
2019-12-30T02:28:35.859Z d29511d9-23eb-4001-9721-4396ec95b866 [ERROR] {'stackTrace': ['OSError: sndfile library not found'], 'errorType': 'Exception', 'errorMessage': "Module initialization error: 'sndfile library not found'"}
FC Invoke End RequestId: d29511d9-23eb-4001-9721-4396ec95b866
{
"errorMessage": "Module initialization error: 'sndfile library not found'",
"errorType": "Exception",
"stackTrace": [
"OSError: sndfile library not found"
]
}
RequestId: d29511d9-23eb-4001-9721-4396ec95b866 Billed Duration: 2074 ms Memory Size: 1838 MB Max Memory Used: 168 MB
系统环境,阿里云服务器centos 7.3
用 yum install libsndfile-devel 安装过libsndfile,还是报错
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with template.yml, event.json, and the FcDemo/old_solfege_pub entry point, then reproduce the failure using the shown fun local invoke command and Python 2.7 runtime image. Check whether the sndfile dependency is available inside the Function Compute runtime rather than only on the CentOS host; done means the sample invocation completes without the module initialization error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- centos, python, tensorflow
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100