{"action":"created","issue":{"url":"https://api.github.com/repos/makkus/freckles/issues/28","repository_url":"https://api.github.com/repos/makkus/freckles","labels_url":"https://api.github.com/repos/makkus/freckles/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/makkus/freckles/issues/28/comments","events_url":"https://api.github.com/repos/makkus/freckles/issues/28/events","html_url":"https://github.com/makkus/freckles/issues/28","id":271210656,"number":28,"title":"Freckles broken with non-ascii task name","user":{"login":"lalmeras","id":1030469,"avatar_url":"https://avatars1.githubusercontent.com/u/1030469?v=4","gravatar_id":"","url":"https://api.github.com/users/lalmeras","html_url":"https://github.com/lalmeras","followers_url":"https://api.github.com/users/lalmeras/followers","following_url":"https://api.github.com/users/lalmeras/following{/other_user}","gists_url":"https://api.github.com/users/lalmeras/gists{/gist_id}","starred_url":"https://api.github.com/users/lalmeras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lalmeras/subscriptions","organizations_url":"https://api.github.com/users/lalmeras/orgs","repos_url":"https://api.github.com/users/lalmeras/repos","events_url":"https://api.github.com/users/lalmeras/events{/privacy}","received_events_url":"https://api.github.com/users/lalmeras/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-04T17:48:59Z","updated_at":"2017-11-18T17:25:30Z","closed_at":null,"author_association":"NONE","body":"* freckles version: 0.4.3 (git version activated)\r\n* Python version: 2.7.13\r\n* Operating System: Fedora 26\r\n\r\n### Description\r\n\r\nI write a frecklecute repository with a single task role called unicode that uses debug module (https://github.com/powo-roles/test.freckles/blob/master/unicode/tasks/main.yml).\r\n\r\nThe frecklecute script fails with a parsing error due to unknown charset setting.\r\n\r\n### What I Did\r\n\r\n```\r\nfrecklecute -r https://github.com/powo-roles/test.freckles.git test-unicode\r\nTraceback (most recent call last):\r\n  File \"/home/lalmeras/.local/bin/frecklecute\", line 11, in <module>\r\n    sys.exit(cli())\r\n  File \"/home/lalmeras/.local/inaugurate/conda/envs/inaugurate/lib/python2.7/site-packages/click/core.py\", line 722, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/home/lalmeras/.local/inaugurate/conda/envs/inaugurate/lib/python2.7/site-packages/click/core.py\", line 697, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/home/lalmeras/.local/inaugurate/conda/envs/inaugurate/lib/python2.7/site-packages/click/core.py\", line 1066, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/home/lalmeras/.local/inaugurate/conda/envs/inaugurate/lib/python2.7/site-packages/click/core.py\", line 895, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/home/lalmeras/.local/inaugurate/conda/envs/inaugurate/lib/python2.7/site-packages/click/core.py\", line 535, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/lalmeras/.local/inaugurate/conda/envs/inaugurate/lib/python2.7/site-packages/freckles/commands.py\", line 185, in command_callback\r\n    ask_become_pass=ask_become_pass, config=self.config, run_box_basics=True)\r\n  File \"/home/lalmeras/.local/inaugurate/conda/envs/inaugurate/lib/python2.7/site-packages/freckles/utils.py\", line 658, in create_and_run_nsbl_runner\r\n    display_ignore_tasks=ignore_task_strings, pre_run_callback=pre_run_callback)\r\n  File \"/home/lalmeras/.local/inaugurate/conda/envs/inaugurate/lib/python2.7/site-packages/nsbl/nsbl.py\", line 670, in run\r\n    callback_adapter.add_log_message(line)\r\n  File \"/home/lalmeras/.local/inaugurate/conda/envs/inaugurate/lib/python2.7/site-packages/nsbl/output.py\", line 189, in add_log_message\r\n    self.output.start_task(self.current_task_name, self.current_role, self.current_task_is_dyn_role)\r\n  File \"/home/lalmeras/.local/inaugurate/conda/envs/inaugurate/lib/python2.7/site-packages/nsbl/output.py\", line 327, in start_task\r\n    self.print_task_string(\"   - {} => \".format(task_name))\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xb7' in position 26: ordinal not in range(128)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/makkus/freckles/issues/comments/345457013","html_url":"https://github.com/makkus/freckles/issues/28#issuecomment-345457013","issue_url":"https://api.github.com/repos/makkus/freckles/issues/28","id":345457013,"user":{"login":"lalmeras","id":1030469,"avatar_url":"https://avatars1.githubusercontent.com/u/1030469?v=4","gravatar_id":"","url":"https://api.github.com/users/lalmeras","html_url":"https://github.com/lalmeras","followers_url":"https://api.github.com/users/lalmeras/followers","following_url":"https://api.github.com/users/lalmeras/following{/other_user}","gists_url":"https://api.github.com/users/lalmeras/gists{/gist_id}","starred_url":"https://api.github.com/users/lalmeras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lalmeras/subscriptions","organizations_url":"https://api.github.com/users/lalmeras/orgs","repos_url":"https://api.github.com/users/lalmeras/repos","events_url":"https://api.github.com/users/lalmeras/events{/privacy}","received_events_url":"https://api.github.com/users/lalmeras/received_events","type":"User","site_admin":false},"created_at":"2017-11-18T17:25:30Z","updated_at":"2017-11-18T17:25:30Z","author_association":"NONE","body":"PR available here: https://github.com/makkus/nsbl/pull/43\r\n\r\nSome explanation on the encountered issue here: https://stackoverflow.com/questions/3235386/python-using-format-on-a-unicode-escaped-string\r\n\r\nFrom this stackoverflow source, a more radical fix would be to use:\r\n\r\n```\r\nfrom __future__ import unicode_literals\r\n```\r\nThis is maybe a better choice, but it is too difficult to me to appreciate potential regressions."}}
{"actor":{"display_login":"lalmeras"}}