{"action":"closed","issue":{"url":"https://api.github.com/repos/lingthio/Flask-User/issues/118","repository_url":"https://api.github.com/repos/lingthio/Flask-User","labels_url":"https://api.github.com/repos/lingthio/Flask-User/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/lingthio/Flask-User/issues/118/comments","events_url":"https://api.github.com/repos/lingthio/Flask-User/issues/118/events","html_url":"https://github.com/lingthio/Flask-User/issues/118","id":155638279,"number":118,"title":"Blueprint Collisions ","user":{"login":"ianzimmerman","id":18133011,"avatar_url":"https://avatars.githubusercontent.com/u/18133011?v=3","gravatar_id":"","url":"https://api.github.com/users/ianzimmerman","html_url":"https://github.com/ianzimmerman","followers_url":"https://api.github.com/users/ianzimmerman/followers","following_url":"https://api.github.com/users/ianzimmerman/following{/other_user}","gists_url":"https://api.github.com/users/ianzimmerman/gists{/gist_id}","starred_url":"https://api.github.com/users/ianzimmerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianzimmerman/subscriptions","organizations_url":"https://api.github.com/users/ianzimmerman/orgs","repos_url":"https://api.github.com/users/ianzimmerman/repos","events_url":"https://api.github.com/users/ianzimmerman/events{/privacy}","received_events_url":"https://api.github.com/users/ianzimmerman/received_events","type":"User","site_admin":false},"labels":[{"id":88340494,"url":"https://api.github.com/repos/lingthio/Flask-User/labels/Can%20not%20reproduce","name":"Can not reproduce","color":"d4c5f9","default":false},{"id":236645056,"url":"https://api.github.com/repos/lingthio/Flask-User/labels/Need%20more%20info","name":"Need more info","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-05-19T01:49:49Z","updated_at":"2016-11-15T02:19:36Z","closed_at":"2016-11-15T02:19:36Z","body":"```\n[Thu May 19 01:15:28.088805 2016] [:error] [pid 9708] [remote 136.243.152.18:54250] mod_wsgi (pid=9708): Target WSGI script '/opt/python/current/app/application.py' cannot be loaded as Python module.\n[Thu May 19 01:15:28.088868 2016] [:error] [pid 9708] [remote 136.243.152.18:54250] mod_wsgi (pid=9708): Exception occurred processing WSGI script '/opt/python/current/app/application.py'.\n[Thu May 19 01:15:28.088902 2016] [:error] [pid 9708] [remote 136.243.152.18:54250] Traceback (most recent call last):\n[Thu May 19 01:15:28.088970 2016] [:error] [pid 9708] [remote 136.243.152.18:54250]   File \"/opt/python/current/app/application.py\", line 2, in <module>\n[Thu May 19 01:15:28.088979 2016] [:error] [pid 9708] [remote 136.243.152.18:54250]     from gifc import app as application\n[Thu May 19 01:15:28.089011 2016] [:error] [pid 9708] [remote 136.243.152.18:54250]   File \"/opt/python/current/app/gifc/__init__.py\", line 48, in <module>\n[Thu May 19 01:15:28.089019 2016] [:error] [pid 9708] [remote 136.243.152.18:54250]     user_manager = UserManager(db_adapter, app=app) # password_validator=my_password_validator\n[Thu May 19 01:15:28.089058 2016] [:error] [pid 9708] [remote 136.243.152.18:54250]   File \"/opt/python/run/venv/lib/python3.4/site-packages/flask_user/__init__.py\", line 53, in __init__\n[Thu May 19 01:15:28.089066 2016] [:error] [pid 9708] [remote 136.243.152.18:54250]     self.init_app(app, db_adapter, **kwargs)\n[Thu May 19 01:15:28.089094 2016] [:error] [pid 9708] [remote 136.243.152.18:54250]   File \"/opt/python/run/venv/lib/python3.4/site-packages/flask_user/__init__.py\", line 173, in init_app\n[Thu May 19 01:15:28.089101 2016] [:error] [pid 9708] [remote 136.243.152.18:54250]     app.register_blueprint(blueprint)\n[Thu May 19 01:15:28.089133 2016] [:error] [pid 9708] [remote 136.243.152.18:54250]   File \"/opt/python/run/venv/lib/python3.4/site-packages/flask/app.py\", line 62, in wrapper_func\n[Thu May 19 01:15:28.089140 2016] [:error] [pid 9708] [remote 136.243.152.18:54250]     return f(self, *args, **kwargs)\n[Thu May 19 01:15:28.089169 2016] [:error] [pid 9708] [remote 136.243.152.18:54250]   File \"/opt/python/run/venv/lib/python3.4/site-packages/flask/app.py\", line 885, in register_blueprint\n[Thu May 19 01:15:28.089175 2016] [:error] [pid 9708] [remote 136.243.152.18:54250]     (blueprint, self.blueprints[blueprint.name], blueprint.name)\n[Thu May 19 01:15:28.089199 2016] [:error] [pid 9708] [remote 136.243.152.18:54250] AssertionError: A blueprint's name collision occurred between <flask.blueprints.Blueprint object at 0x7f7d9aa710b8> and <flask.blueprints.Blueprint object at 0x7f7d9b053b38>.  Both share the same name \"flask_user\".  Blueprints that are created on the fly need unique names.\n```\n\nApp works locally, but when deployed to AWS above error occurs\n\n```\n# Setup Flask-User\ndb_adapter = SQLAlchemyAdapter(db, User)        # Register the User model\nuser_manager = UserManager(db_adapter, app)\n```\n\nDeploying to AWS\n"}}
{"actor":{"display_login":"lingthio"}}