➜ python-shooter.org git:(master) ✗ python SubFinder.py /Users/wushao/Library/Containers/com.youku.mac/Data/test.mp4
Find 1 video
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Users/wushao/anaconda/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "SubFinder.py", line 189, in run
sub_info_list = getSubInfo(f, lang)
File "SubFinder.py", line 100, in getSubInfo
filehash = computerVideoHash(videofile)
File "SubFinder.py", line 61, in computerVideoHash
total_size = getFileSize(fp)
File "SubFinder.py", line 51, in getFileSize
if isinstance(filestring_or_fileobj, basestring):
NameError: name 'basestring' is not defined
Finish.find 0 subtitles,0 sucessed,0 failed,0 files not found subtitle
我的电脑是mac ,文件是有数据的 没有request 跑下面这个命令报这个错
➜ python-shooter.org git:(master) ✗ python SubFinder.py /Users/wushao/Library/Containers/com.youku.mac/Data/test.mp4 Find 1 video
Exception in thread Thread-1: Traceback (most recent call last): File "/Users/wushao/anaconda/lib/python3.5/threading.py", line 914, in _bootstrap_inner self.run() File "SubFinder.py", line 189, in run sub_info_list = getSubInfo(f, lang) File "SubFinder.py", line 100, in getSubInfo filehash = computerVideoHash(videofile) File "SubFinder.py", line 61, in computerVideoHash total_size = getFileSize(fp) File "SubFinder.py", line 51, in getFileSize if isinstance(filestring_or_fileobj, basestring): NameError: name 'basestring' is not defined
Finish.find 0 subtitles,0 sucessed,0 failed,0 files not found subtitle