{"action":"created","issue":{"url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/issues/2447","repository_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto","labels_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/issues/2447/labels{/name}","comments_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/issues/2447/comments","events_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/issues/2447/events","html_url":"https://github.com/gravitystorm/openstreetmap-carto/issues/2447","id":190493300,"number":2447,"title":"yaml2mml not compatible with python 3.5","user":{"login":"jojo4u","id":156724,"avatar_url":"https://avatars.githubusercontent.com/u/156724?v=3","gravatar_id":"","url":"https://api.github.com/users/jojo4u","html_url":"https://github.com/jojo4u","followers_url":"https://api.github.com/users/jojo4u/followers","following_url":"https://api.github.com/users/jojo4u/following{/other_user}","gists_url":"https://api.github.com/users/jojo4u/gists{/gist_id}","starred_url":"https://api.github.com/users/jojo4u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jojo4u/subscriptions","organizations_url":"https://api.github.com/users/jojo4u/orgs","repos_url":"https://api.github.com/users/jojo4u/repos","events_url":"https://api.github.com/users/jojo4u/events{/privacy}","received_events_url":"https://api.github.com/users/jojo4u/received_events","type":"User","site_admin":false},"labels":[{"id":19398530,"url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/labels/bug","name":"bug","color":"fc2929","default":true},{"id":43118519,"url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/labels/code","name":"code","color":"f7c6c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/milestones/3","html_url":"https://github.com/gravitystorm/openstreetmap-carto/milestones/Bugs%20and%20improvements","labels_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/milestones/3/labels","id":804552,"number":3,"title":"Bugs and improvements","description":"","creator":{"login":"math1985","id":5251909,"avatar_url":"https://avatars.githubusercontent.com/u/5251909?v=3","gravatar_id":"","url":"https://api.github.com/users/math1985","html_url":"https://github.com/math1985","followers_url":"https://api.github.com/users/math1985/followers","following_url":"https://api.github.com/users/math1985/following{/other_user}","gists_url":"https://api.github.com/users/math1985/gists{/gist_id}","starred_url":"https://api.github.com/users/math1985/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/math1985/subscriptions","organizations_url":"https://api.github.com/users/math1985/orgs","repos_url":"https://api.github.com/users/math1985/repos","events_url":"https://api.github.com/users/math1985/events{/privacy}","received_events_url":"https://api.github.com/users/math1985/received_events","type":"User","site_admin":false},"open_issues":249,"closed_issues":354,"state":"open","created_at":"2014-09-26T17:37:22Z","updated_at":"2016-11-20T19:42:51Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2016-11-19T12:10:48Z","updated_at":"2016-11-20T22:22:31Z","closed_at":null,"body":"On my Arch Linux with python 3.5 yaml2mml.py fails. Probably because of #2225.\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"./yaml2mml.py\", line 27, in <module>\r\n    json.dump(yaml, mml_file, indent=2, separators=(',', ': '))\r\n  File \"/usr/lib/python3.5/json/__init__.py\", line 179, in dump\r\n    fp.write(chunk)\r\nTypeError: a bytes-like object is required, not 'str'\r\n```\r\n\r\nSteps to reproduce:\r\n\\> python --version\r\nPython 3.5.2\r\n\\> pacman -Qi python-yaml\r\nVersion         : 3.12-1\r\n\\> git clone https://github.com/gravitystorm/openstreetmap-carto.git\r\n\\> ./scripts/yaml2mml.py\r\n[Error above]\r\n\r\nPython 2 works fine\r\n\\> python2 --version\r\nPython 2.7.12\r\n\\> pacman -Qi python2-yaml\r\nVersion         : 3.12-1\r\n\\> python2 ./scripts/yaml2mml.py\r\n[No error]"},"comment":{"url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/issues/comments/261810653","html_url":"https://github.com/gravitystorm/openstreetmap-carto/issues/2447#issuecomment-261810653","issue_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/issues/2447","id":261810653,"user":{"login":"jojo4u","id":156724,"avatar_url":"https://avatars.githubusercontent.com/u/156724?v=3","gravatar_id":"","url":"https://api.github.com/users/jojo4u","html_url":"https://github.com/jojo4u","followers_url":"https://api.github.com/users/jojo4u/followers","following_url":"https://api.github.com/users/jojo4u/following{/other_user}","gists_url":"https://api.github.com/users/jojo4u/gists{/gist_id}","starred_url":"https://api.github.com/users/jojo4u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jojo4u/subscriptions","organizations_url":"https://api.github.com/users/jojo4u/orgs","repos_url":"https://api.github.com/users/jojo4u/repos","events_url":"https://api.github.com/users/jojo4u/events{/privacy}","received_events_url":"https://api.github.com/users/jojo4u/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T22:22:31Z","updated_at":"2016-11-20T22:22:31Z","body":"> The real answer to the original problem would have been to use core.autocrlf.\r\n\r\nThis would probably not work for project.mml because it is marked as binary file (34ef13692e44345e25c610bdd7e21e91b1aa929b). You lose autocrlf but gain: _\"nor will it try to compute or print a diff for changes in this file when you run git show or git diff on your project.\"_"}}
{"actor":{"display_login":"jojo4u"}}