{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/5397","repository_url":"https://api.github.com/repos/astropy/astropy","labels_url":"https://api.github.com/repos/astropy/astropy/issues/5397/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/5397/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/5397/events","html_url":"https://github.com/astropy/astropy/issues/5397","id":181620824,"number":5397,"title":"Reading (a particular type of) votables gives error","user":{"login":"aplavin","id":687995,"avatar_url":"https://avatars.githubusercontent.com/u/687995?v=3","gravatar_id":"","url":"https://api.github.com/users/aplavin","html_url":"https://github.com/aplavin","followers_url":"https://api.github.com/users/aplavin/followers","following_url":"https://api.github.com/users/aplavin/following{/other_user}","gists_url":"https://api.github.com/users/aplavin/gists{/gist_id}","starred_url":"https://api.github.com/users/aplavin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aplavin/subscriptions","organizations_url":"https://api.github.com/users/aplavin/orgs","repos_url":"https://api.github.com/users/aplavin/repos","events_url":"https://api.github.com/users/aplavin/events{/privacy}","received_events_url":"https://api.github.com/users/aplavin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astropy/astropy/labels/io.votable","name":"io.votable","color":"c7def8"},{"url":"https://api.github.com/repos/astropy/astropy/labels/Upstream%20Fix%20Required","name":"Upstream Fix Required","color":"444444"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-07T09:18:35Z","updated_at":"2016-10-07T15:13:28Z","closed_at":null,"body":"Here is an example votable I can't read with astropy: http://vospace.esac.esa.int/vospace/sh/265c9a2292e138d1a5e11aaa742bb78a4c9ed6?dl=1 , but there are a lot of them of such kind.\r\nSo, you can download the table, unpack (to get a *.vot file) and try to read:\r\n\r\n```python\r\nastropy.table.Table.read('1475831383991O.vot', format='votable')\r\n# gives OSError: Not a gzipped file (b'\\r\\n')\r\n```\r\n\r\nand trying another way:\r\n\r\n```python\r\nastropy.io.votable.parse_single_table('1475831383991O.vot')\r\n# same error\r\n```\r\n\r\nSo, anyway to deal with this and open the table?"},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/252279160","html_url":"https://github.com/astropy/astropy/issues/5397#issuecomment-252279160","issue_url":"https://api.github.com/repos/astropy/astropy/issues/5397","id":252279160,"user":{"login":"astrofrog","id":314716,"avatar_url":"https://avatars.githubusercontent.com/u/314716?v=3","gravatar_id":"","url":"https://api.github.com/users/astrofrog","html_url":"https://github.com/astrofrog","followers_url":"https://api.github.com/users/astrofrog/followers","following_url":"https://api.github.com/users/astrofrog/following{/other_user}","gists_url":"https://api.github.com/users/astrofrog/gists{/gist_id}","starred_url":"https://api.github.com/users/astrofrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrofrog/subscriptions","organizations_url":"https://api.github.com/users/astrofrog/orgs","repos_url":"https://api.github.com/users/astrofrog/repos","events_url":"https://api.github.com/users/astrofrog/events{/privacy}","received_events_url":"https://api.github.com/users/astrofrog/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T15:13:28Z","updated_at":"2016-10-07T15:13:28Z","body":"Ok, so for anyone from ESA reading this (I'll forward the issue to them), it looks like the following link:\r\n\r\nhttp://vospace.esac.esa.int/vospace/sh/265c9a2292e138d1a5e11aaa742bb78a4c9ed6?dl=1\r\n\r\nreturns a zip file. Inside that zip file is a file called ``1475831383991O.vot`` which is **not** a VO table but instead appears to contain a gzip archive that then contains the VO table. The double compression seems weird, but if this is intentional, then the file inside the zip file should be called ``1475831383991O.vot.gz`` not ``1475831383991O.vot``."}}
{"actor":{"display_login":"astrofrog"}}