Re: [GRASS-dev] [GRASS GIS] #3028: t.rast.export portability bug in lib/python/temporal/stds_export.py, line 274

2019-04-28 Thread GRASS GIS
#3028: t.rast.export portability bug in lib/python/temporal/stds_export.py, line
274
--+-
  Reporter:  neteler  |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:  7.0.7
 Component:  Temporal |Version:  svn-releasebranch70
Resolution:   |   Keywords:  t.rast.export
   CPU:  Unspecified  |   Platform:  MSWindows 8
--+-

Comment (by neteler):

 Can a Windows user please test? I have no Windows at time...

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3028: t.rast.export portability bug in lib/python/temporal/stds_export.py, line 274

2019-04-28 Thread GRASS GIS
#3028: t.rast.export portability bug in lib/python/temporal/stds_export.py, line
274
--+-
  Reporter:  neteler  |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:  7.0.7
 Component:  Temporal |Version:  svn-releasebranch70
Resolution:   |   Keywords:  t.rast.export
   CPU:  Unspecified  |   Platform:  MSWindows 8
--+-

Comment (by martinl):

 Are you sure? `tempfile.mkdtemp` should be platform independent...

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] [GRASS GIS] #3028: t.rast.export portability bug in lib/python/temporal/stds_export.py, line 274

2016-05-07 Thread GRASS GIS
#3028: t.rast.export portability bug in lib/python/temporal/stds_export.py, line
274
---+-
 Reporter:  neteler|  Owner:  grass-dev@…
 Type:  defect | Status:  new
 Priority:  normal |  Milestone:  7.0.5
Component:  Temporal   |Version:  svn-releasebranch70
 Keywords:  t.rast.export  |CPU:  Unspecified
 Platform:  MSWindows 8|
---+-
 error message from grass-user, on MS-Windows:

 > new_cwd = tempfile.mkdtemp(dir=directory)
 >   File "C:\OSGEO4~1\apps\Python27\lib\tempfile.py", line 329, in mkdtemp
 > _os.mkdir(file, 0700)
 > WindowsError: [Error 3] El sistema no puede encontrar la ruta
 especificada: '/tmp\\tmppi2oh1'

 This looks like a bug: it uses /tmp/ which does not exist on Windows.
 The current code is:

 {{{
 lib/python/temporal/stds_export.py, line 274
 # Create the temporary directory and jump into it
 new_cwd = tempfile.mkdtemp(dir=directory)
 os.chdir(new_cwd)
 }}}


 but this portable function should be used:

 {{{
 lib/python/script/core.py:def tempdir():
 }}}

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev