{"action":"created","issue":{"url":"https://api.github.com/repos/graphite-project/graphite-web/issues/1388","labels_url":"https://api.github.com/repos/graphite-project/graphite-web/issues/1388/labels{/name}","comments_url":"https://api.github.com/repos/graphite-project/graphite-web/issues/1388/comments","events_url":"https://api.github.com/repos/graphite-project/graphite-web/issues/1388/events","html_url":"https://github.com/graphite-project/graphite-web/issues/1388","id":115954302,"number":1388,"title":"graphite.wsgi.example no longer adds installation to the sys.path","user":{"login":"movermeyer","id":1459385,"avatar_url":"https://avatars.githubusercontent.com/u/1459385?v=3","gravatar_id":"","url":"https://api.github.com/users/movermeyer","html_url":"https://github.com/movermeyer","followers_url":"https://api.github.com/users/movermeyer/followers","following_url":"https://api.github.com/users/movermeyer/following{/other_user}","gists_url":"https://api.github.com/users/movermeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/movermeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/movermeyer/subscriptions","organizations_url":"https://api.github.com/users/movermeyer/orgs","repos_url":"https://api.github.com/users/movermeyer/repos","events_url":"https://api.github.com/users/movermeyer/events{/privacy}","received_events_url":"https://api.github.com/users/movermeyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-09T20:04:35Z","updated_at":"2015-11-11T12:55:45Z","closed_at":null,"body":"On. 0.9.x branch:\r\n\r\nWhile trying to set up a graphite using the default configs:\r\n\r\n  1. [conf/graphite.wsgi.example](https://github.com/graphite-project/graphite-web/blob/0.9.x/conf/graphite.wsgi.example)\r\n  1. [examples/example-graphite-vhost.conf](https://github.com/graphite-project/graphite-web/blob/0.9.x/examples/example-graphite-vhost.conf)\r\n\r\nI get an error, as the code is unable to find the Graphite files:\r\n\r\n    [Mon Nov 09 19:27:27 2015] [error] ImportError: No module named graphite.logger\r\n    [Mon Nov 09 19:27:27 2015] [error] mod_wsgi (pid=336): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module.\r\n    [Mon Nov 09 19:27:27 2015] [error] mod_wsgi (pid=336): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.\r\n    [Mon Nov 09 19:27:27 2015] [error] Traceback (most recent call last):\r\n    [Mon Nov 09 19:27:27 2015] [error]   File \"/opt/graphite/conf/graphite.wsgi\", line 13, in <module>\r\n    [Mon Nov 09 19:27:27 2015] [error]     from graphite.logger import log\r\n    [Mon Nov 09 19:27:27 2015] [error] ImportError: No module named graphite.logger\r\n\r\nThis seems to be a result of [this change](https://github.com/graphite-project/graphite-web/commit/adfd8022f08eb7aeae3a852fb77a5888f3fa05c4#diff-23abe09633cc08ec065ca87688ad2ca2) by @deniszh which removed the line:\r\n\r\n    sys.path.append('/opt/graphite/webapp')\r\n\r\nIs this an expected behaviour, or perhaps through some magic (broken in my environment?) it is supposed to locate the installation directory?"},"comment":{"url":"https://api.github.com/repos/graphite-project/graphite-web/issues/comments/155775587","html_url":"https://github.com/graphite-project/graphite-web/issues/1388#issuecomment-155775587","issue_url":"https://api.github.com/repos/graphite-project/graphite-web/issues/1388","id":155775587,"user":{"login":"obfuscurity","id":494338,"avatar_url":"https://avatars.githubusercontent.com/u/494338?v=3","gravatar_id":"","url":"https://api.github.com/users/obfuscurity","html_url":"https://github.com/obfuscurity","followers_url":"https://api.github.com/users/obfuscurity/followers","following_url":"https://api.github.com/users/obfuscurity/following{/other_user}","gists_url":"https://api.github.com/users/obfuscurity/gists{/gist_id}","starred_url":"https://api.github.com/users/obfuscurity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obfuscurity/subscriptions","organizations_url":"https://api.github.com/users/obfuscurity/orgs","repos_url":"https://api.github.com/users/obfuscurity/repos","events_url":"https://api.github.com/users/obfuscurity/events{/privacy}","received_events_url":"https://api.github.com/users/obfuscurity/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T12:55:45Z","updated_at":"2015-11-11T12:55:45Z","body":"We can fix it in 0.9.x, but we have no plans to cut a new release from that branch."}}