[AstroPy] VO table from skybot cannot be read by vo.table

Jerome Caron jerome_caron_astro@ymail....
Sun Dec 16 15:00:14 CST 2012

Dear list
I have a problem with vo.table and SkyBOT.
I make a SkyBoT request and I get the following xml file
<?xml version="1.0" encoding="UTF-8" ?>
<vot:VOTABLE version="1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:vot="http://www.ivoa.net/xml/VOTable/v1.2" xsi:schemaLocation="http://www.ivoa.net/xml/VOTable/v1.2 http://www.ivoa.net/xml/VOTable/VOTable-1.2.xsd" xmlns:stc="http://www.ivoa.net/xml/STC">
<vot:INFO ID="status" name="QUERY_STATUS" value="OK"/>
<vot:INFO ID="reqTarget" name="-c" value="1.1623100147908+0.78109932048627,rm=848.52813742386"/>
<vot:INFO ID="reqEpoch" name="Epoch" value="2456278.2798"/>
<vot:INFO ID="supplier" name="Supplier" value="Provided by IMCCE/OBSPM/CNRS"/>
<vot:RESOURCE name="Skybot.ConeSearch"><vot:DESCRIPTION>SkyBoT - List of the targets located in the FOV</vot:DESCRIPTION>
<vot:INFO name="QUERY_STATUS" value="ERROR">No solar system object was found in the requested FOV: RA DEC: 04:26:22.91 +44:45:13.30 EPOCH: 2012-12-16 18:42:54.72</vot:INFO>

I have a function that uses vo.table from astropy, that usually works fine. But this time it crashes with the following messages:
←[0;31mERROR←[0m: IndexError: No table found in VOTABLE file. [astropy.io.vo.tree]
Traceback (most recent call last):
  File "X:\imagesheq5\2012-12-16\pav-18\04_check_objects_v10.py", line 159, in <module>
    cat = astrometry.read_votable(Folder+ '\\skybot.xml', text_display=False)
  File "C:\aspylib\aspylib\astrometry\query2.py", line 34, in read_votable
    votable = parse_single_table(filename, pedantic=False)
  File "C:\Python27\lib\site-packages\astropy-0.1-py2.7-win32.egg\astropy\io\vo\table.py", line 126, in parse_single_table
    return votable.get_first_table()
  File "C:\Python27\lib\site-packages\astropy-0.1-py2.7-win32.egg\astropy\io\vo\tree.py", line 2970, in get_first_table
    raise IndexError("No table found in VOTABLE file.")
IndexError: No table found in VOTABLE file.
Appuyez sur une touche pour continuer...
Do you have any idea ?
Jerome Caron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/astropy/attachments/20121216/6872b04d/attachment.html 

More information about the AstroPy mailing list