[GRASS-dev] [GRASS GIS] #3737: Testsuite gunittest/multirunner.py: TypeError: str expected, not bytes

GRASS GIS trac at osgeo.org
Fri Sep 6 13:18:12 PDT 2019


#3737: Testsuite gunittest/multirunner.py: TypeError: str expected, not bytes
--------------------------+---------------------------------
  Reporter:  AnikaBettge  |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.8.0
 Component:  Python       |    Version:  git-releasebranch78
Resolution:               |   Keywords:  Python3, testsuite
       CPU:  x86-64       |   Platform:  Linux
--------------------------+---------------------------------
Changes (by neteler):

 * version:  svn-trunk => git-releasebranch78


Comment:

 State as of today:

 {{{
 g.version -rge
 version=7.8.dev
 date=2019
 revision=726b55ea2
 build_date=2019-09-06
 build_platform=x86_64-pc-linux-gnu
 build_off_t_size=8
 libgis_revision=00000
 libgis_date="?"
 proj4=5.2.0
 gdal=2.3.2
 geos=3.7.1
 sqlite=3.26.0


 bash test_framework_GRASS_GIS_with_NC.sh
 test_framework_GRASS_GIS_with_NC.conf
 --2019-09-06 22:11:34--
 http://fatra.cnr.ncsu.edu/data/nc_spm_full_v2alpha.tar.gz
 Resolving fatra.cnr.ncsu.edu (fatra.cnr.ncsu.edu)... 152.1.72.43
 Connecting to fatra.cnr.ncsu.edu (fatra.cnr.ncsu.edu)|152.1.72.43|:80...
 connected.
 HTTP request sent, awaiting response... 416 Requested Range Not
 Satisfiable

     The file is already fully retrieved; nothing to do.

 + echo 'Testing of GRASS GIS started: 2019-09-06-20-11'
 + '[' no = yes ']'
 + cd testreports/reports_for_date-2019-09-06-20-11
 + python
 /home/mneteler/software/grass78_git/lib/python/gunittest/multirunner.py
 --grassbin /home/mneteler/software/grass78_git/bin.x86_64-pc-linux-
 gnu/grass78 --grasssrc /home/mneteler/software/grass78_git --grassdata
 /home/mneteler/grassdata --location nc_spm_full_v2alpha --location-type nc
 test_v_out_lidar from ./vector/v.out.lidar failed (2 tests failed)
 decimation_test from ./vector/v.in.lidar failed (1 test failed)
 test_v_in_lidar_filter from ./vector/v.in.lidar failed (1 test failed)
 test_v_in_lidar_basic from ./vector/v.in.lidar failed (1 test failed)
 mask_test from ./vector/v.in.lidar failed (1 test failed)
 test_v_in_pdal_basic from ./vector/v.in.pdal failed (1 test failed)
 test_v_in_pdal_filter from ./vector/v.in.pdal failed (1 test failed)
 Traceback (most recent call last):
   File "/usr/lib64/python2.7/runpy.py", line 174, in _run_module_as_main
     "__main__", fname, loader, pkg_name)
   File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
     exec code in run_globals
   File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-
 gnu/etc/python/grass/gunittest/main.py", line 178, in <module>
     sys.exit(main())
   File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-
 gnu/etc/python/grass/gunittest/main.py", line 174, in main
     results_dir=results_dir)
   File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-
 gnu/etc/python/grass/gunittest/invoker.py", line 271, in run_in_location
     gisdbase=gisdbase, location=location)
   File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-
 gnu/etc/python/grass/gunittest/invoker.py", line 218, in _run_test_module
     stdout_file.write(stdout)
 UnicodeEncodeError: 'ascii' codec can't encode characters in position
 596-597: ordinal not in range(128)
 + export PYTHONPATH=/home/mneteler/software/grass78_git/dist.x86_64-pc-
 linux-gnu/etc/python:
 + PYTHONPATH=/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-
 gnu/etc/python:
 + python
 /home/mneteler/software/grass78_git/lib/python/gunittest/multireport.py
 --output summary_report 'reports_for_date-*/*'
 Traceback (most recent call last):
   File
 "/home/mneteler/software/grass78_git/lib/python/gunittest/multireport.py",
 line 28, in <module>
     from grass.gunittest.checkers import text_to_keyvalue
   File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-
 gnu/etc/python/grass/__init__.py", line 21, in <module>
     _LOCALE_DIR = os.path.join(os.getenv("GISBASE"), 'locale')
   File "/usr/lib64/python2.7/posixpath.py", line 70, in join
     elif path == '' or path.endswith('/'):
 AttributeError: 'NoneType' object has no attribute 'endswith'
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3737#comment:9>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list