{"action":"created","issue":{"url":"https://api.github.com/repos/littlecodersh/ItChat/issues/44","repository_url":"https://api.github.com/repos/littlecodersh/ItChat","labels_url":"https://api.github.com/repos/littlecodersh/ItChat/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/littlecodersh/ItChat/issues/44/comments","events_url":"https://api.github.com/repos/littlecodersh/ItChat/issues/44/events","html_url":"https://github.com/littlecodersh/ItChat/issues/44","id":166752670,"number":44,"title":"centos7 nohup sys.stdin.encoding为None导致编码错误","user":{"login":"xzjs","id":2542160,"avatar_url":"https://avatars.githubusercontent.com/u/2542160?v=3","gravatar_id":"","url":"https://api.github.com/users/xzjs","html_url":"https://github.com/xzjs","followers_url":"https://api.github.com/users/xzjs/followers","following_url":"https://api.github.com/users/xzjs/following{/other_user}","gists_url":"https://api.github.com/users/xzjs/gists{/gist_id}","starred_url":"https://api.github.com/users/xzjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xzjs/subscriptions","organizations_url":"https://api.github.com/users/xzjs/orgs","repos_url":"https://api.github.com/users/xzjs/repos","events_url":"https://api.github.com/users/xzjs/events{/privacy}","received_events_url":"https://api.github.com/users/xzjs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/littlecodersh/ItChat/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-21T07:14:47Z","updated_at":"2016-07-22T05:57:45Z","closed_at":null,"body":"我又来问问题了，现在程序我在我的服务器上直接python run.py没有问题，但是我想用nohup执行的时候，就出现了问题，nohup.out如下\r\n```bash\r\nFile \"run.py\", line 49, in <module>\r\n    itchat.auto_login()\r\n  File \"/var/www/html/ItChat/itchat/__init__.py\", line 13, in auto_login\r\n    __client.auto_login(enableCmdQR = enableCmdQR)\r\n  File \"/var/www/html/ItChat/itchat/client.py\", line 58, in auto_login\r\n    open_QR()\r\n  File \"/var/www/html/ItChat/itchat/client.py\", line 50, in open_QR\r\n    out.print_line('Getting uuid', True)\r\n  File \"/var/www/html/ItChat/itchat/out.py\", line 11, in print_line\r\n    sys.stdout.write(msg.encode(sys.stdin.encoding, 'replace'\r\nTypeError: encode() argument 1 must be string, not None`\r\n```\r\n现在又不知道该如何解决了"},"comment":{"url":"https://api.github.com/repos/littlecodersh/ItChat/issues/comments/234460998","html_url":"https://github.com/littlecodersh/ItChat/issues/44#issuecomment-234460998","issue_url":"https://api.github.com/repos/littlecodersh/ItChat/issues/44","id":234460998,"user":{"login":"tempdban","id":4144536,"avatar_url":"https://avatars.githubusercontent.com/u/4144536?v=3","gravatar_id":"","url":"https://api.github.com/users/tempdban","html_url":"https://github.com/tempdban","followers_url":"https://api.github.com/users/tempdban/followers","following_url":"https://api.github.com/users/tempdban/following{/other_user}","gists_url":"https://api.github.com/users/tempdban/gists{/gist_id}","starred_url":"https://api.github.com/users/tempdban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tempdban/subscriptions","organizations_url":"https://api.github.com/users/tempdban/orgs","repos_url":"https://api.github.com/users/tempdban/repos","events_url":"https://api.github.com/users/tempdban/events{/privacy}","received_events_url":"https://api.github.com/users/tempdban/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T05:57:45Z","updated_at":"2016-07-22T05:57:45Z","body":"我觉得是路径问题吧，可能当前路径没写权限"}}
{"actor":{"display_login":"tempdban"}}