{"action":"closed","issue":{"url":"https://api.github.com/repos/danielplohmann/apiscout/issues/8","repository_url":"https://api.github.com/repos/danielplohmann/apiscout","labels_url":"https://api.github.com/repos/danielplohmann/apiscout/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/danielplohmann/apiscout/issues/8/comments","events_url":"https://api.github.com/repos/danielplohmann/apiscout/issues/8/events","html_url":"https://github.com/danielplohmann/apiscout/issues/8","id":329094357,"node_id":"MDU6SXNzdWUzMjkwOTQzNTc=","number":8,"title":"IDA 7.0 - ValueError: Invalid chooser passed","user":{"login":"nazywam","id":2192416,"node_id":"MDQ6VXNlcjIxOTI0MTY=","avatar_url":"https://avatars0.githubusercontent.com/u/2192416?v=4","gravatar_id":"","url":"https://api.github.com/users/nazywam","html_url":"https://github.com/nazywam","followers_url":"https://api.github.com/users/nazywam/followers","following_url":"https://api.github.com/users/nazywam/following{/other_user}","gists_url":"https://api.github.com/users/nazywam/gists{/gist_id}","starred_url":"https://api.github.com/users/nazywam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazywam/subscriptions","organizations_url":"https://api.github.com/users/nazywam/orgs","repos_url":"https://api.github.com/users/nazywam/repos","events_url":"https://api.github.com/users/nazywam/events{/privacy}","received_events_url":"https://api.github.com/users/nazywam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-04T15:02:27Z","updated_at":"2018-06-25T14:14:38Z","closed_at":"2018-06-25T14:14:37Z","author_association":"CONTRIBUTOR","body":"Hey, great job on apiscout!\r\n\r\nI've noticed that recent(ish) changes to idaapi have broken some stuff in apiscout. This is what I get when I try to run the script on `IDA Version 7.0.170914 Linux x86_64`:\r\n\r\n```\r\n/home/michal/work/apiscout/ida_scout.py: Invalid chooser passed.\r\nTraceback (most recent call last):\r\n  File \"/home/michal/ida-7.0/python/ida_idaapi.py\", line 553, in IDAPython_ExecScript\r\n    execfile(script, g)\r\n  File \"/home/michal/work/apiscout/ida_scout.py\", line 63, in <module>\r\n    main()\r\n  File \"/home/michal/work/apiscout/ida_scout.py\", line 42, in main\r\n    parameters = tools.formGetParameters()\r\n  File \"/home/michal/work/apiscout/apiscout/IdaTools.py\", line 148, in formGetParameters\r\n    form = IdaApiScoutOptionsForm(db_folder)\r\n  File \"/home/michal/work/apiscout/apiscout/IdaForm.py\", line 84, in __init__\r\n    'cApiDbChooser' : Form.EmbeddedChooserControl(self.apiDbChooser)\r\n  File \"/home/michal/ida-7.0/python/ida_kernwin.py\", line 4219, in __init__\r\n    raise ValueError(\"Invalid chooser passed.\")\r\nValueError: Invalid chooser passed.\r\n```\r\nMy guess is that they made some breaking changes in the Choose interface, as seen here (give it a moment to load, it's a pretty big diff):\r\nhttps://github.com/idapython/src/commit/d99a89369741ce272ba792d6f087d0739a2f8ac7#diff-35a3e7c5c3a9f77d6e7f50ec29de6401R680\r\n\r\nDoing a rough `sed s/Choose2/Choose/g` on the `IdaForm.py` seems to fix the issue, however, probably some more examination should be done ;)\r\n\r\nI'll take a look at the idaapi form implementation and apiscout implementation and will probably report back in a few days \r\nCheers!\r\n"}}
{"actor":{"display_login":"danielplohmann"}}