踩坑 Chromaprint
2020-08-28 本文已影响0人
锦绣拾年
编程中需要用到Chromaprint,但是突然报错
File ".../lib/python2.7/site-packages/chromaprint.py", line 37, in <module>
raise ImportError("couldn't find libchromaprint")
ImportError: couldn't find libchromaprint
但是 Chromaprint已经安装了,可以找到这些包。
后来在Google上查bug,果然有人遇到了和我一样的问题
https://groups.google.com/g/acoustid/c/GvSpmHITb0I/m/pwi85_H0GwAJ
是版本的原因,对chromaprint.py进行更改后OK
https://github.com/beetbox/pyacoustid/commit/56baf698bbb38fc97408ef9a6ab2cf53588e52f7
而且在之前需要先
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib