[GRASS-dev] [GRASS GIS] #3723: winGRASS7.7.svn - python 3 issues
GRASS GIS
trac at osgeo.org
Tue Jan 1 13:43:29 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 [comment:1 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
>
see (GRASS related):
https://stackoverflow.com/questions/52269281/fix-import-error-on-using-
environb-in-python#
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3723#comment:2>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list