Package Details: python-pyvo-doc 1.5.3-1

Git Clone URL: https://aur.archlinux.org/python-pyvo.git (read-only, click to copy)
Package Base: python-pyvo
Description: Documentation for Python PyVO module
Upstream URL: https://pyvo.readthedocs.io
Licenses: BSD-3-Clause
Submitter: Universebenzene
Maintainer: Universebenzene
Last Packager: Universebenzene
Votes: 0
Popularity: 0.000000
First Submitted: 2019-01-10 12:19 (UTC)
Last Updated: 2024-10-15 07:36 (UTC)

Latest Comments

mboquien commented on 2021-08-12 13:12 (UTC) (edited on 2021-08-12 13:17 (UTC) by mboquien)

Hello. The package build fails because of the check() procedure. ______ TestDALResults.test_init_firstresource ______

self = <pyvo.dal.tests.test_query.TestDALResults object at 0x7fbb91e627c0>

def test_init_firstresource(self):
  dalresults = DALResults.from_result_url(
        'http://example.com/query/firstresource')

pyvo/dal/tests/test_query.py:303:


pyvo/dal/query.py:284: in from_result_url votableparse(cls._from_result_url(result_url, session).read), /usr/lib/python3.9/site-packages/astropy/utils/decorators.py:536: in wrapper return function(args, kwargs) /usr/lib/python3.9/site-packages/astropy/io/votable/table.py:166: in parse return tree.VOTableFile( /usr/lib/python3.9/site-packages/astropy/io/votable/tree.py:3616: in parse tag_mapping.get(tag, self._add_unknown_tag)( /usr/lib/python3.9/site-packages/astropy/io/votable/tree.py:3493: in _add_resource resource = Resource(config=config, pos=pos, *data) /usr/lib/python3.9/site-packages/astropy/io/votable/tree.py:3120: in init self.type = type /usr/lib/python3.9/site-packages/astropy/io/votable/tree.py:3159: in type vo_raise(E18, type, self._config, self._pos)


exception_class = <class 'astropy.io.votable.exceptions.E18'>, args = '' config = {'_current_table_number': 0, 'chunk_size': 256, 'columns': None, 'datatype_mapping': {}, ...}, pos = (5, 1)

def vo_raise(exception_class, args=(), config=None, pos=None):
    """
    Raise an exception, with proper position information if available.
    """
    if config is None:
        config = {}
  raise exception_class(args, config, pos)

E astropy.io.votable.exceptions.E18: None:5:1: E18: type must be 'results' or 'meta', not ''

/usr/lib/python3.9/site-packages/astropy/io/votable/exceptions.py:112: E18 ====================================================== warnings summary ====================================================== ../../../../../usr/lib/python3.9/site-packages/astropy/tests/plugins/display.py:16 /usr/lib/python3.9/site-packages/astropy/tests/plugins/display.py:16: AstropyDeprecationWarning: The astropy.tests.plugins.display plugin has been deprecated. See the pytest-astropy-header documentation for information on migrating to using pytest-astropy-header to customize the pytest header. warnings.warn('The astropy.tests.plugins.display plugin has been deprecated. '

pyvo/dal/tests/test_params.py::test_serialize_exceptions pyvo/dal/tests/test_params.py::test_units pyvo/dal/tests/test_params.py::test_inf /usr/lib/python3.9/site-packages/astropy/io/votable/converters.py:607: E02: ?:?:?: E02: Incorrect number of elements in array. Expected multiple of 2, got 1 warn_or_raise(E02, E02, (self._items, len(parts)), config, pos)

pyvo/dal/tests/test_query.py::TestDALResults::test_repr pyvo/dal/tests/test_query.py::TestDALResults::test_table_conversion /tmp/pyvo-test-nmk485t5/lib/python3.9/site-packages/pyvo/dal/query.py:429: AstropyDeprecationWarning: Using the table property is deprecated. Please use se to_table() instead. warn(AstropyDeprecationWarning(

pyvo/dal/tests/test_tap.py::TestTAPService::test_get_job_list /tmp/pyvo-test-nmk485t5/lib/python3.9/site-packages/pyvo/utils/xml/elements.py:306: UnknownElementWarning: None:2:0: UnknownElementWarning: Unknown element jobs warn_or_raise(

-- Docs: https://docs.pytest.org/en/stable/warnings.html ================================================== short test summary info =================================================== FAILED pyvo/dal/tests/test_query.py::TestDALResults::test_init_firstresource - astropy.io.votable.exceptions.E18: None:5:1:... ======================== 1 failed, 124 passed, 18 skipped, 3 xfailed, 1 xpassed, 7 warnings in 1.40s ========================= ==> ERROR: A failure occurred in check().

Deleting it fixes the issue. In my experience check() causes frequent failures when building packages and more often than not, I have to disable it. I have not noticed having any problem when using packages with check() disabled. I understand the usefulness of these checks for the developers, I am not sure they are useful for end users as there is little remedial action that can be taken on that end.