{"action":"closed","issue":{"url":"https://api.github.com/repos/KhronosGroup/SPIRV-Tools/issues/144","repository_url":"https://api.github.com/repos/KhronosGroup/SPIRV-Tools","labels_url":"https://api.github.com/repos/KhronosGroup/SPIRV-Tools/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/SPIRV-Tools/issues/144/comments","events_url":"https://api.github.com/repos/KhronosGroup/SPIRV-Tools/issues/144/events","html_url":"https://github.com/KhronosGroup/SPIRV-Tools/issues/144","id":138669579,"number":144,"title":"update_build_version script syntax and str object issues","user":{"login":"bschindler","id":2241296,"avatar_url":"https://avatars.githubusercontent.com/u/2241296?v=3","gravatar_id":"","url":"https://api.github.com/users/bschindler","html_url":"https://github.com/bschindler","followers_url":"https://api.github.com/users/bschindler/followers","following_url":"https://api.github.com/users/bschindler/following{/other_user}","gists_url":"https://api.github.com/users/bschindler/gists{/gist_id}","starred_url":"https://api.github.com/users/bschindler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bschindler/subscriptions","organizations_url":"https://api.github.com/users/bschindler/orgs","repos_url":"https://api.github.com/users/bschindler/repos","events_url":"https://api.github.com/users/bschindler/events{/privacy}","received_events_url":"https://api.github.com/users/bschindler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-05T11:00:01Z","updated_at":"2016-03-05T20:18:40Z","closed_at":"2016-03-05T20:18:40Z","body":"I'm trying to build SPIRV-Tools under gentoo linux (with python-3.5) and I run into the following issues: \r\n\r\n[  3%] Update build-version.inc in the Spirv-tools build directory (if necessary).\r\n/usr/bin/python3.5 /home/benjamin/Software/SPIRV-Tools/utils/update_build_version.py /home/benjamin/Software/SPIRV-Tools\r\n  File \"/home/benjamin/Software/SPIRV-Tools/utils/update_build_version.py\", line 67\r\n    print 'usage: {0} <spirv-tools_dir>'.format(sys.argv[0])\r\n                                       ^\r\nSyntaxError: invalid syntax\r\n\r\nI commented out line 67 as it is likely not used during build but then I run into this issue: \r\n\r\n[  3%] Update build-version.inc in the Spirv-tools build directory (if necessary).\r\n/usr/bin/python3.5 /home/benjamin/Software/SPIRV-Tools/utils/update_build_version.py /home/benjamin/Software/SPIRV-Tools\r\nTraceback (most recent call last):\r\n  File \"/home/benjamin/Software/SPIRV-Tools/utils/update_build_version.py\", line 76, in <module>\r\n    main()\r\n  File \"/home/benjamin/Software/SPIRV-Tools/utils/update_build_version.py\", line 70, in main\r\n    new_content = ('\"spirv-tools ' + describe(sys.argv[1]).replace('\"', '\\\\\"') + '\\\\n\"\\n')\r\nTypeError: a bytes-like object is required, not 'str'\r\n\r\nAs my python experience is extremely limited, I thought I should just file this. "}}