【XXXhas type numpy.ndarray, but expected one of: int】
报错说明
在使用第三方的模块代码时,出现了“XXXhas type numpy.ndarray, but expected one of: int”的错误,这个模块需要特定的版本支持
报错分析
此报错的问题有可能出现在protobuf的版本上
解决方式
查看了自己的protobuf版本为3.20.0
将版本降为3.19.0:pip install protobuf==3.19.0
解决!!!
参考链接