{"action":"created","issue":{"url":"https://api.github.com/repos/errbotio/errbot/issues/590","labels_url":"https://api.github.com/repos/errbotio/errbot/issues/590/labels{/name}","comments_url":"https://api.github.com/repos/errbotio/errbot/issues/590/comments","events_url":"https://api.github.com/repos/errbotio/errbot/issues/590/events","html_url":"https://github.com/errbotio/errbot/issues/590","id":128385924,"number":590,"title":"UnicodeEncodeError when using Text backend on ubuntu docker vm","user":{"login":"anitawoodruff","id":1918555,"avatar_url":"https://avatars.githubusercontent.com/u/1918555?v=3","gravatar_id":"","url":"https://api.github.com/users/anitawoodruff","html_url":"https://github.com/anitawoodruff","followers_url":"https://api.github.com/users/anitawoodruff/followers","following_url":"https://api.github.com/users/anitawoodruff/following{/other_user}","gists_url":"https://api.github.com/users/anitawoodruff/gists{/gist_id}","starred_url":"https://api.github.com/users/anitawoodruff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anitawoodruff/subscriptions","organizations_url":"https://api.github.com/users/anitawoodruff/orgs","repos_url":"https://api.github.com/users/anitawoodruff/repos","events_url":"https://api.github.com/users/anitawoodruff/events{/privacy}","received_events_url":"https://api.github.com/users/anitawoodruff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-24T10:08:48Z","updated_at":"2016-02-02T03:31:00Z","closed_at":"2016-01-26T22:39:16Z","body":"I tried setting up an ubuntu docker image for my bot, with no plugins for now, and it works fine with the XMPP backend, but when I type any command (e.g. 'status', 'help') using the Text backend, I just get the following error:\r\n```\r\n09:42:31 ERROR    errbot.errBot             An error happened while processing a message (\"status\"): Traceback (most recent call last):\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/errBot.py\", line 441, in _execute_and_send\r\n    self.send_simple_reply(mess, self.process_template(template_name, reply), private)\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/errBot.py\", line 193, in send_simple_reply\r\n    self.split_and_send_message(self.build_reply(mess, text, private))\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/errBot.py\", line 172, in split_and_send_message\r\n    self.send_message(partial_message)\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/backends/text.py\", line 90, in send_message\r\n    print(bar.format(mode='MD  '))\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 1-2: ordinal not in range(128)\r\n\"\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/errBot.py\", line 441, in _execute_and_send\r\n    self.send_simple_reply(mess, self.process_template(template_name, reply), private)\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/errBot.py\", line 193, in send_simple_reply\r\n    self.split_and_send_message(self.build_reply(mess, text, private))\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/errBot.py\", line 172, in split_and_send_message\r\n    self.send_message(partial_message)\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/backends/text.py\", line 90, in send_message\r\n    print(bar.format(mode='MD  '))\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 1-2: ordinal not in range(128)\r\n09:42:31 ERROR    errbot.bundled.threadpool Command failed\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/errBot.py\", line 441, in _execute_and_send\r\n    self.send_simple_reply(mess, self.process_template(template_name, reply), private)\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/errBot.py\", line 193, in send_simple_reply\r\n    self.split_and_send_message(self.build_reply(mess, text, private))\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/errBot.py\", line 172, in split_and_send_message\r\n    self.send_message(partial_message)\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/backends/text.py\", line 90, in send_message\r\n    print(bar.format(mode='MD  '))\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 1-2: ordinal not in range(128)\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/bundled/threadpool.py\", line 162, in run\r\n    result = request.callable(*request.args, **request.kwds)\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/errBot.py\", line 447, in _execute_and_send\r\n    self.send_simple_reply(mess, self.MSG_ERROR_OCCURRED + ':\\n %s' % e, private)\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/errBot.py\", line 193, in send_simple_reply\r\n    self.split_and_send_message(self.build_reply(mess, text, private))\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/errBot.py\", line 172, in split_and_send_message\r\n    self.send_message(partial_message)\r\n  File \"/usr/local/lib/python3.4/dist-packages/errbot/backends/text.py\", line 90, in send_message\r\n    print(bar.format(mode='MD  '))\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 1-2: ordinal not in range(128)\r\n```\r\nHere are the contents of my Dockerfile:\r\n```\r\nFROM ubuntu:latest\r\nRUN apt-get -y update\r\nRUN apt-get -y install python3-pip\r\nRUN apt-get -y install libffi-dev # required for cryptography (errbot dep)\r\nRUN apt-get -y install libssl-dev # req for pycparser (errbot dep)\r\nRUN pip3 install --upgrade six # runtime dep of errbot (>= 1.7)\r\nRUN pip3 install errbot # https://github.com/errbotio/errbot/archive/master.zip\r\nRUN mkdir /var/lib/err && mkdir /var/log/err\r\nRUN mkdir /src\r\nCOPY ./config.py /src/\r\nCOPY ./credentials.cfg /src/\r\nWORKDIR /src\r\nCMD [\"errbot\", \"-T\"]\r\n```\r\n\r\n(The same thing happens if I comment out the CMD line, run with bash, and start errbot manually)\r\n\r\nI get this issue both with the latest published errbot version (3.2.2) and the latest master zip."},"comment":{"url":"https://api.github.com/repos/errbotio/errbot/issues/comments/178346305","html_url":"https://github.com/errbotio/errbot/issues/590#issuecomment-178346305","issue_url":"https://api.github.com/repos/errbotio/errbot/issues/590","id":178346305,"user":{"login":"gbin","id":975564,"avatar_url":"https://avatars.githubusercontent.com/u/975564?v=3","gravatar_id":"","url":"https://api.github.com/users/gbin","html_url":"https://github.com/gbin","followers_url":"https://api.github.com/users/gbin/followers","following_url":"https://api.github.com/users/gbin/following{/other_user}","gists_url":"https://api.github.com/users/gbin/gists{/gist_id}","starred_url":"https://api.github.com/users/gbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbin/subscriptions","organizations_url":"https://api.github.com/users/gbin/orgs","repos_url":"https://api.github.com/users/gbin/repos","events_url":"https://api.github.com/users/gbin/events{/privacy}","received_events_url":"https://api.github.com/users/gbin/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T03:31:00Z","updated_at":"2016-02-02T03:31:00Z","body":"Oh OK, would you like to send a quick PR for the proposed çhange?"}}