[AstroPy] Error in vo on Mac OS 10.6.8, Python 2.7
Jean-Baptiste Marquette
MARQUETT at IAP.FR
Thu Jun 30 13:46:10 EDT 2011
Dear vo gurus,
I use vo through ATpy on VOTables which are well read by TOPCAT. Thus I didn't find any violation of VO specifications.
The traceback is:
bs300.date processing ...
/Volumes/pepperland/erosdata/sexcatcalib/bs/bs300/bs3001/bs3001_6f2079.cat:3:0: W20: No version number specified in file. Assuming 1.0
Traceback (most recent call last):
File "/Users/marquett/workspace/EpochsCat/src/PutEpochs.py", line 28, in <module>
Table = atpy.Table(Cat, type='vo', pedantic=False, tid=2)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/atpy/basetable.py", line 167, in __init__
self.read(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/atpy/basetable.py", line 213, in read
atpy._readers[table_type](self, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/atpy/votable.py", line 86, in read
votable = parse(filename, pedantic=pedantic)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/table.py", line 103, in parse
return tree.VOTableFile(config=config, pos=(1, 1)).parse(iterator, config)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py", line 2963, in parse
iterator, tag, data, config, pos)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py", line 2897, in _add_resource
resource.parse(self, iterator, config)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py", line 2732, in parse
tag_mapping.get(tag, self._add_unknown_tag)(iterator, tag, data, config, pos)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py", line 2710, in _add_resource
resource.parse(self._votable, iterator, config)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py", line 2732, in parse
tag_mapping.get(tag, self._add_unknown_tag)(iterator, tag, data, config, pos)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py", line 2710, in _add_resource
resource.parse(self._votable, iterator, config)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py", line 2732, in parse
tag_mapping.get(tag, self._add_unknown_tag)(iterator, tag, data, config, pos)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py", line 2698, in _add_param
param = Param(self._votable, config=config, pos=pos, **data)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py", line 1232, in __init__
id=id, config=config, pos=pos)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py", line 915, in __init__
self._setup(config)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py", line 1251, in _setup
self.value = self._value
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py", line 1239, in _set_value
self._value = self.converter.parse(value, self._config, self._pos)[0]
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/converters.py", line 433, in parse
config, pos)
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/voexceptions.py", line 109, in vo_raise
raise exc(message)
vo.voexceptions.VOTableSpecError: /Volumes/pepperland/erosdata/sexcatcalib/bs/bs300/bs3001/bs3001_6f2079.cat:87041:3: E02: Incorrect number of elements in array, expected 0, got 1
As I said this table is well loaded by TOPCAT, and was created by Emmanuel Bertin's SExtractor. It is 20 Mb large.
87041 (if it is a rank) is far beyond the index bound.
If necessary, I can provide the table in my ftp, together with my python script.
I checked that the issue remains the same on other tables of the same type.
Thanks for your help,
Jean-Baptiste Marquette
More information about the AstroPy
mailing list