{"action":"created","issue":{"url":"https://api.github.com/repos/openml/python/issues/28","labels_url":"https://api.github.com/repos/openml/python/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/openml/python/issues/28/comments","events_url":"https://api.github.com/repos/openml/python/issues/28/events","html_url":"https://github.com/openml/python/issues/28","id":127760743,"number":28,"title":"Problem with APIConnector.upload_flow (?)","user":{"login":"PG-TUe","id":15890747,"avatar_url":"https://avatars.githubusercontent.com/u/15890747?v=3","gravatar_id":"","url":"https://api.github.com/users/PG-TUe","html_url":"https://github.com/PG-TUe","followers_url":"https://api.github.com/users/PG-TUe/followers","following_url":"https://api.github.com/users/PG-TUe/following{/other_user}","gists_url":"https://api.github.com/users/PG-TUe/gists{/gist_id}","starred_url":"https://api.github.com/users/PG-TUe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PG-TUe/subscriptions","organizations_url":"https://api.github.com/users/PG-TUe/orgs","repos_url":"https://api.github.com/users/PG-TUe/repos","events_url":"https://api.github.com/users/PG-TUe/events{/privacy}","received_events_url":"https://api.github.com/users/PG-TUe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-20T19:07:35Z","updated_at":"2016-01-20T19:13:00Z","closed_at":null,"body":"I want to upload a flow description programmatically. I have a [flow description](https://github.com/openml/python/blob/feature/script/RandomForestClassifier_flow.xml) which I want to upload using the [APIConnector.upload_flow](https://github.com/openml/python/blob/feature/script/openml/apiconnector.py#L952) method. \r\n\r\nI currently call the method with a description 'test description', and the absolute path to the file. The return value I get is\r\n```\r\nconnector.upload_flow('test description', abs_path)\r\n>>>(200, <Response [200]>)\r\n```\r\nwith the repsonse.content containing\r\n```\r\n<oml:error xmlns:oml=\"http://openml.org/openml\">\r\n\\t<oml:code>163</oml:code>\r\n\\t<oml:message>Problem validating uploaded description file</oml:message>\r\n\\t\\t<oml:additional_information>Start tag expected, \\'&amp;lt;\\' not found. \r\nXML does not correspond to XSD schema. </oml:additional_information>\r\n\\t</oml:error>\r\n```\r\nIt seems like everything works fine, but my file is not correct. But I don't see what is wrong with the file. Oddly enough, I *can* upload it through the [API docs](http://www.openml.org/api_docs/#!/flow/post_flow). I will actually see it show up under my flows on the openml website, and as a response I get the new flow id.\r\n\r\nAnyone got ideas?"},"comment":{"url":"https://api.github.com/repos/openml/python/issues/comments/173328380","html_url":"https://github.com/openml/python/issues/28#issuecomment-173328380","issue_url":"https://api.github.com/repos/openml/python/issues/28","id":173328380,"user":{"login":"joaquinvanschoren","id":1724503,"avatar_url":"https://avatars.githubusercontent.com/u/1724503?v=3","gravatar_id":"","url":"https://api.github.com/users/joaquinvanschoren","html_url":"https://github.com/joaquinvanschoren","followers_url":"https://api.github.com/users/joaquinvanschoren/followers","following_url":"https://api.github.com/users/joaquinvanschoren/following{/other_user}","gists_url":"https://api.github.com/users/joaquinvanschoren/gists{/gist_id}","starred_url":"https://api.github.com/users/joaquinvanschoren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaquinvanschoren/subscriptions","organizations_url":"https://api.github.com/users/joaquinvanschoren/orgs","repos_url":"https://api.github.com/users/joaquinvanschoren/repos","events_url":"https://api.github.com/users/joaquinvanschoren/events{/privacy}","received_events_url":"https://api.github.com/users/joaquinvanschoren/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T19:13:00Z","updated_at":"2016-01-20T19:13:00Z","body":"It looks like your file is being HTML encoded. \\'&amp;lt;\\' is HTML\nencoding for '<', your opening tag.\nCan you track down where you are actually uploading the file and why it is\nusing HTML encoding?\n\nCheers,\nJoaquin\n\nOn Wed, Jan 20, 2016 at 8:07 PM PG-TUe <notifications@github.com> wrote:\n\n> I want to upload a flow description programmatically. I have a flow\n> description\n> <https://github.com/openml/python/blob/feature/script/RandomForestClassifier_flow.xml>\n> which I want to upload using the APIConnector.upload_flow\n> <https://github.com/openml/python/blob/feature/script/openml/apiconnector.py#L952>\n> method.\n>\n> I currently call the method with a description 'test description', and the\n> absolute path to the file. The return value I get is\n>\n> connector.upload_flow('test description', abs_path)\n> >>>(200, <Response [200]>)\n>\n> with the repsonse.content containing\n>\n> <oml:error xmlns:oml=\"http://openml.org/openml\">\n> \\t<oml:code>163</oml:code>\n> \\t<oml:message>Problem validating uploaded description file</oml:message>\n> \\t\\t<oml:additional_information>Start tag expected, \\'&amp;lt;\\' not found.\n> XML does not correspond to XSD schema. </oml:additional_information>\n> \\t</oml:error>\n>\n> It seems like everything works fine, but my file is not correct. But I\n> don't see what is wrong with the file. Oddly enough, I *can* upload it\n> through the API docs <http://www.openml.org/api_docs/#!/flow/post_flow>.\n> I will actually see it show up under my flows on the openml website, and as\n> a response I get the new flow id.\n>\n> Anyone got ideas?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/openml/python/issues/28>.\n>\n"}}