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

depends HTTP Error 404 #22

Open
fengdasuk19 opened this issue Feb 14, 2017 · 3 comments
Open

depends HTTP Error 404 #22

fengdasuk19 opened this issue Feb 14, 2017 · 3 comments
Assignees

Comments

@fengdasuk19
Copy link

执行 download_depends.py,有如下提示:

Traceback (most recent call last):
  File "download_depends.py", line 63, in <module>
    download_and_extract(entry['url'], entry['dest'])
  File "download_depends.py", line 21, in download_and_extract
    f = urllib2.urlopen(url)
  File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib64/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib64/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

然后尝试在浏览器中输入该脚本中 FILE_LIST 的各项 URL,发现下述 URL 已经失效(404):

https://protobuf.googlecode.com/files/protoc-2.5.0-win32.zip
https://protobuf.googlecode.com/files/protobuf-2.5.0.zip
https://googletest.googlecode.com/files/gtest-1.7.0.zip
http://zlib.net/zlib-1.2.8.tar.gz

也就是说只有最后一个 URL 还可用。

@lotem lotem self-assigned this Feb 14, 2017
@Prcuvu
Copy link

Prcuvu commented Feb 15, 2017

以下列地址替换:

https://github.com/google/protobuf/releases/download/v2.5.0/protoc-2.5.0-win32.zip
https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.zip
https://github.com/google/googletest/archive/release-1.7.0.zip
http://www.zlib.net/fossils/zlib-1.2.8.tar.gz

@fengdasuk19
Copy link
Author

感谢 @Prcuvu ,新提供的地址是可用的。

@huanxiu
Copy link

huanxiu commented Feb 27, 2018

反饋,將鏈接全部替換後,在Python 2.7.14的環境下運行,不掛ss和掛了ss均顯示500錯誤,換開l藍燈後成功

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

4 participants