{"action":"closed","issue":{"url":"https://api.github.com/repos/NYUCCL/psiTurk/issues/166","labels_url":"https://api.github.com/repos/NYUCCL/psiTurk/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/NYUCCL/psiTurk/issues/166/comments","events_url":"https://api.github.com/repos/NYUCCL/psiTurk/issues/166/events","html_url":"https://github.com/NYUCCL/psiTurk/issues/166","id":56915187,"number":166,"title":"Permissions not being set up correctly","user":{"login":"braingineer","id":1455742,"avatar_url":"https://avatars.githubusercontent.com/u/1455742?v=3","gravatar_id":"","url":"https://api.github.com/users/braingineer","html_url":"https://github.com/braingineer","followers_url":"https://api.github.com/users/braingineer/followers","following_url":"https://api.github.com/users/braingineer/following{/other_user}","gists_url":"https://api.github.com/users/braingineer/gists{/gist_id}","starred_url":"https://api.github.com/users/braingineer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braingineer/subscriptions","organizations_url":"https://api.github.com/users/braingineer/orgs","repos_url":"https://api.github.com/users/braingineer/repos","events_url":"https://api.github.com/users/braingineer/events{/privacy}","received_events_url":"https://api.github.com/users/braingineer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-07T15:44:20Z","updated_at":"2015-02-15T19:25:01Z","closed_at":"2015-02-15T19:25:01Z","body":"I wanted to post both so you will know about it and in case anyone else gets it. \r\n\r\nFresh psiturk install.   The permissions are set up in a way that things don't have the read bit set and I can't do anything.  See errors below.  I found the following worked: \r\n$ sudo find /usr/local/lib/python2.7/dist-packages/PsiTurk-2.1.1-py2.7.egg/ -type f -exec chmod 644 {} +\r\n\r\nCheers,\r\nBrian\r\n\r\nSystem info:\r\n$ cat /etc/lsb-release\r\nDISTRIB_ID=LinuxMint\r\nDISTRIB_RELEASE=17\r\nDISTRIB_CODENAME=qiana\r\nDISTRIB_DESCRIPTION=\"Linux Mint 17 Qiana\"\r\n\r\nExamples of failure:\r\n $ psiturk-setup-example\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/psiturk-setup-example\", line 5, in <module>\r\n    from pkg_resources import load_entry_point\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 2749, in <module>\r\n    working_set = WorkingSet._build_master()\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 444, in _build_master\r\n    ws.require(__requires__)\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 725, in require\r\n    needed = self.resolve(parse_requirements(requirements))\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 633, in resolve\r\n    requirements.extend(dist.requires(req.extras)[::-1])\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 2291, in requires\r\n    dm = self._dep_map\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 2277, in _dep_map\r\n    for extra,reqs in split_sections(self._get_metadata(name)):\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 2715, in split_sections\r\n    for line in yield_lines(s):\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 1989, in yield_lines\r\n    for ss in strs:\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 2305, in _get_metadata\r\n    for line in self.get_metadata_lines(name):\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 1369, in get_metadata_lines\r\n    return yield_lines(self.get_metadata(name))\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 1361, in get_metadata\r\n    return self._get(self._fn(self.egg_info,name))\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 1470, in _get\r\n    stream = open(path, 'rb')\r\nIOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/PsiTurk-2.1.1-py2.7.egg/EGG-INFO/requires.txt'\r\n\r\n$ psiturk --version\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/psiturk\", line 5, in <module>\r\n    from pkg_resources import load_entry_point\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 2749, in <module>\r\n    working_set = WorkingSet._build_master()\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 444, in _build_master\r\n    ws.require(__requires__)\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 725, in require\r\n    needed = self.resolve(parse_requirements(requirements))\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 633, in resolve\r\n    requirements.extend(dist.requires(req.extras)[::-1])\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 2291, in requires\r\n    dm = self._dep_map\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 2277, in _dep_map\r\n    for extra,reqs in split_sections(self._get_metadata(name)):\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 2715, in split_sections\r\n    for line in yield_lines(s):\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 1989, in yield_lines\r\n    for ss in strs:\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 2305, in _get_metadata\r\n    for line in self.get_metadata_lines(name):\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 1369, in get_metadata_lines\r\n    return yield_lines(self.get_metadata(name))\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 1361, in get_metadata\r\n    return self._get(self._fn(self.egg_info,name))\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 1470, in _get\r\n    stream = open(path, 'rb')\r\nIOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/PsiTurk-2.1.1-py2.7.egg/EGG-INFO/requires.txt'\r\n\r\n "}}