{"action":"created","issue":{"url":"https://api.github.com/repos/wee-slack/wee-slack/issues/540","repository_url":"https://api.github.com/repos/wee-slack/wee-slack","labels_url":"https://api.github.com/repos/wee-slack/wee-slack/issues/540/labels{/name}","comments_url":"https://api.github.com/repos/wee-slack/wee-slack/issues/540/comments","events_url":"https://api.github.com/repos/wee-slack/wee-slack/issues/540/events","html_url":"https://github.com/wee-slack/wee-slack/issues/540","id":308387305,"number":540,"title":"No module named websocket using pyenv","user":{"login":"neverfox","id":3344033,"avatar_url":"https://avatars1.githubusercontent.com/u/3344033?v=4","gravatar_id":"","url":"https://api.github.com/users/neverfox","html_url":"https://github.com/neverfox","followers_url":"https://api.github.com/users/neverfox/followers","following_url":"https://api.github.com/users/neverfox/following{/other_user}","gists_url":"https://api.github.com/users/neverfox/gists{/gist_id}","starred_url":"https://api.github.com/users/neverfox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neverfox/subscriptions","organizations_url":"https://api.github.com/users/neverfox/orgs","repos_url":"https://api.github.com/users/neverfox/repos","events_url":"https://api.github.com/users/neverfox/events{/privacy}","received_events_url":"https://api.github.com/users/neverfox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-25T21:26:27Z","updated_at":"2018-03-26T18:30:19Z","closed_at":null,"author_association":"NONE","body":"OS X High Sierra, all programs brew installed, e.g. `brew install weechat --with-aspell --with-lua --with-perl --with-python@2 --with-ruby`.\r\n```\r\n> pyenv virtualenv weechat\r\n> pyenv shell weechat\r\n> pip install websocket-client\r\n> pip list\r\npip (9.0.3)\r\nsetuptools (39.0.1)\r\nsix (1.11.0)\r\nwebsocket-client (0.47.0)\r\nwheel (0.30.0)\r\n> weechat\r\n```\r\n\r\n```\r\n         │17:22:10     |   ___       __         ______________        _____ \r\n         │17:22:10     |   __ |     / /___________  ____/__  /_______ __  /_\r\n         │17:22:10     |   __ | /| / /_  _ \\  _ \\  /    __  __ \\  __ `/  __/\r\n         │17:22:10     |   __ |/ |/ / /  __/  __/ /___  _  / / / /_/ // /_  \r\n         │17:22:10     |   ____/|__/  \\___/\\___/\\____/  /_/ /_/\\__,_/ \\__/  \r\n         │17:22:10     | WeeChat 2.1 [compiled on Mar 25 2018 12:05:32]\r\n         │17:22:10     | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\n         │17:22:10     | python: stdout/stderr (?): Traceback (most recent call last):\r\n         │17:22:10     | python: stdout/stderr (?):   File \"/Users/neverfox/.weechat/python/autoload/wee_slack.py\",\r\n         │             | line 28, in <module>\r\n         │17:22:10     | python: stdout/stderr (?):     from websocket import create_connection,\r\n         │             | WebSocketConnectionClosedException\r\n         │17:22:10     | python: stdout/stderr (?): ImportError: No module named websocket\r\n         │17:22:10 =!= | python: unable to parse file \"/Users/neverfox/.weechat/python/autoload/wee_slack.py\"\r\n         │17:22:10     | script: 347 scripts for WeeChat 2.1\r\n         │17:22:10     | Plugins loaded: alias, aspell, buflist, charset, exec, fifo, fset, irc, logger, lua, perl,\r\n         │             | python, relay, ruby, script, tcl, trigger, xfer\r\n```\r\nEither weechat isn't respecting the virtualenv or something else is wrong with the import of the `websocket` module. Thoughts?"},"comment":{"url":"https://api.github.com/repos/wee-slack/wee-slack/issues/comments/376266124","html_url":"https://github.com/wee-slack/wee-slack/issues/540#issuecomment-376266124","issue_url":"https://api.github.com/repos/wee-slack/wee-slack/issues/540","id":376266124,"user":{"login":"jalcine","id":452100,"avatar_url":"https://avatars3.githubusercontent.com/u/452100?v=4","gravatar_id":"","url":"https://api.github.com/users/jalcine","html_url":"https://github.com/jalcine","followers_url":"https://api.github.com/users/jalcine/followers","following_url":"https://api.github.com/users/jalcine/following{/other_user}","gists_url":"https://api.github.com/users/jalcine/gists{/gist_id}","starred_url":"https://api.github.com/users/jalcine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalcine/subscriptions","organizations_url":"https://api.github.com/users/jalcine/orgs","repos_url":"https://api.github.com/users/jalcine/repos","events_url":"https://api.github.com/users/jalcine/events{/privacy}","received_events_url":"https://api.github.com/users/jalcine/received_events","type":"User","site_admin":false},"created_at":"2018-03-26T18:30:19Z","updated_at":"2018-03-26T18:30:19Z","author_association":"NONE","body":"@neverfox I had this same issue.\r\n\r\nI ended up installing it globally for me under `pip install --user`.\r\n\r\nHowever, have you tried updating the `#!` in the `wee_slack.py` file? Perhaps to\r\n`/usr/bin/env python`?"}}
{"actor":{"display_login":"jalcine"}}