test_neighbors

./temporal/t.rast.neighbors – test_neighbors

Test failed

Testtest_neighbors
Testsuite./temporal/t.rast.neighbors
Test file./temporal/t.rast.neighbors/testsuite/test_neighbors.py
StatusFAILED
Return code1
Number of tests5
Successful tests4
Failed tests2
Percent successful80%
Test duration0:00:12.174877
Tested modulest.rast.neighbors

Supplementary files

Standard error output (stderr)

/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:14: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import multiarray
/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:21: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import umath
/usr/lib/python2.7/dist-packages/numpy/random/__init__.py:99: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from .mtrand import *
etc/python/grass/pygrass/raster/history.py:13: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class History(object):
/usr/lib/python2.7/dist-packages/mx/DateTime/mxDateTime/__init__.py:9: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from mxDateTime import *
/usr/lib/python2.7/dist-packages/psycopg2/__init__.py:50: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
etc/python/grass/temporal/abstract_dataset.py:569: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class AbstractDatasetComparisonKeyStartTime(object):
etc/python/grass/temporal/abstract_dataset.py:619: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class AbstractDatasetComparisonKeyEndTime(object):
/usr/lib/python2.7/dist-packages/dateutil/relativedelta.py:10: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class weekday(object):
/usr/lib/python2.7/dist-packages/dateutil/relativedelta.py:41: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class relativedelta(object):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:48: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzutc(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:73: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzoffset(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:104: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzlocal(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:175: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class _ttinfo(object):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:215: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzfile(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:507: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzrange(datetime.tzinfo):
Default TGIS driver / database set to:
driver: sqlite
database: $GISDBASE/$LOCATION_NAME/$MAPSET/tgis/sqlite.db
WARNING: Temporal database connection defined as:
/grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__temporal_t_rast_neighbors_test_neighbors/tgis/sqlite.db
But database file does not exist.
Creating temporal database: /grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__temporal_t_rast_neighbors_test_neighbors/tgis/sqlite.db
/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
FE....
======================================================================
ERROR: test_num_region (__main__.TestAggregationAbsolute)
Test t.rast.neighbors with parallel region processes
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.neighbors/testsuite/test_neighbors.py", line 47, in tearDown
    self.runModule("t.remove", flags="rf", type="strds", inputs="B")
  File "etc/python/grass/gunittest/case.py", line 1098, in runModule
    errors=errors)
CalledModuleError: Module run 1 t.remove ended with error
Process ended with non-zero return code t.remove(inputs=['B'], type='strds', flags=u'rf'). See the following errors:
ERROR: Space time raster dataset <B> not found


======================================================================
FAIL: test_num_region (__main__.TestAggregationAbsolute)
Test t.rast.neighbors with parallel region processes
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.neighbors/testsuite/test_neighbors.py", line 89, in test_num_region
    self.assertModule(trast_list)
  File "etc/python/grass/gunittest/case.py", line 1164, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <t.rast.neighbors> module ended with non-zero return code (1)
Called: t.rast_neighbors(input='A', output='B', size=5, method='average', basename='b', suffix='num%03', nprocs=2, flags=u'r', overwrite=True, quiet=True)
See the following errors:
ERROR: Unable to make mapset element fcell (/grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__temporal_t_rast_neighbors_test_neighbors/fcell): File exists
Process Process-3:
Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "etc/python/grass/pygrass/modules/interface/module.py", line 988, in run_modules_in_temp_region
    proc.wait()
  File "etc/python/grass/pygrass/modules/interface/module.py", line 796, in wait
    module=self.name, errors=stderr)
CalledModuleError: Module run r.neighbors r.neighbors input=a1@__temporal_t_rast_neighbors_test_neighbors method=average size=5 output=b_001@__temporal_t_rast_neighbors_test_neighbors --o --q ended with error
Process ended with non-zero return code 1. See the following errors:
None
Traceback (most recent call last):
  File "scripts/t.rast.neighbors", line 255, in <module>
    main()
  File "scripts/t.rast.neighbors", line 198, in main
    grass.error(_("Error running module: %\n    stderr: %s") %(proc.get_bash(), proc.outputs.stderr))
  File "etc/python/grass/pygrass/modules/interface/typedict.py", line 26, in __getattr__
    return OrderedDict.__getattr__(self, key)
AttributeError: type object 'OrderedDict' has no attribute '__getattr__'


----------------------------------------------------------------------
Ran 5 tests in 11.232s
FAILED (failures=1, errors=1)