{"id":26697,"library":"aimmo","title":"AIMmo","description":"AIMmo is a game-based platform for learning artificial intelligence and programming, featuring the creation of AI agents to compete in a multiplayer game. Current version is 2.11.3, with irregular releases.","status":"active","version":"2.11.3","language":"python","source_language":"en","source_url":"https://github.com/ocadotechnology/aimmo","tags":["AI","game","learning","Django","WebSocket"],"install":[{"cmd":"pip install aimmo","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required for Django integration","package":"django","optional":true},{"reason":"Required for WebSocket support","package":"eventlet","optional":false}],"imports":[{"note":"Primary game class","symbol":"Game","correct":"from aimmo import Game"},{"note":"Old import path no longer works","wrong":"from aimmo.avatar import Avatar","symbol":"Avatar","correct":"from aimmo import Avatar"}],"quickstart":{"code":"from aimmo import Game\n\ngame = Game()\n# Start the game with default settings\ngame.run()\nprint('Game started successfully')","lang":"python","description":"Basic example of creating and running an AIMmo game."},"warnings":[{"fix":"Use 'from aimmo import Avatar' instead of 'from aimmo.avatar import Avatar'.","message":"In version 2.0.0, the Avatar class was moved from aimmo.avatar to aimmo directly. Old imports will break.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Pass render=True to game.run() if you need visual output.","message":"The 'run()' method without arguments is deprecated; use 'run(render=True)' to enable rendering.","severity":"deprecated","affected_versions":"<2.11.0"},{"fix":"Install eventlet: pip install eventlet","message":"Requires eventlet for WebSocket functionality; missing installation will cause runtime errors when the game tries to connect.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Change import to: from aimmo import Avatar","cause":"Avatar class moved to aimmo directly in version 2.0.0.","error":"ModuleNotFoundError: No module named 'aimmo.avatar'"},{"fix":"Upgrade aimmo: pip install --upgrade aimmo","cause":"Incorrect installation or very old version (pre-2.0.0).","error":"AttributeError: module 'aimmo' has no attribute 'Game'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}