{"action":"created","issue":{"url":"https://api.github.com/repos/openeventdata/petrarch/issues/96","labels_url":"https://api.github.com/repos/openeventdata/petrarch/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/openeventdata/petrarch/issues/96/comments","events_url":"https://api.github.com/repos/openeventdata/petrarch/issues/96/events","html_url":"https://github.com/openeventdata/petrarch/issues/96","id":120097548,"number":96,"title":"sent_id referenced before assignment","user":{"login":"benradford","id":1372632,"avatar_url":"https://avatars.githubusercontent.com/u/1372632?v=3","gravatar_id":"","url":"https://api.github.com/users/benradford","html_url":"https://github.com/benradford","followers_url":"https://api.github.com/users/benradford/followers","following_url":"https://api.github.com/users/benradford/following{/other_user}","gists_url":"https://api.github.com/users/benradford/gists{/gist_id}","starred_url":"https://api.github.com/users/benradford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benradford/subscriptions","organizations_url":"https://api.github.com/users/benradford/orgs","repos_url":"https://api.github.com/users/benradford/repos","events_url":"https://api.github.com/users/benradford/events{/privacy}","received_events_url":"https://api.github.com/users/benradford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-03T05:28:37Z","updated_at":"2015-12-03T21:45:31Z","closed_at":null,"body":"I'm opening an issue for the following error:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"/Users/Ben/github/petrarch/petrarch/petrarch.py\", line 2905, in <module>\r\n    main()\r\n  File \"/Users/Ben/github/petrarch/petrarch/petrarch.py\", line 2798, in main\r\n    run(paths, cli_args.output, cli_args.parsed)\r\n  File \"/Users/Ben/github/petrarch/petrarch/petrarch.py\", line 2861, in run\r\n    events = PETRreader.read_xml_input(filepaths, s_parsed)\r\n  File \"/Users/Ben/Github/petrarch/petrarch/PETRreader.py\", line 1888, in read_xml_input\r\n    holding[entry_id]['sents'][sent_id] = sent_dict\r\nUnboundLocalError: local variable 'sent_id' referenced before assignment\r\n```\r\nI'm making a system call to petrarch.py from within R (hence the R traceback). Petrarch will code subsets of my file, but not the entire thing. I'll take a look inside Petrarch and try to figure it out, but if you guys have any ideas that'd be great too."},"comment":{"url":"https://api.github.com/repos/openeventdata/petrarch/issues/comments/161794017","html_url":"https://github.com/openeventdata/petrarch/issues/96#issuecomment-161794017","issue_url":"https://api.github.com/repos/openeventdata/petrarch/issues/96","id":161794017,"user":{"login":"benradford","id":1372632,"avatar_url":"https://avatars.githubusercontent.com/u/1372632?v=3","gravatar_id":"","url":"https://api.github.com/users/benradford","html_url":"https://github.com/benradford","followers_url":"https://api.github.com/users/benradford/followers","following_url":"https://api.github.com/users/benradford/following{/other_user}","gists_url":"https://api.github.com/users/benradford/gists{/gist_id}","starred_url":"https://api.github.com/users/benradford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benradford/subscriptions","organizations_url":"https://api.github.com/users/benradford/orgs","repos_url":"https://api.github.com/users/benradford/repos","events_url":"https://api.github.com/users/benradford/events{/privacy}","received_events_url":"https://api.github.com/users/benradford/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T21:45:31Z","updated_at":"2015-12-03T21:45:31Z","body":"Petrarch 1. I cloned the repo about a month ago, so it should be up to date."}}