[GRASS-dev] [GRASS GIS] #3723: winGRASS7.7.svn - python 3 issues

GRASS GIS trac at osgeo.org
Tue Jan 1 13:14:47 PST 2019


#3723: winGRASS7.7.svn - python 3 issues
--------------------------+------------------------------------
  Reporter:  hellik       |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Python       |    Version:  svn-trunk
Resolution:               |   Keywords:  python3, py3, wingrass
       CPU:  Unspecified  |   Platform:  MSWindows
--------------------------+------------------------------------

Comment (by hellik):

 Replying to [ticket:3723 hellik]:
 >     from os import environb as environ
 > ImportError: cannot import name 'environb' from 'os'
 (C:\OSGEO4~1\apps\Python37\lib\os.py)
 > }}}

 regarding the environb issue, see

 https://docs.python.org/3/library/os.html

 {{{
  os.environb¶

     Bytes version of environ: a mapping object representing the
 environment as byte strings. environ and environb are synchronized (modify
 environb updates environ, and vice versa).

     environb is only available if supports_bytes_environ is True.
 }}}

 https://docs.python.org/3/library/os.html#os.supports_bytes_environ

 {{{
  os.supports_bytes_environ

     True if the native OS type of the environment is bytes (eg. False on
 Windows).
 }}}

 it seems this isn't available in windows

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



More information about the grass-dev mailing list