ausaki / subfinder

字幕查找器
MIT License
833 stars 96 forks source link

mac 上能运行吗 #3

Closed aleaxwu closed 7 years ago

aleaxwu commented 7 years ago

我的电脑是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

ausaki commented 7 years ago

还不兼容Python3.5,你用Python2.7试一下,另外,还要装requests这个库pip install requests

ausaki commented 7 years ago

我改了下代码,应该可以支持python3了

aleaxwu commented 7 years ago

Thank you