{"action":"created","issue":{"url":"https://api.github.com/repos/powerline/powerline/issues/1470","labels_url":"https://api.github.com/repos/powerline/powerline/issues/1470/labels{/name}","comments_url":"https://api.github.com/repos/powerline/powerline/issues/1470/comments","events_url":"https://api.github.com/repos/powerline/powerline/issues/1470/events","html_url":"https://github.com/powerline/powerline/issues/1470","id":112184611,"number":1470,"title":"OS X- 'int' object has no attribute 'lstrip' in right statusbar.","user":{"login":"dafstone","id":1128141,"avatar_url":"https://avatars.githubusercontent.com/u/1128141?v=3","gravatar_id":"","url":"https://api.github.com/users/dafstone","html_url":"https://github.com/dafstone","followers_url":"https://api.github.com/users/dafstone/followers","following_url":"https://api.github.com/users/dafstone/following{/other_user}","gists_url":"https://api.github.com/users/dafstone/gists{/gist_id}","starred_url":"https://api.github.com/users/dafstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dafstone/subscriptions","organizations_url":"https://api.github.com/users/dafstone/orgs","repos_url":"https://api.github.com/users/dafstone/repos","events_url":"https://api.github.com/users/dafstone/events{/privacy}","received_events_url":"https://api.github.com/users/dafstone/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/e:osx","name":"e:osx","color":"fbca04"},{"url":"https://api.github.com/repos/powerline/powerline/labels/t:bug","name":"t:bug","color":"FF0000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-10-19T16:37:36Z","updated_at":"2015-10-19T18:33:25Z","closed_at":null,"body":"Hi - \r\n\r\nMy powerline status has been working well for some time under el capitan (since install a couple of weeks back) but as of this morning I'm now getting:\r\n\r\n`'int object has not attribute 'lstrip' where my right hand statusbar should be.  \r\n\r\nI recently updated a couple of pip modules as I was chasing another problem, including psutil.  (This was previously at 3.1.1 ) and my statusbar is now broken. I'm not 100% sure this is the cause though, as I've also been updating a few other things. I rolled back to 3.1.1 but still no luck.\r\n\r\nI also run weekly brew updates, I also recently updated to el capitan.  \r\n\r\nLove to find the cause of this, or get some guidance on troubleshooting.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27526652-os-x-int-object-has-no-attribute-lstrip-in-right-statusbar?utm_campaign=plugin&utm_content=tracker%2F283196&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F283196&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/powerline/powerline/issues/comments/149306665","html_url":"https://github.com/powerline/powerline/issues/1470#issuecomment-149306665","issue_url":"https://api.github.com/repos/powerline/powerline/issues/1470","id":149306665,"user":{"login":"jaredbonobos","id":8225075,"avatar_url":"https://avatars.githubusercontent.com/u/8225075?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredbonobos","html_url":"https://github.com/jaredbonobos","followers_url":"https://api.github.com/users/jaredbonobos/followers","following_url":"https://api.github.com/users/jaredbonobos/following{/other_user}","gists_url":"https://api.github.com/users/jaredbonobos/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredbonobos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredbonobos/subscriptions","organizations_url":"https://api.github.com/users/jaredbonobos/orgs","repos_url":"https://api.github.com/users/jaredbonobos/repos","events_url":"https://api.github.com/users/jaredbonobos/events{/privacy}","received_events_url":"https://api.github.com/users/jaredbonobos/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T18:33:25Z","updated_at":"2015-10-19T18:33:25Z","body":"Hey all, i managed to fix it on my computer by doing this:\r\n\r\nvi +66 \"/Users/username/Library/Python/2.7/lib/python/site-packages/powerline/renderers/tmux.py\"\r\n\r\nchange this:\r\nvarname = 'TMUX_PWD_' + r['pane_id'].lstrip('% ')\r\n\r\nto this:\r\n\r\nvarname = 'TMUX_PWD_' + str(r['pane_id']).lstrip('% ')"}}