TypeError: 'float' object cannot be interpreted as an integer
分类:Python, 发布于 2017-02-08 03:05:54,浏览(976),评论(0)
在使用MoviePy中碰到错误 TypeError: 'float' object cannot be interpreted as an integer,解决方法如下:
修改readers.py中的:
result = (1.0*result / 2**(8*self.nbytes-1)).reshape((len(result)/self.nchannels,self.nchannels))
将:
(result)/self.nchannels,
改为:
(result)//self.nchannels,