{"action":"created","issue":{"url":"https://api.github.com/repos/RLBot/RLBot/issues/257","repository_url":"https://api.github.com/repos/RLBot/RLBot","labels_url":"https://api.github.com/repos/RLBot/RLBot/issues/257/labels{/name}","comments_url":"https://api.github.com/repos/RLBot/RLBot/issues/257/comments","events_url":"https://api.github.com/repos/RLBot/RLBot/issues/257/events","html_url":"https://github.com/RLBot/RLBot/issues/257","id":361969211,"node_id":"MDU6SXNzdWUzNjE5NjkyMTE=","number":257,"title":"GUI Crashes when trying to add new loadout preset","user":{"login":"alex-polosky","id":7446085,"node_id":"MDQ6VXNlcjc0NDYwODU=","avatar_url":"https://avatars0.githubusercontent.com/u/7446085?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-polosky","html_url":"https://github.com/alex-polosky","followers_url":"https://api.github.com/users/alex-polosky/followers","following_url":"https://api.github.com/users/alex-polosky/following{/other_user}","gists_url":"https://api.github.com/users/alex-polosky/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-polosky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-polosky/subscriptions","organizations_url":"https://api.github.com/users/alex-polosky/orgs","repos_url":"https://api.github.com/users/alex-polosky/repos","events_url":"https://api.github.com/users/alex-polosky/events{/privacy}","received_events_url":"https://api.github.com/users/alex-polosky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-19T23:56:28Z","updated_at":"2018-09-20T00:32:05Z","closed_at":null,"author_association":"NONE","body":"I'm experiencing a crash when trying to add a new loadout preset via the gui. I could modify the config by hand (which I will most likely end up doing) and also debug it myself (which, also, I will probably end up doing) but I wanted to post an issue here to see if anyone else has had this error or if they have if they've fixed it.\r\n\r\nSteps to reproduce:\r\n1. Launch the gui by running `python ./runner_gui.py`\r\n1. Select a bot in the blue or orange team list\r\n1. Click the '...' button next to Loadout Preset\r\n1. Click the 'New' button\r\n1. Observe this crash report:\r\n\r\n```Python\r\nTraceback (most recent call last):\r\n  File \"T:\\code\\git\\RLBot\\src\\main\\python\\rlbot\\gui\\presets.py\", line 95, in __init__\r\n    self.agent_class = import_agent(python_file_path).get_loaded_class()\r\n  File \"T:\\code\\git\\RLBot\\src\\main\\python\\rlbot\\utils\\class_importer.py\", line 40, in import_agent\r\n    return import_class_with_base(python_file, BaseAgent)\r\n  File \"T:\\code\\git\\RLBot\\src\\main\\python\\rlbot\\utils\\class_importer.py\", line 52, in import_class_with_base\r\n    return ExternalClassWrapper(python_file, base_class)\r\n  File \"T:\\code\\git\\RLBot\\src\\main\\python\\rlbot\\utils\\class_importer.py\", line 21, in __init__\r\n    self.loaded_class, self.loaded_module = load_external_class(self.python_file, self.base_class)\r\n  File \"T:\\code\\git\\RLBot\\src\\main\\python\\rlbot\\utils\\class_importer.py\", line 62, in load_external_class\r\n    loaded_module = importlib.import_module(module_name)\r\n  File \"C:\\Program Files\\Anaconda3\\lib\\importlib\\__init__.py\", line 126, in import_module\r\n    return _bootstrap._gcd_import(name[level:], package, level)\r\n  File \"<frozen importlib._bootstrap>\", line 986, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 969, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 956, in _find_and_load_unlocked\r\nImportError: No module named 'base_agent'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"T:\\code\\git\\RLBot\\src\\main\\python\\rlbot\\gui\\preset_editors.py\", line 89, in add_new_preset\r\n    preset = self.preset_class(self.validate_name(\"new preset\", None))\r\n  File \"T:\\code\\git\\RLBot\\src\\main\\python\\rlbot\\gui\\presets.py\", line 96, in __init__\r\n    except (ValueError, ModuleNotFoundError):\r\nNameError: name 'ModuleNotFoundError' is not defined\r\n```"},"comment":{"url":"https://api.github.com/repos/RLBot/RLBot/issues/comments/423000976","html_url":"https://github.com/RLBot/RLBot/issues/257#issuecomment-423000976","issue_url":"https://api.github.com/repos/RLBot/RLBot/issues/257","id":423000976,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzAwMDk3Ng==","user":{"login":"alex-polosky","id":7446085,"node_id":"MDQ6VXNlcjc0NDYwODU=","avatar_url":"https://avatars0.githubusercontent.com/u/7446085?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-polosky","html_url":"https://github.com/alex-polosky","followers_url":"https://api.github.com/users/alex-polosky/followers","following_url":"https://api.github.com/users/alex-polosky/following{/other_user}","gists_url":"https://api.github.com/users/alex-polosky/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-polosky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-polosky/subscriptions","organizations_url":"https://api.github.com/users/alex-polosky/orgs","repos_url":"https://api.github.com/users/alex-polosky/repos","events_url":"https://api.github.com/users/alex-polosky/events{/privacy}","received_events_url":"https://api.github.com/users/alex-polosky/received_events","type":"User","site_admin":false},"created_at":"2018-09-20T00:32:05Z","updated_at":"2018-09-20T00:32:05Z","author_association":"NONE","body":"Figured it out: I'm using Python 3.5, which does not have ModuleNotFoundError defined. Whoops. Simply renamed any instance of that to ImportError and everything is running A OK."}}
{"actor":{"display_login":"alex-polosky"}}