Discussion:
[osgeo4w-dev] environb import error in python 3.6.0 under osgeo4w
Olivier P. Francois
2018-06-20 12:52:15 UTC
Permalink
Hi,

I have python 3.6.0-2 installed on my computer through the osgeo4w64
installer in windows 10.

I have a bug when importing grass.script through python 3.6, as attached.
The problem is with environb in the os module.
The error happens in grass.script.core.py, line 44, with the command from
os import environb as environ.

I tried a direct test of the import (from os import environb), without
calling grass, and get the same error. So this is independent from grass.

I also tried under a linux centos installation with python 3.6.5, and the
import does not raise any error.

I think it may be a bug with the os package in python 3.6.0, but maybe not.

Please let me know if this is a known error and if it can be fixed, or
maybe if osgeo4w installer could pass to python 3.6.5 (if it solves the
issue...)?

Thanks,

Olivier
Jürgen E. Fischer
2018-06-20 14:11:38 UTC
Permalink
Hi Olivier,
Post by Olivier P. Francois
I have python 3.6.0-2 installed on my computer through the osgeo4w64
installer in windows 10.
GRASS in OSGeo4W currently only uses python2 - so that error doesn't normally
appear.

And os.environb is not supported on windows
(see https://docs.python.org/3.6/library/os.html#os.environb)

So this apparently is an upstream GRASS bug - but as far as I can tell python3
support in GRASS is work in progress (see
https://trac.osgeo.org/grass/ticket/3565).


Jürgen
--
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de
Loading...