{"action":"created","issue":{"url":"https://api.github.com/repos/BrightcoveOS/Diamond/issues/773","labels_url":"https://api.github.com/repos/BrightcoveOS/Diamond/issues/773/labels{/name}","comments_url":"https://api.github.com/repos/BrightcoveOS/Diamond/issues/773/comments","events_url":"https://api.github.com/repos/BrightcoveOS/Diamond/issues/773/events","html_url":"https://github.com/BrightcoveOS/Diamond/issues/773","id":51100361,"number":773,"title":"\"pip install diamond\" failed (CentOS 7, diamond 3.5.0)","user":{"login":"AlexAkulov","id":7137047,"avatar_url":"https://avatars.githubusercontent.com/u/7137047?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexAkulov","html_url":"https://github.com/AlexAkulov","followers_url":"https://api.github.com/users/AlexAkulov/followers","following_url":"https://api.github.com/users/AlexAkulov/following{/other_user}","gists_url":"https://api.github.com/users/AlexAkulov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexAkulov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexAkulov/subscriptions","organizations_url":"https://api.github.com/users/AlexAkulov/orgs","repos_url":"https://api.github.com/users/AlexAkulov/repos","events_url":"https://api.github.com/users/AlexAkulov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexAkulov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-05T13:48:05Z","updated_at":"2015-04-16T13:35:42Z","closed_at":null,"body":"Hello,\r\nI can not install Diamond through \"pip\" in CentOS 7\r\nInstallation fails with the error: \r\n> ...\r\n> error: can't copy 'rpm/systemd/diamond.service': doesn't exist or not a regular file\r\n> ...\r\n\r\nFile setup.py in package diamond-3.5.0.tar.gz contains:\r\n```python\r\nif distro in ['centos', 'redhat', 'debian', 'fedora']:\r\n            data_files.append(('/etc/init.d',\r\n                               ['bin/init.d/diamond']))\r\n            data_files.append(('/var/log/diamond',\r\n                               ['.keep']))\r\n>>>            if distro_major_version >= '7' and not distro == 'debian':\r\n                data_files.append(('/usr/lib/systemd/system',\r\n                                   ['rpm/systemd/diamond.service']))\r\n            elif distro_major_version >= '6' and not distro == 'debian':\r\n                data_files.append(('/etc/init',\r\n                                   ['rpm/upstart/diamond.conf']))\r\n```\r\nbut there is no file \"rpm/systemd/diamond.service\" in the archive"},"comment":{"url":"https://api.github.com/repos/BrightcoveOS/Diamond/issues/comments/93735645","html_url":"https://github.com/BrightcoveOS/Diamond/issues/773#issuecomment-93735645","issue_url":"https://api.github.com/repos/BrightcoveOS/Diamond/issues/773","id":93735645,"user":{"login":"mrh666","id":6307174,"avatar_url":"https://avatars.githubusercontent.com/u/6307174?v=3","gravatar_id":"","url":"https://api.github.com/users/mrh666","html_url":"https://github.com/mrh666","followers_url":"https://api.github.com/users/mrh666/followers","following_url":"https://api.github.com/users/mrh666/following{/other_user}","gists_url":"https://api.github.com/users/mrh666/gists{/gist_id}","starred_url":"https://api.github.com/users/mrh666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrh666/subscriptions","organizations_url":"https://api.github.com/users/mrh666/orgs","repos_url":"https://api.github.com/users/mrh666/repos","events_url":"https://api.github.com/users/mrh666/events{/privacy}","received_events_url":"https://api.github.com/users/mrh666/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T13:35:42Z","updated_at":"2015-04-16T13:35:42Z","body":"I solve it this way:\r\ngit clone https://github.com/python-diamond/Diamond.git\r\ncd Diamond\r\npython setup.py build\r\npython setup.py install\r\ncp /etc/diamond/diamond.conf.example /etc/diamond/diamond.conf\r\nsystemctl enable diamond\r\n\r\nAND...\r\n# ps xa | grep diamond\r\n65 ? Ss 0:03 /usr/bin/python /usr/bin/diamond --log-stdout --foreground\r\n\r\nGood luck."}}