[GRASS-dev] [GRASS GIS] #3781: v.in.geonames - fails in winGRASS7.7 (python3)

GRASS GIS trac at osgeo.org
Wed Mar 6 13:24:01 PST 2019


#3781: v.in.geonames - fails in winGRASS7.7 (python3)
--------------------------+-------------------------
 Reporter:  hellik        |      Owner:  grass-dev@…
     Type:  defect        |     Status:  new
 Priority:  normal        |  Milestone:  7.8.0
Component:  Python        |    Version:  svn-trunk
 Keywords:  python3, py3  |        CPU:  x86-64
 Platform:  MSWindows     |
--------------------------+-------------------------
 tested with

 {{{
 System Info
 GRASS version: 7.7.svn
 GRASS SVN revision: r74150M
 Build date: 2019-03-05
 Build platform: x86_64-w64-mingw32
 GDAL: 2.4.0
 PROJ.4: 5.2.0
 GEOS: 3.7.0
 SQLite: 3.26.0
 Python: 3.7.0
 wxPython: 4.0.3
 Platform: Windows-10-10.0.17763-SP0 (OSGeo4W)
 }}}

 v.in.geonames fails with

 {{{
 v.in.geonames input=D:\data\private\presentation\lernwerkstatt\AT\AT.txt
 output=at_out
 Traceback (most recent call last):
   File
 "C:\OSGEO4~1\apps\grass\grass77/scripts/v.in.geonames.py",
 line 150, in <module>
     main()
   File
 "C:\OSGEO4~1\apps\grass\grass77/scripts/v.in.geonames.py",
 line 67, in main
     num_places = sum(1 for _ in f)
   File
 "C:\OSGEO4~1\apps\grass\grass77/scripts/v.in.geonames.py",
 line 67, in <genexpr>
     num_places = sum(1 for _ in f)
   File "C:\OSGEO4~1\apps\Python37\lib\encodings\cp1252.py",
 line 23, in decode
     return
 codecs.charmap_decode(input,self.errors,decoding_table)[0]
 UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d
 in position 3815: character maps to <undefined>
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3781>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list