Opened 6 years ago

Closed 6 years ago

#3644 closed defect (fixed)

winGRASS7.7.svn: displaying raster causes: TypeError: environment can only contain strings

Reported by: hellik Owned by: grass-dev@…
Priority: normal Milestone: 7.8.0
Component: Default Version: svn-trunk
Keywords: Python3 Cc:
CPU: x86-64 Platform: MSWindows 8

Description

System Info                                                                     
GRASS version: 7.7.svn                                                          
GRASS SVN revision: r73313                                                      
Build date: 2018-09-11                                                          
Build platform: x86_64-w64-mingw32                                              
GDAL: 2.2.4                                                                     
PROJ.4: 4.9.3                                                                   
GEOS: 3.5.0                                                                     
SQLite: 3.17.0                                                                  
Python: 2.7.14                                                                  
wxPython: 2.8.12.1                                                              
Platform: Windows-10-10.0.17134 (OSGeo4W) 

loading a raster map to display:

Exception in thread Thread-14:
Traceback (most recent call last):
  File "C:\OSGEO4~1\apps\Python27\lib\threading.py", line
801, in __bootstrap_inner
    self.run()
  File "C:\OSGEO4~1\apps\grass\grass-7.7.svn\gui\wxpython\co
re\gthread.py", line 99, in run
    ret = vars()['callable'](*args, **kwds)
  File "C:\OSGEO4~1\apps\grass\grass-7.7.svn\gui\wxpython\co
re\render.py", line 405, in _render
    p = grass.start_command(cmd[0], env=env,
stderr=grass.PIPE, **cmd[1])
  File "C:\OSGEO4~1\apps\grass\grass-7.7.svn\etc\python\gras
s\script\core.py", line 402, in start_command
    return Popen(args, **popts)
  File "C:\OSGEO4~1\apps\grass\grass-7.7.svn\etc\python\gras
s\script\core.py", line 76, in __init__
    subprocess.Popen.__init__(self, args, **kwargs)
  File "C:\OSGEO4~1\apps\Python27\lib\subprocess.py", line
390, in __init__
    errread, errwrite)
  File "C:\OSGEO4~1\apps\Python27\lib\subprocess.py", line
640, in _execute_child
    startupinfo)
TypeError: environment can only contain strings

Change History (4)

comment:1 by annakrat, 6 years ago

Keywords: Python3 added

comment:2 by annakrat, 6 years ago

Try r73326.

in reply to:  2 comment:3 by hellik, 6 years ago

Replying to annakrat:

Try r73326.

tested with

GRASS version: 7.7.svn                                                          
GRASS SVN revision: r73329                                                      
Build date: 2018-09-15                                                          
Build platform: x86_64-w64-mingw32                                              
GDAL: 2.2.4                                                                     
PROJ.4: 4.9.3                                                                   
GEOS: 3.5.0                                                                     
SQLite: 3.17.0                                                                  
Python: 2.7.14                                                                  
wxPython: 2.8.12.1                                                              
Platform: Windows-10-10.0.17134 (OSGeo4W)

works again, thanks. closing ticket.

comment:4 by hellik, 6 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.