{"action":"created","issue":{"url":"https://api.github.com/repos/powerline/powerline/issues/1308","labels_url":"https://api.github.com/repos/powerline/powerline/issues/1308/labels{/name}","comments_url":"https://api.github.com/repos/powerline/powerline/issues/1308/comments","events_url":"https://api.github.com/repos/powerline/powerline/issues/1308/events","html_url":"https://github.com/powerline/powerline/issues/1308","id":57225551,"number":1308,"title":"tmux fails to raise statusline (green bar instead) using master branch of tmux [solved]","user":{"login":"pcxmac","id":6551638,"avatar_url":"https://avatars.githubusercontent.com/u/6551638?v=3","gravatar_id":"","url":"https://api.github.com/users/pcxmac","html_url":"https://github.com/pcxmac","followers_url":"https://api.github.com/users/pcxmac/followers","following_url":"https://api.github.com/users/pcxmac/following{/other_user}","gists_url":"https://api.github.com/users/pcxmac/gists{/gist_id}","starred_url":"https://api.github.com/users/pcxmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcxmac/subscriptions","organizations_url":"https://api.github.com/users/pcxmac/orgs","repos_url":"https://api.github.com/users/pcxmac/repos","events_url":"https://api.github.com/users/pcxmac/events{/privacy}","received_events_url":"https://api.github.com/users/pcxmac/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/powerline/powerline/labels/c:b:tmux","name":"c:b:tmux","color":"5379e7"},{"url":"https://api.github.com/repos/powerline/powerline/labels/s:invalid","name":"s:invalid","color":"e6e6e6"},{"url":"https://api.github.com/repos/powerline/powerline/labels/t:bug","name":"t:bug","color":"FF0000"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-10T19:41:28Z","updated_at":"2015-04-29T07:29:12Z","closed_at":"2015-02-10T21:32:09Z","body":"hello, it's been a while since I have run tmux with powerline, before I have had really no issues Before I stopped using powerline I found that I had to manually set the background color to the tmux status line otherwise it was off color.\r\n\r\nI would use this in the .tmux.conf\r\n\r\nset -g status-style \"bg=colour234\"\r\n\r\nnow that I am using powerline again in tmux, the official way to install/config, I am having a problem getting tmux to execute powerline-config tmux setup. The PATH and POWERLINE_CONFIG_COMMAND are all set properly, and the command \"powerline-config tmux setup\" works AFTER i am in a tmux session (just not while starting tmux).\r\n\r\nhere is the redirected stderr/stdout for the command I ran (run-shell) from the tmux config while trying to execute powerline-config tmux setup.\r\n\r\n```\r\ncan't establish current session\r\nTraceback (most recent call last):\r\n  File \"/root/.local/bin/powerline-config\", line 22, in <module>\r\n    args.function(pl, args)\r\n  File \"/root/.local/lib/python3.4/site-packages/powerline/commands/config.py\", line 15, in __call__\r\n    self.function(*args, **kwargs)\r\n  File \"/root/.local/lib/python3.4/site-packages/powerline/bindings/config.py\", line 168, in tmux_setup\r\n    init_tmux_environment(pl, args)\r\n  File \"/root/.local/lib/python3.4/site-packages/powerline/bindings/config.py\", line 116, in init_tmux_environment\r\n    set_tmux_environment(varname, powerline.renderer.hlstyle(**highlight)[2:-1])\r\n  File \"/root/.local/lib/python3.4/site-packages/powerline/bindings/tmux/__init__.py\", line 53, in set_tmux_environment\r\n    run_tmux_command('set-environment', '-r', varname)\r\n  File \"/root/.local/lib/python3.4/site-packages/powerline/bindings/tmux/__init__.py\", line 32, in run_tmux_command\r\n    _run_tmux(subprocess.check_call, args)\r\n  File \"/root/.local/lib/python3.4/site-packages/powerline/bindings/tmux/__init__.py\", line 27, in _run_tmux\r\n    return runner([get_tmux_executable_name()] + list(args))\r\n  File \"/usr/lib/python3.4/subprocess.py\", line 561, in check_call\r\n    raise CalledProcessError(retcode, cmd)\r\nsubprocess.CalledProcessError: Command '['tmux', 'set-environment', '-r', '_POWERLINE_BACKGROUND_COLOR']' returned non-zero exit status 1\r\n```\r\n\r\nit seems as though the \"background color\" might be causing problems.\r\n\r\ntput colors reports \"256\", echo $TERM reports \"screen-256color\", I use rxvt-unicode compiled with --enable-unicode3, and have no problems with vim or zsh. Again, I can invoke powerline-config tmux setup after starting tmux, and I see everything I am supposed to, it just doesn't seem to work while binding/or running the command explicitly inside the .tmux.conf. \r\n\r\nsource \"/root/.local/lib/python3.4/site-packages/powerline/bindings/tmux/powerline.conf\"\r\n\r\n#set -g status-style \"bg=colour234\"\r\n\r\nrun-shell \"powerline-config tmux setup &> /root/error.info\"\r\n"},"comment":{"url":"https://api.github.com/repos/powerline/powerline/issues/comments/97331426","html_url":"https://github.com/powerline/powerline/issues/1308#issuecomment-97331426","issue_url":"https://api.github.com/repos/powerline/powerline/issues/1308","id":97331426,"user":{"login":"netsamir","id":1165885,"avatar_url":"https://avatars.githubusercontent.com/u/1165885?v=3","gravatar_id":"","url":"https://api.github.com/users/netsamir","html_url":"https://github.com/netsamir","followers_url":"https://api.github.com/users/netsamir/followers","following_url":"https://api.github.com/users/netsamir/following{/other_user}","gists_url":"https://api.github.com/users/netsamir/gists{/gist_id}","starred_url":"https://api.github.com/users/netsamir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netsamir/subscriptions","organizations_url":"https://api.github.com/users/netsamir/orgs","repos_url":"https://api.github.com/users/netsamir/repos","events_url":"https://api.github.com/users/netsamir/events{/privacy}","received_events_url":"https://api.github.com/users/netsamir/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T07:29:12Z","updated_at":"2015-04-29T07:29:12Z","body":"Hi, \r\n\r\nI have just removed my version 2.0, re-install version 1.9a and it works again.  It is very strange, it seems that some variable should be set somewhere. \r\n\r\nThank you again for your help. "}}