{"action":"created","issue":{"url":"https://api.github.com/repos/docker/compose/issues/1524","labels_url":"https://api.github.com/repos/docker/compose/issues/1524/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/1524/comments","events_url":"https://api.github.com/repos/docker/compose/issues/1524/events","html_url":"https://github.com/docker/compose/issues/1524","id":86132883,"number":1524,"title":"Comments in docker-compose.yml result in \"yaml.reader.ReaderError: unacceptable character #x0000: special characters are not allowed\"","user":{"login":"edmorley","id":501702,"avatar_url":"https://avatars.githubusercontent.com/u/501702?v=3","gravatar_id":"","url":"https://api.github.com/users/edmorley","html_url":"https://github.com/edmorley","followers_url":"https://api.github.com/users/edmorley/followers","following_url":"https://api.github.com/users/edmorley/following{/other_user}","gists_url":"https://api.github.com/users/edmorley/gists{/gist_id}","starred_url":"https://api.github.com/users/edmorley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edmorley/subscriptions","organizations_url":"https://api.github.com/users/edmorley/orgs","repos_url":"https://api.github.com/users/edmorley/repos","events_url":"https://api.github.com/users/edmorley/events{/privacy}","received_events_url":"https://api.github.com/users/edmorley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-08T11:12:10Z","updated_at":"2015-06-08T13:49:45Z","closed_at":null,"body":"I'm using Windows, so have to use the docker compose python package from pypi, since there isn't a native binary.\r\n\r\ndocker-compose.yml:\r\n```yaml\r\nfoo:\r\n  # a comment\r\n  image: busybox\r\n```\r\n\r\nWith both the python docker-compose 1.2.0 and 1.3.0rc1 packages, I get:\r\n```bash\r\n[~/src/tmp]$ docker-compose ps\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/docker-compose\", line 9, in <module>\r\n    load_entry_point('docker-compose==1.2.0', 'console_scripts', 'docker-compose')()\r\n  File \"/usr/lib/python2.7/site-packages/compose/cli/main.py\", line 31, in main\r\n    command.sys_dispatch()\r\n  File \"/usr/lib/python2.7/site-packages/compose/cli/docopt_command.py\", line 21, in sys_dispatch\r\n    self.dispatch(sys.argv[1:], None)\r\n  File \"/usr/lib/python2.7/site-packages/compose/cli/command.py\", line 27, in dispatch\r\n    super(Command, self).dispatch(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/compose/cli/docopt_command.py\", line 24, in dispatch\r\n    self.perform_command(*self.parse(argv, global_options))\r\n  File \"/usr/lib/python2.7/site-packages/compose/cli/command.py\", line 57, in perform_command\r\n    verbose=options.get('--verbose'))\r\n  File \"/usr/lib/python2.7/site-packages/compose/cli/command.py\", line 76, in get_project\r\n    config.load(config_path),\r\n  File \"/usr/lib/python2.7/site-packages/compose/config.py\", line 55, in load\r\n    return from_dictionary(load_yaml(filename), working_dir=working_dir, filename=filename)\r\n  File \"/usr/lib/python2.7/site-packages/compose/config.py\", line 409, in load_yaml\r\n    return yaml.safe_load(fh)\r\n  File \"/usr/lib/python2.7/site-packages/yaml/__init__.py\", line 93, in safe_load\r\n    return load(stream, SafeLoader)\r\n  File \"/usr/lib/python2.7/site-packages/yaml/__init__.py\", line 69, in load\r\n    loader = Loader(stream)\r\n  File \"/usr/lib/python2.7/site-packages/yaml/loader.py\", line 24, in __init__\r\n    Reader.__init__(self, stream)\r\n  File \"/usr/lib/python2.7/site-packages/yaml/reader.py\", line 85, in __init__\r\n    self.determine_encoding()\r\n  File \"/usr/lib/python2.7/site-packages/yaml/reader.py\", line 135, in determine_encoding\r\n    self.update(1)\r\n  File \"/usr/lib/python2.7/site-packages/yaml/reader.py\", line 169, in update\r\n    self.check_printable(data)\r\n  File \"/usr/lib/python2.7/site-packages/yaml/reader.py\", line 144, in check_printable\r\n    'unicode', \"special characters are not allowed\")\r\nyaml.reader.ReaderError: unacceptable character #x0000: special characters are not allowed\r\n  in \"./docker-compose.yml\", position 22\r\n```\r\n\r\nThis is being run on Windows 8.1, inside an MSYS2 shell, with Python 2.7.9 and Docker version 1.6.2."},"comment":{"url":"https://api.github.com/repos/docker/compose/issues/comments/110001971","html_url":"https://github.com/docker/compose/issues/1524#issuecomment-110001971","issue_url":"https://api.github.com/repos/docker/compose/issues/1524","id":110001971,"user":{"login":"edmorley","id":501702,"avatar_url":"https://avatars.githubusercontent.com/u/501702?v=3","gravatar_id":"","url":"https://api.github.com/users/edmorley","html_url":"https://github.com/edmorley","followers_url":"https://api.github.com/users/edmorley/followers","following_url":"https://api.github.com/users/edmorley/following{/other_user}","gists_url":"https://api.github.com/users/edmorley/gists{/gist_id}","starred_url":"https://api.github.com/users/edmorley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edmorley/subscriptions","organizations_url":"https://api.github.com/users/edmorley/orgs","repos_url":"https://api.github.com/users/edmorley/repos","events_url":"https://api.github.com/users/edmorley/events{/privacy}","received_events_url":"https://api.github.com/users/edmorley/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T13:49:44Z","updated_at":"2015-06-08T13:49:44Z","body":"So I tried to do this - and in the process found that I was using a mixture of the native Windows python and the msys2 python2 package.\r\n\r\nI've since tried using _just_ the native Windows python (which results in the `ImportError: No module named fcntl` of d11wtq/dockerpty#7, so is a non-starter) and also 100% msys2 python - with the latter giving me:\r\n``SSL error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:585)``\r\n\r\n...so I'm not able to get it working again now enough to repro :-("}}