{"action":"created","issue":{"url":"https://api.github.com/repos/emscripten-ports/SDL2_image/issues/4","labels_url":"https://api.github.com/repos/emscripten-ports/SDL2_image/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/emscripten-ports/SDL2_image/issues/4/comments","events_url":"https://api.github.com/repos/emscripten-ports/SDL2_image/issues/4/events","html_url":"https://github.com/emscripten-ports/SDL2_image/issues/4","id":123882103,"number":4,"title":"SDL2_image port command line parser causes an error","user":{"login":"ooxi","id":2611835,"avatar_url":"https://avatars.githubusercontent.com/u/2611835?v=3","gravatar_id":"","url":"https://api.github.com/users/ooxi","html_url":"https://github.com/ooxi","followers_url":"https://api.github.com/users/ooxi/followers","following_url":"https://api.github.com/users/ooxi/following{/other_user}","gists_url":"https://api.github.com/users/ooxi/gists{/gist_id}","starred_url":"https://api.github.com/users/ooxi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooxi/subscriptions","organizations_url":"https://api.github.com/users/ooxi/orgs","repos_url":"https://api.github.com/users/ooxi/repos","events_url":"https://api.github.com/users/ooxi/events{/privacy}","received_events_url":"https://api.github.com/users/ooxi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-25T13:54:39Z","updated_at":"2016-01-04T20:35:34Z","closed_at":null,"body":"When adding `-s SDL2_IMAGE_FORMATS='[\"png\"]'` to the command line options, I get the following error python error\r\n\r\n````\r\nTraceback (most recent call last):\r\n  File \"C:\\Program Files\\Emscripten\\emscripten\\1.35.0\\\\emcc\", line 1128, in <module>\r\n    args = get_bitcode_args([input_file]) + ['-emit-llvm', '-c', '-o', output_file]\r\n  File \"C:\\Program Files\\Emscripten\\emscripten\\1.35.0\\\\emcc\", line 1108, in get_bitcode_args\r\n    args = system_libs.process_args(args, shared.Settings)\r\n  File \"C:\\Program Files\\Emscripten\\emscripten\\1.35.0\\tools\\system_libs.py\", line 527, in process_args\r\n    args = port.process_args(Ports, args, settings, shared)\r\n  File \"C:\\Program Files\\Emscripten\\emscripten\\1.35.0\\tools\\ports\\sdl_image.py\", line 55, in process_args\r\n    get(ports, settings, shared)\r\n  File \"C:\\Program Files\\Emscripten\\emscripten\\1.35.0\\tools\\ports\\sdl_image.py\", line 36, in get\r\n    settings.SDL2_IMAGE_FORMATS.sort()\r\nAttributeError: 'str' object has no attribute 'sort'\r\n````\r\n\r\nReplacing `settings.SDL2_IMAGE_FORMATS.sort` with `settings.SDL2_IMAGE_FORMATS = [\"png\"]` in sdl_image.py solves the issue by hard coding the array. The content of `settings.SDL2_IMAGE_FORMATS` was `[png]` (I printed it), I think the string -> array conversion is missing"},"comment":{"url":"https://api.github.com/repos/emscripten-ports/SDL2_image/issues/comments/168798851","html_url":"https://github.com/emscripten-ports/SDL2_image/issues/4#issuecomment-168798851","issue_url":"https://api.github.com/repos/emscripten-ports/SDL2_image/issues/4","id":168798851,"user":{"login":"ooxi","id":2611835,"avatar_url":"https://avatars.githubusercontent.com/u/2611835?v=3","gravatar_id":"","url":"https://api.github.com/users/ooxi","html_url":"https://github.com/ooxi","followers_url":"https://api.github.com/users/ooxi/followers","following_url":"https://api.github.com/users/ooxi/following{/other_user}","gists_url":"https://api.github.com/users/ooxi/gists{/gist_id}","starred_url":"https://api.github.com/users/ooxi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooxi/subscriptions","organizations_url":"https://api.github.com/users/ooxi/orgs","repos_url":"https://api.github.com/users/ooxi/repos","events_url":"https://api.github.com/users/ooxi/events{/privacy}","received_events_url":"https://api.github.com/users/ooxi/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T20:35:33Z","updated_at":"2016-01-04T20:35:33Z","body":"How do I run the tests? I am using the emscripten binary distribution on windows."}}