{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/1096","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/1096/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/1096/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/1096/events","html_url":"https://github.com/jgm/pandoc/issues/1096","id":24364877,"number":1096,"title":"Python filter on windows","user":{"login":"larmarange","id":966307,"avatar_url":"https://avatars.githubusercontent.com/u/966307?v=3","gravatar_id":"","url":"https://api.github.com/users/larmarange","html_url":"https://github.com/larmarange","followers_url":"https://api.github.com/users/larmarange/followers","following_url":"https://api.github.com/users/larmarange/following{/other_user}","gists_url":"https://api.github.com/users/larmarange/gists{/gist_id}","starred_url":"https://api.github.com/users/larmarange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larmarange/subscriptions","organizations_url":"https://api.github.com/users/larmarange/orgs","repos_url":"https://api.github.com/users/larmarange/repos","events_url":"https://api.github.com/users/larmarange/events{/privacy}","received_events_url":"https://api.github.com/users/larmarange/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2013-12-16T17:27:33Z","updated_at":"2015-08-31T10:11:41Z","closed_at":"2014-04-05T22:53:22Z","body":"When applying a python filter on Windows, I have the following error:\r\n\r\n```\r\npandoc.exe: Error running filter ./comments.py\r\n./comments.py: createProcess: invalid argument (Exec format error)\r\n```\r\n\r\nPython is installed and available in the path.\r\nIt seems that only .exe filter are accepted."},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/136322769","html_url":"https://github.com/jgm/pandoc/issues/1096#issuecomment-136322769","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/1096","id":136322769,"user":{"login":"paulsmirnov","id":11373544,"avatar_url":"https://avatars.githubusercontent.com/u/11373544?v=3","gravatar_id":"","url":"https://api.github.com/users/paulsmirnov","html_url":"https://github.com/paulsmirnov","followers_url":"https://api.github.com/users/paulsmirnov/followers","following_url":"https://api.github.com/users/paulsmirnov/following{/other_user}","gists_url":"https://api.github.com/users/paulsmirnov/gists{/gist_id}","starred_url":"https://api.github.com/users/paulsmirnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulsmirnov/subscriptions","organizations_url":"https://api.github.com/users/paulsmirnov/orgs","repos_url":"https://api.github.com/users/paulsmirnov/repos","events_url":"https://api.github.com/users/paulsmirnov/events{/privacy}","received_events_url":"https://api.github.com/users/paulsmirnov/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T10:11:40Z","updated_at":"2015-08-31T10:11:40Z","body":"Are you sure that the issue is fixed? I'm testing **pandoc.exe 1.15.0.6** and both problems arise:\r\n\r\n- cannot find `caps.py`, runs only via `caps.bat`,\r\n- when python script finishes processesing, `Failed reading: satisfyElem` error is raised.\r\n\r\ncaps.py:\r\n```\r\n\"\"\"\r\nPandoc filter to convert all regular text to uppercase.\r\nCode, link URLs, etc. are not affected.\r\n\"\"\"\r\n\r\nfrom pandocfilters import toJSONFilter, Str\r\n\r\ndef caps(key, value, format, meta):\r\n    if key == 'Str':\r\n        return Str(value.upper())\r\n\r\nif __name__ == \"__main__\":\r\n    toJSONFilter(caps)\r\n```\r\n\r\ncaps.bat:\r\n```\r\npython caps.py %*\r\n```\r\n\r\ntest.md:\r\n```\r\nHello!\r\n```\r\n\r\ntest.bat:\r\n```\r\npandoc.exe test.md -o test.html --filter=caps.py\r\n\r\npandoc.exe test.md -o test.html --filter=.\\caps.py\r\n\r\npandoc.exe test.md -o test.html --filter=.\\caps.bat\r\n```\r\n\r\noutput:\r\n```\r\nW:\\Sandbox\\pandoc>pandoc.exe test.md -o test.html --filter=caps.py\r\npandoc.exe: Error running filter caps.py\r\nW:\\Sandbox\\pandoc\\caps.py: createProcess: invalid argument (Exec format error)\r\n\r\nW:\\Sandbox\\pandoc>pandoc.exe test.md -o test.html --filter=.\\caps.py\r\npandoc.exe: Error running filter .\\caps.py\r\nW:\\Sandbox\\pandoc\\caps.py: createProcess: invalid argument (Exec format error)\r\n\r\nW:\\Sandbox\\pandoc>pandoc.exe test.md -o test.html --filter=.\\caps.bat\r\npandoc.exe: Failed reading: satisfyElem\r\n```\r\n"}}