{"action":"created","issue":{"url":"https://api.github.com/repos/graphite-project/graphite-web/issues/1081","labels_url":"https://api.github.com/repos/graphite-project/graphite-web/issues/1081/labels{/name}","comments_url":"https://api.github.com/repos/graphite-project/graphite-web/issues/1081/comments","events_url":"https://api.github.com/repos/graphite-project/graphite-web/issues/1081/events","html_url":"https://github.com/graphite-project/graphite-web/issues/1081","id":53368931,"number":1081,"title":"check-dependencies.py failing for pytz","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},"labels":[{"url":"https://api.github.com/repos/graphite-project/graphite-web/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/graphite-project/graphite-web/milestones/4","labels_url":"https://api.github.com/repos/graphite-project/graphite-web/milestones/4/labels","id":505375,"number":4,"title":"0.9.13","description":"","creator":{"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},"open_issues":2,"closed_issues":52,"state":"open","created_at":"2013-12-04T23:45:56Z","updated_at":"2015-01-05T06:42:24Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-01-05T06:42:23Z","updated_at":"2015-01-05T14:13:18Z","closed_at":null,"body":"A handful of requirements are being installed in `/opt/graphite/lib/python2.7/site-packages` rather than the default system location, when using `pip install -r requirements.txt`.\r\n\r\nThis is causing `check-dependencies.py` to fail for pytz unless `PYTHONPATH` is set to include the site-packages directory.\r\n\r\n```\r\n# ls -l /opt/graphite/lib/python2.7/site-packages/\r\ntotal 44\r\ndrwxr-xr-x  7 root root 4096 Jan  2 00:15 gunicorn\r\ndrwxr-xr-x  2 root root 4096 Jan  2 00:15 gunicorn-19.1.1.dist-info\r\ndrwxr-xr-x  6 root root 4096 Jan  2 00:15 pygments\r\ndrwxr-xr-x  2 root root 4096 Jan  2 00:15 Pygments-2.0.1.dist-info\r\ndrwxr-xr-x  3 root root 4096 Jan  5 01:13 pytz\r\ndrwxr-xr-x  2 root root 4096 Jan  5 01:13 pytz-2014.10.dist-info\r\ndrwxr-xr-x 14 root root 4096 Jan  2 00:15 sphinx\r\ndrwxr-xr-x  2 root root 4096 Jan  2 00:15 Sphinx-1.2.3.dist-info\r\ndrwxr-xr-x  3 root root 4096 Jan  2 00:15 sphinx_rtd_theme\r\ndrwxr-xr-x  2 root root 4096 Jan  2 00:15 sphinx_rtd_theme-0.1.6.dist-info\r\ndrwxr-xr-x  5 root root 4096 Jan  2 00:15 tests\r\n```\r\n\r\nI'm not sure what the correct fix is here. I hate to just remove pytz from `check-dependencies.py` but I don't have any better workarounds. FWIW, none of the other packages listed above are in `check-dependencies.py` or they'd fail the same way."},"comment":{"url":"https://api.github.com/repos/graphite-project/graphite-web/issues/comments/68712362","html_url":"https://github.com/graphite-project/graphite-web/issues/1081#issuecomment-68712362","issue_url":"https://api.github.com/repos/graphite-project/graphite-web/issues/1081","id":68712362,"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-01-05T14:13:18Z","updated_at":"2015-01-05T14:13:18Z","body":"@brutasse This was actually via source installation. Steps to reproduce on Ubuntu 14.10:\r\n\r\n```bash\r\n$ sudo su -\r\n# apt-get update\r\n# apt-get install -y libcairo2-dev libffi-dev pkg-config python-dev python-pip fontconfig apache2 libapache2-mod-wsgi git-core memcached\r\n# cd /usr/local/src/\r\n# git clone https://github.com/graphite-project/whisper.git\r\n# git clone https://github.com/graphite-project/carbon.git\r\n# git clone https://github.com/graphite-project/graphite-web.git\r\n# cd whisper/\r\n# git checkout 0.9.13-pre1\r\n# python setup.py install\r\n# cd ../carbon/\r\n# git checkout 0.9.13-pre1\r\n# pip install -r requirements.txt\r\n# python setup.py install\r\n# cd ../graphite-web/\r\n# git checkout 0.9.13-pre1\r\n# pip install -r requirements.txt\r\n# python check-dependencies.py\r\n```"}}