Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac 上能运行吗 #3

Closed
aleaxwu opened this issue Nov 25, 2016 · 3 comments
Closed

mac 上能运行吗 #3

aleaxwu opened this issue Nov 25, 2016 · 3 comments

Comments

@aleaxwu
Copy link

aleaxwu commented Nov 25, 2016

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

ausaki commented Nov 25, 2016

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

@ausaki
Copy link
Owner

ausaki commented Nov 25, 2016

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

@aleaxwu
Copy link
Author

aleaxwu commented Dec 5, 2016

Thank you

@aleaxwu aleaxwu closed this as completed Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants