{"action":"created","issue":{"url":"https://api.github.com/repos/cds-astro/mocpy/issues/17","repository_url":"https://api.github.com/repos/cds-astro/mocpy","labels_url":"https://api.github.com/repos/cds-astro/mocpy/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/cds-astro/mocpy/issues/17/comments","events_url":"https://api.github.com/repos/cds-astro/mocpy/issues/17/events","html_url":"https://github.com/cds-astro/mocpy/issues/17","id":332368603,"node_id":"MDU6SXNzdWUzMzIzNjg2MDM=","number":17,"title":"Example 5 notebook broken with Python 3","user":{"login":"cdeil","id":852409,"node_id":"MDQ6VXNlcjg1MjQwOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/852409?v=4","gravatar_id":"","url":"https://api.github.com/users/cdeil","html_url":"https://github.com/cdeil","followers_url":"https://api.github.com/users/cdeil/followers","following_url":"https://api.github.com/users/cdeil/following{/other_user}","gists_url":"https://api.github.com/users/cdeil/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeil/subscriptions","organizations_url":"https://api.github.com/users/cdeil/orgs","repos_url":"https://api.github.com/users/cdeil/repos","events_url":"https://api.github.com/users/cdeil/events{/privacy}","received_events_url":"https://api.github.com/users/cdeil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-14T11:51:13Z","updated_at":"2018-06-26T07:37:46Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"For https://github.com/cds-astro/mocpy/blob/master/notebooks/MOCPy_example5.ipynb with Python 3 I and this cell\r\n```\r\n#table = moc.query_simbad(10000)\r\ntable = moc.query_vizier_table('I/239/hip_main', max_rows=100000)\r\nprint(table)\r\n```\r\nI get this error:\r\n```\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-4-ded2ceed93ca> in <module>()\r\n      1 #table = moc.query_simbad(10000)\r\n----> 2 table = moc.query_vizier_table('I/239/hip_main', max_rows=100000)\r\n      3 print(table)\r\n\r\n~/software/anaconda3/envs/hgps-hips/lib/python3.6/site-packages/mocpy/moc.py in query_vizier_table(self, table_id, max_rows)\r\n    377         \"\"\"\r\n    378 \r\n--> 379         return self._query(table_id, max_rows)\r\n    380 \r\n    381     def _query(self, resource_id, max_rows):\r\n\r\n~/software/anaconda3/envs/hgps-hips/lib/python3.6/site-packages/mocpy/moc.py in _query(self, resource_id, max_rows)\r\n    408 \r\n    409         from astropy.io.votable import parse_single_table\r\n--> 410         table = parse_single_table(tmp_vot).to_table()\r\n    411 \r\n    412         # finally delete temp files\r\n\r\n~/software/anaconda3/envs/hgps-hips/lib/python3.6/site-packages/astropy/io/votable/table.py in parse_single_table(source, **kwargs)\r\n    153         kwargs['table_number'] = 0\r\n    154 \r\n--> 155     votable = parse(source, **kwargs)\r\n    156 \r\n    157     return votable.get_first_table()\r\n\r\n~/software/anaconda3/envs/hgps-hips/lib/python3.6/site-packages/astropy/io/votable/table.py in parse(source, columns, invalid, pedantic, chunk_size, table_number, table_id, filename, unit_format, datatype_mapping, _debug_python_based_parser)\r\n    135             _debug_python_based_parser=_debug_python_based_parser) as iterator:\r\n    136         return tree.VOTableFile(\r\n--> 137             config=config, pos=(1, 1)).parse(iterator, config)\r\n    138 \r\n    139 \r\n\r\n~/software/anaconda3/envs/hgps-hips/lib/python3.6/site-packages/astropy/io/votable/tree.py in parse(self, iterator, config)\r\n   3339         config['_current_table_number'] = 0\r\n   3340 \r\n-> 3341         for start, tag, data, pos in iterator:\r\n   3342             if start:\r\n   3343                 if tag == 'xml':\r\n\r\nValueError: 1:0: syntax error\r\n```\r\n@bmatthieu3 or @tboch - Can you reproduce?\r\n\r\n( I didn't try with Python 2, don't know if it works there or not )"},"comment":{"url":"https://api.github.com/repos/cds-astro/mocpy/issues/comments/400210738","html_url":"https://github.com/cds-astro/mocpy/issues/17#issuecomment-400210738","issue_url":"https://api.github.com/repos/cds-astro/mocpy/issues/17","id":400210738,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDIxMDczOA==","user":{"login":"bmatthieu3","id":2772384,"node_id":"MDQ6VXNlcjI3NzIzODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2772384?v=4","gravatar_id":"","url":"https://api.github.com/users/bmatthieu3","html_url":"https://github.com/bmatthieu3","followers_url":"https://api.github.com/users/bmatthieu3/followers","following_url":"https://api.github.com/users/bmatthieu3/following{/other_user}","gists_url":"https://api.github.com/users/bmatthieu3/gists{/gist_id}","starred_url":"https://api.github.com/users/bmatthieu3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmatthieu3/subscriptions","organizations_url":"https://api.github.com/users/bmatthieu3/orgs","repos_url":"https://api.github.com/users/bmatthieu3/repos","events_url":"https://api.github.com/users/bmatthieu3/events{/privacy}","received_events_url":"https://api.github.com/users/bmatthieu3/received_events","type":"User","site_admin":false},"created_at":"2018-06-26T07:37:46Z","updated_at":"2018-06-26T07:37:46Z","author_association":"COLLABORATOR","body":"Done! it was the prototype of MOC.write which has changed."}}
{"actor":{"display_login":"bmatthieu3"}}