test_doctests stderr
/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:6: 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:7: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
from . import umath
etc/python/grass/pygrass/raster/history.py:12: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
class History(object):
/usr/lib/python2.7/xml/etree/ElementTree.py:1627: DeprecationWarning: This method of XMLParser is deprecated. Define doctype() method on the TreeBuilder target.
DeprecationWarning,
Exception AttributeError: "'GridModule' object has no attribute 'gisrc_dst'" in <bound method GridModule.__del__ of <grass.pygrass.modules.grid.grid.GridModule object at 0x7fa70cd1a4d0>> ignored
FFF.F.
Description:
Lists available GRASS data base files of the user-specified data type optionally using the search pattern.
Keywords:
general, map management, list
Usage:
g.list [-iretmpf] type=datatype[,datatype,...] [pattern=string]
[exclude=string] [mapset=name[,name,...]] [separator=character]
[region=name] [output=name] [--overwrite] [--help] [--verbose]
[--quiet] [--ui]
Flags:
-i Ignore case
-r Use basic regular expressions instead of wildcards
-e Use extended regular expressions instead of wildcards
-t Print data types
-m Print fully-qualified map names (including mapsets)
-p Pretty printing in human readable format
-f Verbose listing (also list map titles)
--o Allow output files to overwrite existing files
--h Print usage summary
--v Verbose module output
--q Quiet module output
--qq Super quiet module output
--ui Force launching GUI dialog
Parameters:
type Data type(s)
options: raster,raster_3d,vector,label,region,group,all
raster: raster map(s)
raster_3d: 3D raster map(s)
vector: vector map(s)
label: paint label file(s)
region: region definition(s)
group: imagery group(s)
all: all types
pattern Map name search pattern (default: all)
exclude Map name exclusion pattern (default: none)
mapset Name of mapset to list (default: current search path)
'.' for current mapset; '*' for all mapsets in location
separator Field separator
Special characters: pipe, comma, space, tab, newline
default: newline
region Name of saved region for map search (default: not restricted)
'.' for current region; '*' for default region
output Name for output file
If not given or '-' then standard output
ERROR: Required parameter <type> not set:
(Data type(s))
F
======================================================================
FAIL: GridModule (grass.pygrass.modules.grid.grid)
Doctest: grass.pygrass.modules.grid.grid.GridModule
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.modules.grid.grid.GridModule
File "etc/python/grass/pygrass/modules/grid/grid.py", line 379, in GridModule
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/grid/grid.py", line 401, in grass.pygrass.modules.grid.grid.GridModule
Failed example:
grd = GridModule('r.slope.aspect',
width=500, height=500, overlap=2,
processes=None, split=False,
elevation='elevation',
slope='slope', aspect='aspect', overwrite=True)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest grass.pygrass.modules.grid.grid.GridModule[0]>", line 5, in <module>
slope='slope', aspect='aspect', overwrite=True)
File "etc/python/grass/pygrass/modules/grid/grid.py", line 414, in __init__
self.module = Module(cmd, *args, **kargs)
File "etc/python/grass/pygrass/modules/interface/module.py", line 526, in __init__
self.__call__(*args, **kargs)
File "etc/python/grass/pygrass/modules/interface/module.py", line 566, in __call__
self.outputs[key].value = val
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 189, in _set_value
self._value, self._rawvalue = _check_value(self, value)
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 77, in _check_value
check_string(value)
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 47, in check_string
raise ValueError(msg % (param.name, type(value), value))
ValueError: The Parameter <slope> require a string, <type 'unicode'> instead is provided: u'slope'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/grid/grid.py", line 406, in grass.pygrass.modules.grid.grid.GridModule
Failed example:
grd.run()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest grass.pygrass.modules.grid.grid.GridModule[1]>", line 1, in <module>
grd.run()
NameError: name 'grd' is not defined
======================================================================
FAIL: copy_mapset (grass.pygrass.modules.grid.grid)
Doctest: grass.pygrass.modules.grid.grid.copy_mapset
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.modules.grid.grid.copy_mapset
File "etc/python/grass/pygrass/modules/grid/grid.py", line 63, in copy_mapset
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/grid/grid.py", line 85, in grass.pygrass.modules.grid.grid.copy_mapset
Failed example:
sorted(os.listdir(os.path.join(path, 'PERMANENT')))
Expected:
[u'DEFAULT_WIND', u'PROJ_EPSG', u'PROJ_INFO', u'PROJ_UNITS', u'VAR', u'WIND']
Got:
[u'CURGROUP', u'DEFAULT_WIND', u'MYNAME', u'PROJ_INFO', u'PROJ_UNITS', u'VAR', u'WIND']
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/grid/grid.py", line 87, in grass.pygrass.modules.grid.grid.copy_mapset
Failed example:
sorted(os.listdir(os.path.join(path, mname))) # doctest: +ELLIPSIS
Expected:
[...u'SEARCH_PATH',...u'WIND']
Got:
[u'WIND']
======================================================================
FAIL: get_cmd (grass.pygrass.modules.grid.grid)
Doctest: grass.pygrass.modules.grid.grid.get_cmd
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.modules.grid.grid.get_cmd
File "etc/python/grass/pygrass/modules/grid/grid.py", line 301, in get_cmd
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/grid/grid.py", line 309, in grass.pygrass.modules.grid.grid.get_cmd
Failed example:
slp = Module('r.slope.aspect',
elevation='ele', slope='slp', aspect='asp',
overwrite=True, run_=False)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest grass.pygrass.modules.grid.grid.get_cmd[0]>", line 3, in <module>
overwrite=True, run_=False)
File "etc/python/grass/pygrass/modules/interface/module.py", line 526, in __init__
self.__call__(*args, **kargs)
File "etc/python/grass/pygrass/modules/interface/module.py", line 566, in __call__
self.outputs[key].value = val
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 189, in _set_value
self._value, self._rawvalue = _check_value(self, value)
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 77, in _check_value
check_string(value)
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 47, in check_string
raise ValueError(msg % (param.name, type(value), value))
ValueError: The Parameter <slope> require a string, <type 'unicode'> instead is provided: u'slp'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/grid/grid.py", line 312, in grass.pygrass.modules.grid.grid.get_cmd
Failed example:
get_cmd(slp.get_dict()) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest grass.pygrass.modules.grid.grid.get_cmd[1]>", line 1, in <module>
get_cmd(slp.get_dict()) # doctest: +ELLIPSIS
NameError: name 'slp' is not defined
======================================================================
FAIL: select (grass.pygrass.modules.grid.grid)
Doctest: grass.pygrass.modules.grid.grid.select
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.modules.grid.grid.select
File "etc/python/grass/pygrass/modules/grid/grid.py", line 21, in select
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/grid/grid.py", line 31, in grass.pygrass.modules.grid.grid.select
Failed example:
slp = Module('r.slope.aspect',
elevation='ele', slope='slp', aspect='asp',
run_=False)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest grass.pygrass.modules.grid.grid.select[0]>", line 3, in <module>
run_=False)
File "etc/python/grass/pygrass/modules/interface/module.py", line 526, in __init__
self.__call__(*args, **kargs)
File "etc/python/grass/pygrass/modules/interface/module.py", line 566, in __call__
self.outputs[key].value = val
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 189, in _set_value
self._value, self._rawvalue = _check_value(self, value)
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 77, in _check_value
check_string(value)
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 47, in check_string
raise ValueError(msg % (param.name, type(value), value))
ValueError: The Parameter <slope> require a string, <type 'unicode'> instead is provided: u'slp'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/grid/grid.py", line 34, in grass.pygrass.modules.grid.grid.select
Failed example:
for rast in select(slp.outputs, 'raster'):
print(rast)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest grass.pygrass.modules.grid.grid.select[1]>", line 1, in <module>
for rast in select(slp.outputs, 'raster'):
NameError: name 'slp' is not defined
======================================================================
FAIL: MetaModule (grass.pygrass.modules.shortcuts)
Doctest: grass.pygrass.modules.shortcuts.MetaModule
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.modules.shortcuts.MetaModule
File "etc/python/grass/pygrass/modules/shortcuts.py", line 14, in MetaModule
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/shortcuts.py", line 23, in grass.pygrass.modules.shortcuts.MetaModule
Failed example:
g_list.inputs.type = 'raster'
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest grass.pygrass.modules.shortcuts.MetaModule[4]>", line 1, in <module>
g_list.inputs.type = 'raster'
File "etc/python/grass/pygrass/modules/interface/typedict.py", line 30, in __setattr__
self[key].value = value
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 189, in _set_value
self._value, self._rawvalue = _check_value(self, value)
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 77, in _check_value
check_string(value)
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 47, in check_string
raise ValueError(msg % (param.name, type(value), value))
ValueError: The Parameter <type> require a string, <type 'unicode'> instead is provided: u'raster'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/shortcuts.py", line 24, in grass.pygrass.modules.shortcuts.MetaModule
Failed example:
g_list.inputs.mapset = 'PERMANENT'
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest grass.pygrass.modules.shortcuts.MetaModule[5]>", line 1, in <module>
g_list.inputs.mapset = 'PERMANENT'
File "etc/python/grass/pygrass/modules/interface/typedict.py", line 30, in __setattr__
self[key].value = value
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 189, in _set_value
self._value, self._rawvalue = _check_value(self, value)
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 77, in _check_value
check_string(value)
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 47, in check_string
raise ValueError(msg % (param.name, type(value), value))
ValueError: The Parameter <mapset> require a string, <type 'unicode'> instead is provided: u'PERMANENT'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/shortcuts.py", line 26, in grass.pygrass.modules.shortcuts.MetaModule
Failed example:
g_list.run()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest grass.pygrass.modules.shortcuts.MetaModule[7]>", line 1, in <module>
g_list.run()
File "etc/python/grass/pygrass/modules/interface/module.py", line 713, in run
module=self.name, errors=stderr)
File "etc/python/grass/exceptions/__init__.py", line 68, in __init__
msg = _("Module run %s %s ended with error") % (module, code)
TypeError: 'list' object is not callable
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/shortcuts.py", line 28, in grass.pygrass.modules.shortcuts.MetaModule
Failed example:
g_list.outputs.stdout # doctest: +ELLIPSIS
Expected:
'...basin...soils...'
Got:
u''
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/shortcuts.py", line 34, in grass.pygrass.modules.shortcuts.MetaModule
Failed example:
what.inputs.map = 'elevation'
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest grass.pygrass.modules.shortcuts.MetaModule[12]>", line 1, in <module>
what.inputs.map = 'elevation'
File "etc/python/grass/pygrass/modules/interface/typedict.py", line 30, in __setattr__
self[key].value = value
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 189, in _set_value
self._value, self._rawvalue = _check_value(self, value)
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 77, in _check_value
check_string(value)
File "etc/python/grass/pygrass/modules/interface/parameter.py", line 47, in check_string
raise ValueError(msg % (param.name, type(value), value))
ValueError: The Parameter <map> require a string, <type 'unicode'> instead is provided: u'elevation'
----------------------------------------------------------------------
Ran 7 tests in 0.158s
FAILED (failures=5)