{"action":"created","issue":{"url":"https://api.github.com/repos/quokkaproject/quokka/issues/158","labels_url":"https://api.github.com/repos/quokkaproject/quokka/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/quokkaproject/quokka/issues/158/comments","events_url":"https://api.github.com/repos/quokkaproject/quokka/issues/158/events","html_url":"https://github.com/quokkaproject/quokka/issues/158","id":36990499,"number":158,"title":"WSGI with apache : Module cannot be found","user":{"login":"rico-bee","id":5234655,"avatar_url":"https://avatars.githubusercontent.com/u/5234655?v=3","gravatar_id":"","url":"https://api.github.com/users/rico-bee","html_url":"https://github.com/rico-bee","followers_url":"https://api.github.com/users/rico-bee/followers","following_url":"https://api.github.com/users/rico-bee/following{/other_user}","gists_url":"https://api.github.com/users/rico-bee/gists{/gist_id}","starred_url":"https://api.github.com/users/rico-bee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rico-bee/subscriptions","organizations_url":"https://api.github.com/users/rico-bee/orgs","repos_url":"https://api.github.com/users/rico-bee/repos","events_url":"https://api.github.com/users/rico-bee/events{/privacy}","received_events_url":"https://api.github.com/users/rico-bee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-07-02T15:00:06Z","updated_at":"2015-03-26T16:44:35Z","closed_at":null,"body":"I am trying to configure QUOKKA from apache via wsgi.\r\n\r\nHowever I got some error:\r\n\r\n[Wed Jul 02 14:24:48 2014] [error] [client xxxxxxxxxxxxxxxxx] mod_wsgi (pid=16559): Target WSGI script '/data/rzh/quokka/wsgi.py' cannot be loaded as Python module.\r\n[Wed Jul 02 14:24:48 2014] [error] [client xxxxxxxxxxxxxxxxx] mod_wsgi (pid=16559): Exception occurred processing WSGI script '/data/rzh/quokka/wsgi.py'.\r\n[Wed Jul 02 14:24:48 2014] [error] [client xxxxxxxxxxxxxxxxx] Traceback (most recent call last):\r\n[Wed Jul 02 14:24:48 2014] [error] [client xxxxxxxxxxxxxxxxx]   File \"/data/rzh/quokka/wsgi.py\", line 19, in <module>\r\n[Wed Jul 02 14:24:48 2014] [error] [client xxxxxxxxxxxxxxxxx]     application = DispatcherMiddleware(create_app(), {\r\n[Wed Jul 02 14:24:48 2014] [error] [client xxxxxxxxxxxxxxxxx]   File \"/data/rzh/quokka/quokka/__init__.py\", line 28, in create_app\r\n[Wed Jul 02 14:24:48 2014] [error] [client xxxxxxxxxxxxxxxxx]     app = QuokkaApp('quokka')\r\n[Wed Jul 02 14:24:48 2014] [error] [client xxxxxxxxxxxxxxxxx] NameError: global name 'QuokkaApp' is not defined\r\n\r\nmy wsgi entry file looks like this:\r\n\r\n```\r\n# -*- coding: utf-8 -*-\r\nimport os,sys\r\nvirtenv = '/data/rzh/py2.7/'\r\nvirtualenv = os.path.join(virtenv, 'bin/activate_this.py')\r\ntry:\r\n        execfile(virtualenv, dict(__file__=virtualenv))\r\nexcept IOError:\r\n        pass\r\n\r\nsys.path.insert(0, '/data/rzh/quokka')\r\nsys.path.insert(1, '/data/rzh/quokka/quokka')\r\n\r\n\r\nfrom werkzeug.serving import run_simple\r\nfrom werkzeug.wsgi import DispatcherMiddleware\r\n\r\nfrom quokka import create_app, create_api\r\n\r\napplication = DispatcherMiddleware(create_app(), {\r\n    '/api': create_api()\r\n})\r\n\r\nif __name__ == \"__main__\":\r\n    run_simple(\r\n        '0.0.0.0',\r\n        5000,\r\n        application,\r\n        use_reloader=True,\r\n        use_debugger=True\r\n    )\r\n```\r\n\r\n\r\nPlease help me with this,, many thanks\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/quokkaproject/quokka/issues/comments/86614651","html_url":"https://github.com/quokkaproject/quokka/issues/158#issuecomment-86614651","issue_url":"https://api.github.com/repos/quokkaproject/quokka/issues/158","id":86614651,"user":{"login":"yasoob","id":3696393,"avatar_url":"https://avatars.githubusercontent.com/u/3696393?v=3","gravatar_id":"","url":"https://api.github.com/users/yasoob","html_url":"https://github.com/yasoob","followers_url":"https://api.github.com/users/yasoob/followers","following_url":"https://api.github.com/users/yasoob/following{/other_user}","gists_url":"https://api.github.com/users/yasoob/gists{/gist_id}","starred_url":"https://api.github.com/users/yasoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasoob/subscriptions","organizations_url":"https://api.github.com/users/yasoob/orgs","repos_url":"https://api.github.com/users/yasoob/repos","events_url":"https://api.github.com/users/yasoob/events{/privacy}","received_events_url":"https://api.github.com/users/yasoob/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T16:44:35Z","updated_at":"2015-03-26T16:44:35Z","body":"@rochacbruno this issue is good to close."}}