twchapman / nativeclient-sdk

Automatically exported from code.google.com/p/nativeclient-sdk
0 stars 0 forks source link

TypeError: do_open() for Python 2.7.9 #151

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download and extract the nacl_sdk
2. Run ./naclsdk

> ./naclsdk list
Traceback (most recent call last):
  File "/Users/some_user/Downloads/nacl_sdk/sdk_tools/sdk_update_main.py", line 424, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/Users/some_user/Downloads/nacl_sdk/sdk_tools/sdk_update_main.py", line 415, in main
    return cmd(parser, argv[1:])
  File "/Users/some_user/Downloads/nacl_sdk/sdk_tools/sdk_update_main.py", line 189, in CMDlist
    options, args = parser.parse_args(args)
  File "/Users/some_user/Downloads/nacl_sdk/sdk_tools/sdk_update_main.py", line 404, in Parse
    UpdateSDKTools(options, args)
  File "/Users/some_user/Downloads/nacl_sdk/sdk_tools/sdk_update_main.py", line 350, in UpdateSDKTools
    remote_manifest = LoadCombinedRemoteManifest(options.manifest_url, cfg)
  File "/Users/some_user/Downloads/nacl_sdk/sdk_tools/sdk_update_main.py", line 163, in LoadCombinedRemoteManifest
    manifest = LoadRemoteManifest(default_manifest_url)
  File "/Users/some_user/Downloads/nacl_sdk/sdk_tools/sdk_update_main.py", line 145, in LoadRemoteManifest
    url_stream = download.UrlOpen(url)
  File "/Users/some_user/Downloads/nacl_sdk/sdk_tools/download.py", line 25, in UrlOpen
    return url_opener.open(request)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1240, in https_open
    context=self._context)
TypeError: do_open() got an unexpected keyword argument 'context'
Traceback (most recent call last):
  File "/Users/some_user/Downloads/nacl_sdk/sdk_tools/sdk_update_main.py", line 424, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/Users/some_user/Downloads/nacl_sdk/sdk_tools/sdk_update_main.py", line 415, in main
    return cmd(parser, argv[1:])
  File "/Users/some_user/Downloads/nacl_sdk/sdk_tools/sdk_update_main.py", line 194, in CMDlist
    remote_manifest = LoadCombinedRemoteManifest(options.manifest_url, cfg)
  File "/Users/some_user/Downloads/nacl_sdk/sdk_tools/sdk_update_main.py", line 163, in LoadCombinedRemoteManifest
    manifest = LoadRemoteManifest(default_manifest_url)
  File "/Users/some_user/Downloads/nacl_sdk/sdk_tools/sdk_update_main.py", line 145, in LoadRemoteManifest
    url_stream = download.UrlOpen(url)
  File "/Users/some_user/Downloads/nacl_sdk/sdk_tools/download.py", line 25, in UrlOpen
    return url_opener.open(request)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1240, in https_open
    context=self._context)
TypeError: do_open() got an unexpected keyword argument 'context'

Please provide any additional information below.
> python --version
Python 2.7.9

Original issue reported on code.google.com by kap4...@gmail.com on 24 Jan 2015 at 12:37

GoogleCodeExporter commented 9 years ago
Related links, which will fix this issue.

https://code.google.com/p/googleappengine/issues/detail?id=11536

https://code.google.com/p/googleappengine/issues/detail?id=11537

http://stackoverflow.com/q/27453497/687692

Original comment by love.sharma.87 on 10 Feb 2015 at 12:49