{"action":"created","issue":{"url":"https://api.github.com/repos/spotify/echoprint-server/issues/7","repository_url":"https://api.github.com/repos/spotify/echoprint-server","labels_url":"https://api.github.com/repos/spotify/echoprint-server/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/spotify/echoprint-server/issues/7/comments","events_url":"https://api.github.com/repos/spotify/echoprint-server/issues/7/events","html_url":"https://github.com/spotify/echoprint-server/issues/7","id":188194433,"number":7,"title":"Python scripts not able to find C library","user":{"login":"samuelba","id":3610764,"avatar_url":"https://avatars.githubusercontent.com/u/3610764?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelba","html_url":"https://github.com/samuelba","followers_url":"https://api.github.com/users/samuelba/followers","following_url":"https://api.github.com/users/samuelba/following{/other_user}","gists_url":"https://api.github.com/users/samuelba/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelba/subscriptions","organizations_url":"https://api.github.com/users/samuelba/orgs","repos_url":"https://api.github.com/users/samuelba/repos","events_url":"https://api.github.com/users/samuelba/events{/privacy}","received_events_url":"https://api.github.com/users/samuelba/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-09T08:54:53Z","updated_at":"2016-11-09T10:06:38Z","closed_at":"2016-11-09T10:06:38Z","body":"I installed the python extension module with\r\n\r\n```\r\nsudo python setup.py install\r\n```\r\n\r\nand `echoprint-decode` is working correct. But `echoprint-inverted-index` does not work, because it cannot find the C library. What am I doing wrong?\r\n\r\n```\r\n$ cat codes.txt | echoprint-inverted-index index.bin\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/echoprint-inverted-index\", line 19, in <module>\r\n    create_inverted_index(streamer(sys.stdin), args.indexfile)\r\n  File \"/home/sam/.local/lib/python2.7/site-packages/echoprint_server/lib.py\", line 55, in create_inverted_index\r\n    _create_index_block(list(batch), batch_output_path)\r\nNameError: global name '_create_index_block' is not defined\r\n```"},"comment":{"url":"https://api.github.com/repos/spotify/echoprint-server/issues/comments/259377287","html_url":"https://github.com/spotify/echoprint-server/issues/7#issuecomment-259377287","issue_url":"https://api.github.com/repos/spotify/echoprint-server/issues/7","id":259377287,"user":{"login":"nicolamontecchio","id":346837,"avatar_url":"https://avatars.githubusercontent.com/u/346837?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolamontecchio","html_url":"https://github.com/nicolamontecchio","followers_url":"https://api.github.com/users/nicolamontecchio/followers","following_url":"https://api.github.com/users/nicolamontecchio/following{/other_user}","gists_url":"https://api.github.com/users/nicolamontecchio/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolamontecchio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolamontecchio/subscriptions","organizations_url":"https://api.github.com/users/nicolamontecchio/orgs","repos_url":"https://api.github.com/users/nicolamontecchio/repos","events_url":"https://api.github.com/users/nicolamontecchio/events{/privacy}","received_events_url":"https://api.github.com/users/nicolamontecchio/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T10:06:38Z","updated_at":"2016-11-09T10:06:38Z","body":"you installed the lib with `sudo ...` - that uses the system python\r\nyou also appear to have another installation of python in your home (see the line `/home/sam/.local/...`); that won't be able to find the library you installed because it's a different, separated installation. \r\n\r\n`echoprint-inverted-index` works because it doesn't depend on any library calls\r\n\r\nInstalling without `sudo` will fix the problem. I'd suggest you also look into the `virtualenv` (and `virtualenv-wrapper`) packages http://virtualenvwrapper.readthedocs.io/en/latest/ "}}
{"actor":{"display_login":"nicolamontecchio"}}