Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#2731 closed defect (fixed)

t.rast.aggregate: ValueError: too many values to unpack

Reported by: neteler Owned by: grass-dev@…
Priority: normal Milestone: 7.2.0
Component: Temporal Version: svn-trunk
Keywords: t.rast.aggregate Cc:
CPU: Unspecified Platform: Unspecified

Description

The current t.rast.aggregate fails on Windows:

C:\>t.rast.aggregate in=CA_tmean_temporal@tmean out=CA_tmean_annual basename=yea
r granularity="1 years" method=average
Traceback (most recent call last):
  File "C:\OSGeo4W\apps\grass\grass-7.1.svn/scripts/t.rast.aggregate.py", line 1
96, in <module>
    main()
  File "C:\OSGeo4W\apps\grass\grass-7.1.svn/scripts/t.rast.aggregate.py", line 1
73, in main
    overwrite=gcore.overwrite())
  File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\temporal\aggregatio
n.py", line 308, in aggregate_by_topology
    process_queue.put(mod)
  File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\pygrass\modules\int
erface\module.py", line 206, in put
    self._list[self._proc_count].run()
  File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\pygrass\modules\int
erface\module.py", line 693, in run
    G_debug(1, self.get_bash())
  File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\pygrass\modules\int
erface\env.py", line 32, in G_debug
    debug_level = get_debug_level()
  File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\pygrass\modules\int
erface\env.py", line 25, in get_debug_level
    debug = get_env().get('DEBUG')
  File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\pygrass\modules\int
erface\env.py", line 19, in get_env
    for k, v in [row.split(':') for row in grc if row]])
ValueError: too many values to unpack

We tried to aggregate temperature time series.

Change History (4)

comment:1 Changed 4 years ago by huhabla

Fixed in 66061, please test.

comment:2 in reply to:  1 Changed 4 years ago by neteler

Replying to huhabla:

Fixed in r66061, please test.

Great, issue solved, thanks. Please backport it (otherwise I can do that)

comment:3 Changed 4 years ago by neteler

Resolution: fixed
Status: newclosed

Backported in r66106. Closing.

comment:4 Changed 4 years ago by neteler

Milestone: 7.1.07.2.0

Milestone renamed

Note: See TracTickets for help on using tickets.