[GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Markus Neteler
neteler at osgeo.org
Mon Sep 3 14:49:53 PDT 2018
On Mon, Sep 3, 2018 at 11:15 PM Anna Petrášová <kratochanna at gmail.com> wrote:
> On Mon, Sep 3, 2018 at 4:56 PM Anna Petrášová <kratochanna at gmail.com> wrote:
>> On Mon, Sep 3, 2018 at 4:48 PM Markus Neteler <neteler at osgeo.org> wrote:
...
>>> (grasspy3) [mneteler at oboe ~ ]$ python3 ~/bin/grass76
>>> Traceback (most recent call last):
>>> File "/home/mneteler/bin/grass76", line 2162, in <module>
>>> main()
>>> File "/home/mneteler/bin/grass76", line 2010, in main
>>> set_paths(grass_config_dir=grass_config_dir)
>>> File "/home/mneteler/bin/grass76", line 623, in set_paths
>>> os.environ['MANPATH'] = sys_man_path
>>> File "/home/mneteler/grasspy3/lib64/python3.6/os.py", line 674, in __setitem__
>>> value = self.encodevalue(value)
>>> File "/home/mneteler/grasspy3/lib64/python3.6/os.py", line 744, in encode
>>> raise TypeError("str expected, not %s" % type(value).__name__)
>>> TypeError: str expected, not bytes
>>>
>>> (same error as Martin)
>>
>> working on it, I don't get this because of some settings in my environment, which don't get to that line causing the error
>
> Try r73241
Works!
GRASS 7.7.svn (nc_spm_08_grass7):~ > python --version
Python 3.6.6
thanks,
Markus
More information about the grass-dev
mailing list