{"action":"created","issue":{"url":"https://api.github.com/repos/autopkg/autopkg/issues/253","repository_url":"https://api.github.com/repos/autopkg/autopkg","labels_url":"https://api.github.com/repos/autopkg/autopkg/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/autopkg/autopkg/issues/253/comments","events_url":"https://api.github.com/repos/autopkg/autopkg/issues/253/events","html_url":"https://github.com/autopkg/autopkg/issues/253","id":137648714,"number":253,"title":"weird issue: TypeError: string indices must be integers","user":{"login":"andreweo","id":16384840,"avatar_url":"https://avatars.githubusercontent.com/u/16384840?v=3","gravatar_id":"","url":"https://api.github.com/users/andreweo","html_url":"https://github.com/andreweo","followers_url":"https://api.github.com/users/andreweo/followers","following_url":"https://api.github.com/users/andreweo/following{/other_user}","gists_url":"https://api.github.com/users/andreweo/gists{/gist_id}","starred_url":"https://api.github.com/users/andreweo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreweo/subscriptions","organizations_url":"https://api.github.com/users/andreweo/orgs","repos_url":"https://api.github.com/users/andreweo/repos","events_url":"https://api.github.com/users/andreweo/events{/privacy}","received_events_url":"https://api.github.com/users/andreweo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-01T18:19:58Z","updated_at":"2016-03-01T20:23:41Z","closed_at":null,"body":"I try to run autopkg run -v ~/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/Mozilla/Firefox.install.recipe \r\n\r\nbut get:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/autopkg\", line 1662, in <module>\r\n    sys.exit(main(sys.argv))\r\n  File \"/usr/local/bin/autopkg\", line 1656, in main\r\n    exit(subcommands[verb]['function'](argv))\r\n  File \"/usr/local/bin/autopkg\", line 1422, in run_recipes\r\n    search_github=make_suggestions)\r\n  File \"/usr/local/bin/autopkg\", line 348, in load_recipe\r\n    search_github=search_github)\r\n  File \"/usr/local/bin/autopkg\", line 332, in load_recipe\r\n    search_github=search_github)\r\n  File \"/usr/local/bin/autopkg\", line 236, in locate_recipe\r\n    recipe_file = find_recipe(name, override_dirs + recipe_dirs)\r\n  File \"/usr/local/bin/autopkg\", line 191, in find_recipe\r\n    return (find_recipe_by_identifier(id_or_name, search_dirs) or\r\n  File \"/Library/AutoPkg/autopkglib/__init__.py\", line 141, in find_recipe_by_identifier\r\n    if get_identifier_from_recipe_file(match) == identifier:\r\n  File \"/Library/AutoPkg/autopkglib/__init__.py\", line 126, in get_identifier_from_recipe_file\r\n    return get_identifier(recipe_plist)\r\n  File \"/Library/AutoPkg/autopkglib/__init__.py\", line 108, in get_identifier\r\n    return recipe[\"Identifier\"]\r\nTypeError: string indices must be integers\r\n\r\nI have retried reinstalling autopkg and autopkgr by removing the following files, and reinstalling it again, but it didn't help...\r\n\r\n/Library/Autopkg\r\n/Applications/AutoPkgr.app\r\n4 plists in /Library/LaunchDaemons\r\n\r\nThe prefs in ~/Library/Preferences/com.github.autopkg.plist\r\nand in ~/Library/Preferences/com.lindegroup/AutoPkgr\r\nand ~/Library/Application Support/AutoPkgr\r\n\r\nand of course ~/Library/AutoPkg\r\n\r\nDoes anyone have a solution.\r\nIt has worked for me on this machine, and on a virtual machine I have it working (for now)\r\nbut I want it to work again on this machine\r\n\r\nHelp would be much appreciated"},"comment":{"url":"https://api.github.com/repos/autopkg/autopkg/issues/comments/190886013","html_url":"https://github.com/autopkg/autopkg/issues/253#issuecomment-190886013","issue_url":"https://api.github.com/repos/autopkg/autopkg/issues/253","id":190886013,"user":{"login":"andreweo","id":16384840,"avatar_url":"https://avatars.githubusercontent.com/u/16384840?v=3","gravatar_id":"","url":"https://api.github.com/users/andreweo","html_url":"https://github.com/andreweo","followers_url":"https://api.github.com/users/andreweo/followers","following_url":"https://api.github.com/users/andreweo/following{/other_user}","gists_url":"https://api.github.com/users/andreweo/gists{/gist_id}","starred_url":"https://api.github.com/users/andreweo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreweo/subscriptions","organizations_url":"https://api.github.com/users/andreweo/orgs","repos_url":"https://api.github.com/users/andreweo/repos","events_url":"https://api.github.com/users/andreweo/events{/privacy}","received_events_url":"https://api.github.com/users/andreweo/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T20:23:41Z","updated_at":"2016-03-01T20:23:41Z","body":"> Of course the current working directory (.) is also in the autopkg search path, so check wherever you're executing autopkg from to see whether you have any stray recipes there\r\nI didn't realise that!\r\nHours of work troubleshooting....\r\nSolution: going to cd ~/Library/AutoPkg/ in stead of ~\r\n\r\nThank you sooooo much for the help! and answer!\r\n\r\np.s: what does linting do? "}}