home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 221302437

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
221302437 MDU6SXNzdWUyMjEzMDI0Mzc= 1370 Testing fails with Pydap 3.2.1 on Debian 1964655 closed 0     1 2017-04-12T15:32:32Z 2017-04-12T16:24:25Z 2017-04-12T16:24:25Z CONTRIBUTOR      

I have updated the Debian packaging with xarray version 0.9.2 and tried to run the tests with some of its optional dependencies enabled.

The pydap specific tests fail with the following log: ``` ============================= test session starts ============================== platform linux -- Python 3.5.3, pytest-3.0.6, py-1.4.32, pluggy-0.4.0 rootdir: /tmp/autopkgtest.tfmbWT/autopkgtest_tmp, inifile: collected 2406 items / 1 skipped

. .......................................................................................................................................................................................................................................................................................................................................................................................................................................................x.....................................XxxxxxxxxXxxxXXxXXXXXxxXxxxxxxxxxxxxxxXXXx.s.sssxs....X.X.....XX.XXX.XXXXXX...X....X.X.....XX.XXX.XXXXXX...XFFssssssssssssssssssssssssssssssssssssssssssssssssssssss...............................................................................ssss.s.s.sssssssssssssssXs..s.......................................................................................................s.........................................................s..............................................................s.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................s......s......s...........................s......s......s.....................s....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s.............................................................................................................................................................

=================================== FAILURES =================================== ___ PydapTest.testcmp_local_file _____

self = <DatasetType with children 'bears', 'order', 'shot', 'aloan', 'cross', 'i', 'j', 'l'> attr = 'iteritems'

def __getattr__(self, attr):
    """Lazy shortcut return children."""
    try:
      return self[attr]

/usr/lib/python3/dist-packages/pydap/model.py:295:


self = <DatasetType with children 'bears', 'order', 'shot', 'aloan', 'cross', 'i', 'j', 'l'> key = 'iteritems'

def __getitem__(self, key):
    key = quote(key)
  return self._dict[key]

E KeyError: 'iteritems'

/usr/lib/python3/dist-packages/pydap/model.py:326: KeyError

During handling of the above exception, another exception occurred:

self = <DatasetType with children 'bears', 'order', 'shot', 'aloan', 'cross', 'i', 'j', 'l'> attr = 'iteritems'

def __getattr__(self, attr):
    """Attribute shortcut.

        Data classes have their attributes stored in the `attributes`
        attribute, a dictionary. For convenience, access to attributes can be
        shortcut by accessing the attributes directly::

            >>> var = DapType('var')
            >>> var.attributes['foo'] = 'bar'
            >>> print(var.foo)
            bar

        This will return the value stored under `attributes`.

        """
    try:
      return self.attributes[attr]

E KeyError: 'iteritems'

/usr/lib/python3/dist-packages/pydap/model.py:180: KeyError

During handling of the above exception, another exception occurred:

self = <xarray.tests.test_backends.PydapTest testMethod=test_cmp_local_file>

def test_cmp_local_file(self):
  with self.create_datasets() as (actual, expected):

/usr/lib/python3/dist-packages/xarray/tests/test_backends.py:1341:


/usr/lib/python3.5/contextlib.py:59: in enter return next(self.gen) /usr/lib/python3/dist-packages/xarray/tests/test_backends.py:1331: in create_datasets actual = open_dataset(url, engine='pydap', **kwargs) /usr/lib/python3/dist-packages/xarray/backends/api.py:310: in open_dataset return maybe_decode_store(store, lock) /usr/lib/python3/dist-packages/xarray/backends/api.py:226: in maybe_decode_store drop_variables=drop_variables) /usr/lib/python3/dist-packages/xarray/conventions.py:942: in decode_cf vars, attrs = obj.load() /usr/lib/python3/dist-packages/xarray/backends/common.py:122: in load for k, v in self.get_variables().items()) /usr/lib/python3/dist-packages/xarray/backends/pydap_.py:73: in get_variables for k, v in self.ds.iteritems()) /usr/lib/python3/dist-packages/pydap/model.py:297: in getattr return DapType.getattr(self, attr)


self = <DatasetType with children 'bears', 'order', 'shot', 'aloan', 'cross', 'i', 'j', 'l'> attr = 'iteritems'

def __getattr__(self, attr):
    """Attribute shortcut.

        Data classes have their attributes stored in the `attributes`
        attribute, a dictionary. For convenience, access to attributes can be
        shortcut by accessing the attributes directly::

            >>> var = DapType('var')
            >>> var.attributes['foo'] = 'bar'
            >>> print(var.foo)
            bar

        This will return the value stored under `attributes`.

        """
    try:
        return self.attributes[attr]
    except (KeyError, TypeError):
        raise AttributeError(
            "'%s' object has no attribute '%s'"
          % (self.__class__, attr))

E AttributeError: '<class 'pydap.model.DatasetType'>' object has no attribute 'iteritems'

/usr/lib/python3/dist-packages/pydap/model.py:184: AttributeError _____ PydapTest.test_dask ______

self = <DatasetType with children 'bears', 'order', 'shot', 'aloan', 'cross', 'i', 'j', 'l'> attr = 'iteritems'

def __getattr__(self, attr):
    """Lazy shortcut return children."""
    try:
      return self[attr]

/usr/lib/python3/dist-packages/pydap/model.py:295:


self = <DatasetType with children 'bears', 'order', 'shot', 'aloan', 'cross', 'i', 'j', 'l'> key = 'iteritems'

def __getitem__(self, key):
    key = quote(key)
  return self._dict[key]

E KeyError: 'iteritems'

/usr/lib/python3/dist-packages/pydap/model.py:326: KeyError

During handling of the above exception, another exception occurred:

self = <DatasetType with children 'bears', 'order', 'shot', 'aloan', 'cross', 'i', 'j', 'l'> attr = 'iteritems'

def __getattr__(self, attr):
    """Attribute shortcut.

        Data classes have their attributes stored in the `attributes`
        attribute, a dictionary. For convenience, access to attributes can be
        shortcut by accessing the attributes directly::

            >>> var = DapType('var')
            >>> var.attributes['foo'] = 'bar'
            >>> print(var.foo)
            bar

        This will return the value stored under `attributes`.

        """
    try:
      return self.attributes[attr]

E KeyError: 'iteritems'

/usr/lib/python3/dist-packages/pydap/model.py:180: KeyError

During handling of the above exception, another exception occurred:

self = <xarray.tests.test_backends.PydapTest testMethod=test_dask>

@requires_dask
def test_dask(self):
  with self.create_datasets(chunks={'j': 2}) as (actual, expected):

/usr/lib/python3/dist-packages/xarray/tests/test_backends.py:1361:


/usr/lib/python3.5/contextlib.py:59: in enter return next(self.gen) /usr/lib/python3/dist-packages/xarray/tests/test_backends.py:1331: in create_datasets actual = open_dataset(url, engine='pydap', **kwargs) /usr/lib/python3/dist-packages/xarray/backends/api.py:310: in open_dataset return maybe_decode_store(store, lock) /usr/lib/python3/dist-packages/xarray/backends/api.py:226: in maybe_decode_store drop_variables=drop_variables) /usr/lib/python3/dist-packages/xarray/conventions.py:942: in decode_cf vars, attrs = obj.load() /usr/lib/python3/dist-packages/xarray/backends/common.py:122: in load for k, v in self.get_variables().items()) /usr/lib/python3/dist-packages/xarray/backends/pydap_.py:73: in get_variables for k, v in self.ds.iteritems()) /usr/lib/python3/dist-packages/pydap/model.py:297: in getattr return DapType.getattr(self, attr)


self = <DatasetType with children 'bears', 'order', 'shot', 'aloan', 'cross', 'i', 'j', 'l'> attr = 'iteritems'

def __getattr__(self, attr):
    """Attribute shortcut.

        Data classes have their attributes stored in the `attributes`
        attribute, a dictionary. For convenience, access to attributes can be
        shortcut by accessing the attributes directly::

            >>> var = DapType('var')
            >>> var.attributes['foo'] = 'bar'
            >>> print(var.foo)
            bar

        This will return the value stored under `attributes`.

        """
    try:
        return self.attributes[attr]
    except (KeyError, TypeError):
        raise AttributeError(
            "'%s' object has no attribute '%s'"
          % (self.__class__, attr))

E AttributeError: '<class 'pydap.model.DatasetType'>' object has no attribute 'iteritems'

/usr/lib/python3/dist-packages/pydap/model.py:184: AttributeError = 2 failed, 2238 passed, 94 skipped, 31 xfailed, 42 xpassed in 119.28 seconds == ```

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1370/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 0.803ms · About: xarray-datasette