[GRASS-dev] [GRASS GIS] #2708: Run GRASS with Python3

GRASS GIS trac at osgeo.org
Sat Jul 18 03:05:50 PDT 2015


#2708: Run GRASS with Python3
--------------------------+-------------------------
  Reporter:  zarch        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.0.1
 Component:  Default      |    Version:  unspecified
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-------------------------

Comment (by glynn):

 Replying to [ticket:2708 zarch]:

 > 3) lib/python/script/* => script.diff

 These are wrong. You should be converting str to bytes, not the other way
 around. A child process' argv, environment, stdin/stdout/stderr are all
 byte sequences. Converting everything to unicode so that Python can
 convert it back to bytes under the hood is adding needless failure modes.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2708#comment:1>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list