<div dir="ltr"><br><br><div class="gmail_extra"><span class="">On Mon, Jan 5, 2015 at 4:15 PM, Martin Landa <span dir="ltr"><<a href="mailto:landa.martin@gmail.com" target="_blank">landa.martin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>2015-01-05 21:21 GMT+01:00 Markus Neteler <<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>>:<br>
> No problem. The only remaining thing which I don't understand how to<br>
> fix it is this:<br>
><br>
>   File "./lib/gis/testsuite/gis_lib_env_test.py", line 31, in test_gisrc<br>
>     libgis.G__read_gisrc_env()<br>
> AttributeError: 'module' object has no attribute 'G__read_gisrc_env'<br>
<br>
</span>done in r63960 (and backported). Martin</blockquote></span><br><span class=""></span><div class="gmail_quote">On Wed, Jan 7, 2015 at 10:37 AM, Pietro <span dir="ltr"><<a href="mailto:peter.zamb@gmail.com" target="_blank">peter.zamb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">
<p dir="ltr">Il 07/gen/2015 16:11 "Vaclav Petras"  wrote:<br>
> Thanks but the tests are failing with different error now:<br>
><br>
><br>
> Traceback (most recent call last):<br>
>   File "lib/python/pygrass/raster/testsuite/test_raster.py", line 6, in <module><br>
>     from grass.pygrass.raster import RasterRow<br>
>   File "etc/python/grass/pygrass/raster/__init__.py", line 24, in <module><br>
>    from grass.pygrass.gis.region import Region<br>
>   File "etc/python/grass/pygrass/gis/__init__.py", line 22, in <module><br>
>     'icon': libgis.G_ELEMENT_ICON,<br>
> AttributeError: 'module' object has no attribute 'G_ELEMENT_ICON'<br></p>
</span><p dir="ltr">I saw the error this morning. Should be fixed in r63972.</p><span class=""><font color="#888888">
<p dir="ltr">Pietro</p>
</font></span></blockquote></div>To see if the tests are successful before you commit anything use inside GRASS session:<br><div><br>python -m grass.gunittest.main --location nc_spm_grass7 --location-type nc<br><br></div><div>where "nc_spm_grass7" is your GRASS GIS sample NC SPM location. Read more about running tests here:<br></div><div><br><a href="http://grass.osgeo.org/grass71/manuals/libpython/gunittest_testing.html#testing-with-gunittest-package-in-general">http://grass.osgeo.org/grass71/manuals/libpython/gunittest_testing.html#testing-with-gunittest-package-in-general</a><br><br></div><div>I went through the tests and there is still several issues (ignoring the once caused by different maps in NC full and basic):<br></div><div><br><a href="http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/testfiles.html">http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/testfiles.html</a><br><br><a href="http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/lib/python/pygrass/test_doctests/index.html">http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/lib/python/pygrass/test_doctests/index.html</a><br>NameError: name 'Region' is not defined<br><br><a href="http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/lib/python/pygrass/raster/test_history/index.html">http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/lib/python/pygrass/raster/test_history/index.html</a><br>OpenError: The map does not exist, I can't open in 'r' mode<br>(probably missing map but the error message should be better)<br><br><a href="http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/lib/python/pygrass/modules/test_doctests/index.html">http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/lib/python/pygrass/modules/test_doctests/index.html</a><br>AttributeError: 'module' object has no attribute 'grid'<br><br><a href="http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/lib/python/pygrass/shell/test_doctests/index.html">http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/lib/python/pygrass/shell/test_doctests/index.html</a><br>AttributeError: 'module' object has no attribute 'conversion'<br><br><a href="http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/lib/python/pygrass/gis/test_doctests/index.html">http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/lib/python/pygrass/gis/test_doctests/index.html</a><br>AttributeError: 'module' object has no attribute 'region'<br><br><a href="http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/temporal/t.rast.to.rast3/test_strds_to_rast3/index.html">http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/temporal/t.rast.to.rast3/test_strds_to_rast3/index.html</a><br>RuntimeError: Module call r3.univar(...) ended successfully but we were expecting output and got nothing. There were no error messages.<br></div><div>(see #2269, <a href="http://trac.osgeo.org/grass/ticket/2269">http://trac.osgeo.org/grass/ticket/2269</a>)<br><br><a href="http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/temporal/t.rast.accumulate/test.t.rast.accumulate/index.html">http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-01-09-08-00/report_for_nc_spm_08_grass7_nc/temporal/t.rast.accumulate/test.t.rast.accumulate/index.html</a><br></div><div>(hard to tell, it is an bash script)<br></div></div></div>