chrome native client sdk install issues

123 views
Skip to first unread message

Travis Bussler

unread,
Jan 29, 2015, 8:16:07 PM1/29/15
to native-cli...@googlegroups.com
I'm running a Windows 8.1 PC.  I downloaded python27 and the Chrome Native Client.  The python install went well and I can run it from the command line.  Then I extracted the nacl_sdk and opened up the directory.  When I run "naclskd list", I get the following errors:

C:\nacl_sdk>naclsdk list
Traceback (most recent call last):
  File "C:\nacl_sdk\sdk_tools\sdk_update_main.py", line 759, in <module>
    sys.exit(main(sys.argv[1:]))
  File "C:\nacl_sdk\sdk_tools\sdk_update_main.py", line 752, in main
    InvokeCommand(args)
  File "C:\nacl_sdk\sdk_tools\sdk_update_main.py", line 741, in InvokeCommand
    command(options, args[1:], config)
  File "C:\nacl_sdk\sdk_tools\sdk_update_main.py", line 510, in Update
    manifest = LoadManifestFromURLs([options.manifest_url] + config.GetSources()
)
  File "C:\nacl_sdk\sdk_tools\sdk_update_main.py", line 238, in LoadManifestFrom
URLs
    url_stream = UrlOpen(url)
  File "C:\nacl_sdk\sdk_tools\sdk_update_main.py", line 114, in UrlOpen
    return url_opener.open(request)
  File "C:\Python27\lib\urllib2.py", line 431, in open
    response = self._open(req, data)
  File "C:\Python27\lib\urllib2.py", line 449, in _open
    '_open', req)
  File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\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 "C:\nacl_sdk\sdk_tools\sdk_update_main.py", line 759, in <module>
    sys.exit(main(sys.argv[1:]))
  File "C:\nacl_sdk\sdk_tools\sdk_update_main.py", line 752, in main
    InvokeCommand(args)
  File "C:\nacl_sdk\sdk_tools\sdk_update_main.py", line 741, in InvokeCommand
    command(options, args[1:], config)
  File "C:\nacl_sdk\sdk_tools\sdk_update_main.py", line 444, in List
    manifest = LoadManifestFromURLs([options.manifest_url] + config.GetSources()
)
  File "C:\nacl_sdk\sdk_tools\sdk_update_main.py", line 238, in LoadManifestFrom
URLs
    url_stream = UrlOpen(url)
  File "C:\nacl_sdk\sdk_tools\sdk_update_main.py", line 114, in UrlOpen
    return url_opener.open(request)
  File "C:\Python27\lib\urllib2.py", line 431, in open
    response = self._open(req, data)
  File "C:\Python27\lib\urllib2.py", line 449, in _open
    '_open', req)
  File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 1240, in https_open
    context=self._context)
TypeError: do_open() got an unexpected keyword argument 'context'
C:\nacl_sdk>

Anyone know how to fix this?  I have tried the install on two different computers with the same outcome.

Thanks in advance.

TJ

Victor Khimenko

unread,
Jan 29, 2015, 11:51:06 PM1/29/15
to Native Client Discuss
Looks like the bug discussed here recently:
 
Apparently latest version of python broken fancy_urllib. Just grab older version of pyhton for now. Hopefully NaCl team will fix that issue soon.

Floh

unread,
Jan 30, 2015, 5:11:17 PM1/30/15
to native-cli...@googlegroups.com
It would be good to know an ETA when a fix will be available, because I'm running into a little version conflict with the emscripten SDK on OSX at the moment:

emscripten excepts a 'python2' executable, which is only provided by the python version from homebrew, but this is 2.7.9 which currently breaks the NaCl SDK, and I don't think there's a way to go back to an older python version with brew. This is all easy to fix manually but it screws up my super-simple automatic cross-platform SDK setup I wrote in my custom build system (http://floooh.github.io/fips/)

Cheers,
-Floh.

Sam Clegg

unread,
Jan 30, 2015, 5:56:38 PM1/30/15
to native-cli...@googlegroups.com
The fix was made here:
https://codereview.chromium.org/874393004

And this was included in a new release here:
https://codereview.chromium.org/880963003

Normally such changes take at most a day to do live, so I'm surprised
it is not already in the public manifest:
http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/manifest.html

I will see if I can figure out why its not live already.

cheers,
sam
> --
> You received this message because you are subscribed to the Google Groups
> "Native-Client-Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to native-client-di...@googlegroups.com.
> To post to this group, send email to native-cli...@googlegroups.com.
> Visit this group at http://groups.google.com/group/native-client-discuss.
> For more options, visit https://groups.google.com/d/optout.

Ben Smith

unread,
Jan 30, 2015, 9:42:07 PM1/30/15
to native-cli...@googlegroups.com
It looks like this change https://codereview.chromium.org/720233003 broke the update script on the bot. I'm taking a look now.

Ben Smith

unread,
Jan 30, 2015, 9:51:37 PM1/30/15
to native-cli...@googlegroups.com
This is fixed now.

Travis Bussler

unread,
Feb 1, 2015, 10:32:11 AM2/1/15
to native-cli...@googlegroups.com
Thanks so much!  I installed 2.7.8 and it worked just great!  Thanks for the post! :D

Floh

unread,
Feb 1, 2015, 11:16:18 AM2/1/15
to native-cli...@googlegroups.com
The fix isn't live yet is it? I'm downloading from 'http://storage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/nacl_sdk.zip' and this still has the old behaviour.

The naclsdk_manifest2.json file looks like this:

{
  "bundles": [
    {
      "name": "sdk_tools",
      "description": "Native Client SDK Tools, revision 157127",
      "stability": "stable",
      "recommended": "yes",
      "version": 1,
      "archives": [
        {
          "url": "https://commondatastorage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/trunk.157127/sdk_tools.tgz",
          "checksum": {
            "sha1": "8ef183f3e00a0db99b12ffc8cdec009744e21aba"
          },
          "host_os": "mac",
          "size": 25957
        },
        {
          "url": "https://commondatastorage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/trunk.157127/sdk_tools.tgz",
          "checksum": {
            "sha1": "8ef183f3e00a0db99b12ffc8cdec009744e21aba"
          },
          "host_os": "linux",
          "size": 25957
        },
        {
          "url": "https://commondatastorage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/trunk.157127/sdk_tools.tgz",
          "checksum": {
            "sha1": "8ef183f3e00a0db99b12ffc8cdec009744e21aba"
          },
          "host_os": "win",
          "size": 25957
        }
      ],
      "revision": 157127
    }
  ],
  "manifest_version": 2

Ben Smith

unread,
Feb 4, 2015, 12:51:40 PM2/4/15
to native-cli...@googlegroups.com
My apologies, I fixed the manifest by I didn't fix the zip file. It should be fixed now.

Floh

unread,
Feb 4, 2015, 6:01:27 PM2/4/15
to native-cli...@googlegroups.com
Confirmed working now. Thanks :)

-Floh.
Reply all
Reply to author
Forward
0 new messages