{"action":"created","issue":{"url":"https://api.github.com/repos/williballenthin/python-evtx/issues/16","labels_url":"https://api.github.com/repos/williballenthin/python-evtx/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/williballenthin/python-evtx/issues/16/comments","events_url":"https://api.github.com/repos/williballenthin/python-evtx/issues/16/events","html_url":"https://github.com/williballenthin/python-evtx/issues/16","id":96744508,"number":16,"title":"TypeError: ord() expected string of length 1, but int found","user":{"login":"chanansh","id":5981644,"avatar_url":"https://avatars.githubusercontent.com/u/5981644?v=3","gravatar_id":"","url":"https://api.github.com/users/chanansh","html_url":"https://github.com/chanansh","followers_url":"https://api.github.com/users/chanansh/followers","following_url":"https://api.github.com/users/chanansh/following{/other_user}","gists_url":"https://api.github.com/users/chanansh/gists{/gist_id}","starred_url":"https://api.github.com/users/chanansh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanansh/subscriptions","organizations_url":"https://api.github.com/users/chanansh/orgs","repos_url":"https://api.github.com/users/chanansh/repos","events_url":"https://api.github.com/users/chanansh/events{/privacy}","received_events_url":"https://api.github.com/users/chanansh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-23T06:37:06Z","updated_at":"2015-07-26T07:22:14Z","closed_at":null,"body":"Code:\r\n````\r\nevtx_filename = r\"c:\\tmp\\Microsoft-Windows-TerminalServices-RemoteConnectionManager%4Operational.evtx\"\r\nfor node, err in xml_records(evtx_filename):\r\n    if err is not None:\r\n        continue\r\n    sys = get_child(node, \"System\")\r\n    if args.eid == int(get_child(sys, \"EventID\").text):\r\n        print(etree.tostring(node, pretty_print=True))\r\n```\r\n\r\nError:\r\n```\r\nFile \"C:\\Users\\hanans\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\Evtx\\Views.py\", line 205, in evtx_file_xml_view\r\n    record_str = _build_record_xml(record, cache=cache)\r\n  File \"C:\\Users\\hanans\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\Evtx\\Views.py\", line 155, in _build_record_xml\r\n    xml = rec(record.root())\r\n  File \"C:\\Users\\hanans\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\Evtx\\Views.py\", line 145, in rec\r\n    for sub in root_node.fast_substitutions():\r\n  File \"C:\\Users\\hanans\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\Evtx\\BinaryParser.py\", line 145, in __call__\r\n    res = cache[key] = self.func(*args, **kw)\r\n  File \"C:\\Users\\hanans\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\Evtx\\Nodes.py\", line 1015, in fast_substitutions\r\n    value += \"%02x\" % ord(c)\r\nTypeError: ord() expected string of length 1, but int found\r\n```"},"comment":{"url":"https://api.github.com/repos/williballenthin/python-evtx/issues/comments/124952882","html_url":"https://github.com/williballenthin/python-evtx/issues/16#issuecomment-124952882","issue_url":"https://api.github.com/repos/williballenthin/python-evtx/issues/16","id":124952882,"user":{"login":"chanansh","id":5981644,"avatar_url":"https://avatars.githubusercontent.com/u/5981644?v=3","gravatar_id":"","url":"https://api.github.com/users/chanansh","html_url":"https://github.com/chanansh","followers_url":"https://api.github.com/users/chanansh/followers","following_url":"https://api.github.com/users/chanansh/following{/other_user}","gists_url":"https://api.github.com/users/chanansh/gists{/gist_id}","starred_url":"https://api.github.com/users/chanansh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanansh/subscriptions","organizations_url":"https://api.github.com/users/chanansh/orgs","repos_url":"https://api.github.com/users/chanansh/repos","events_url":"https://api.github.com/users/chanansh/events{/privacy}","received_events_url":"https://api.github.com/users/chanansh/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T07:22:14Z","updated_at":"2015-07-26T07:22:14Z","body":"It's a 10MB file.\n\n*HS*\n\nOn Fri, Jul 24, 2015 at 12:03 AM, Willi Ballenthin <notifications@github.com\n> wrote:\n\n> is there any chance you can share the evtx file thats causing this issue?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/williballenthin/python-evtx/issues/16#issuecomment-124239440>\n> .\n>\n"}}