[GRASS-user] i.segment.hierarchical on windows?

hi,

anyone used i.segment.hierarchical in winGRASS7?

seems not to work here; GUI can't be opened

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/i-segment-hierarchical-on-windows-tp5177091.html
Sent from the Grass - Users mailing list archive at Nabble.com.

On Tue, Dec 9, 2014 at 1:52 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

hi,

anyone used i.segment.hierarchical in winGRASS7?

seems not to work here; GUI can't be opened

I'm just looking at the MS Windows build logs. There is the strange issue

which was discussed some time ago on grass-dev if I remember correctly.

    is not going to be frozen to produce a Windows executable.''')
RuntimeError:
            Attempt to start a new process before the current process
            has finished its bootstrapping phase.

And there is also:

  File
"c:\osgeo4w\usr\src\grass70_release\dist.i686-pc-mingw32\etc\python\grass\pygrass\raster\buffer.py",
line 8, in <module>
    FCELL = (np.float, np.float16, np.float32)
AttributeError: 'module' object has no attribute 'float16'

What is your error message if any? What about command line?

http://wingrass.fsv.cvut.cz/grass70/addons/grass-7.0.0svn/logs/
http://wingrass.fsv.cvut.cz/grass70/addons/grass-7.0.0svn/logs/i.segment.hierarchical.log

-----
best regards
Helmut
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/i-segment-hierarchical-on-windows-tp5177091.html
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

What is your error message if any?

from the winGRASS-wxcommand line:

-------------
Traceback (most recent call last):
  File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\gui
_core\prompt.py", line 263, in OnItemSelected

self.cmdDesc = gtask.parse_interface(cmd)
  File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass
\script\task.py", line 509, in parse_interface

tree = etree.fromstring(get_interface_description(name))
  File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass
\script\task.py", line 489, in get_interface_description

"\n\nDetails: %(det)s") % {'cmd': cmd, 'det':
decode(cmderr)}
grass.exceptions
.
ScriptError
:
Unable to fetch interface description for command
'i.segment.hierarchical'.
Details: C:\OSGeo4W\bin\python.exe: can't open file
'i.segment.hierarchical': [Errno 2] No such file or
directory
-------------

from the windows console:

-------------
C:\>i.segment.hierarchical
Traceback (most recent call last):
  File
"C:\Users\myricaria\AppData\Roaming\GRASS7\addons/scripts/i.segment.hiera
rchical.py", line 146, in <module>
    from grass.pygrass.modules.grid import GridModule
  File
"C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\pygrass\modules\gri
d\__init__.py", line 2, in <module>
    from grass.pygrass.modules.grid.grid import GridModule
  File
"C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\pygrass\modules\gri
d\grid.py", line 17, in <module>
    from grass.pygrass.modules.grid.patch import rpatch_map
  File
"C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\pygrass\modules\gri
d\patch.py", line 10, in <module>
    from grass.pygrass.raster import RasterRow
  File
"C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\pygrass\raster\__in
it__.py", line 32, in <module>
    from grass.pygrass.raster.buffer import Buffer
  File
"C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\pygrass\raster\buff
er.py", line 8, in <module>
    FCELL = (np.float, np.float16, np.float32)
AttributeError: 'module' object has no attribute 'float16'
-------------

the same issue as in
http://wingrass.fsv.cvut.cz/grass71/addons/grass-7.1.svn/logs/i.segment.hierarchical.log

some more issues:

- it seems the html manual is empty:
http://trac.osgeo.org/grass/browser/grass-addons/grass7/imagery/i.segment.hierarchical/i.segment.hierarchical.html

therefore g.extension claims an error

- there is a lib dependency:
http://trac.osgeo.org/grass/browser/grass-addons/grass7/imagery/i.segment.hierarchical/isegpatch.py

but the zip-file for winGRASS-g.extension
http://wingrass.fsv.cvut.cz/grass71/addons/grass-7.1.svn/i.segment.hierarchical.zip
doesn't include isegpatch.py; therefore winGRASS-i.segment.hierarchical
can't find this dependency in e.g.

C:\Users\xxx\AppData\Roaming\GRASS7\addons\etc

maybe some make issue.

for errors mentioned above I've put all the addon files manually in
C:\Users\xxx\AppData\Roaming\GRASS7\addons accordingly and added a bat file.

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/i-segment-hierarchical-on-windows-tp5177091p5177120.html
Sent from the Grass - Users mailing list archive at Nabble.com.

And there is also:

File
"c:\osgeo4w\usr\src\grass70_release\dist.i686-pc-mingw32\etc\python\grass\pygrass\raster
\buffer.py", line 8, in <module>
   FCELL = (np.float, np.float16, np.float32)
AttributeError: 'module' object has no attribute 'float16'

C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\pygrass\raster\buffer.py

[...]
line 7: CELL = (np.int, np.int0, np.int8, np.int16, np.int32, np.int64)
line 8: FCELL = (np.float, np.float16, np.float32)
line 9: _DCELL = 'float64', 'float128'
line 10: DCELL = tuple([getattr(np, attr) for attr in _DCELL if hasattr(np,
attr)])
[...]

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/i-segment-hierarchical-on-windows-tp5177091p5177122.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi Helmut,

On Tue, Dec 9, 2014 at 10:38 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

"C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\pygrass\raster\buff
er.py", line 8, in <module>
    FCELL = (np.float, np.float16, np.float32)
AttributeError: 'module' object has no attribute 'float16'

Ok, this should be fix in r63462.

some more issues:

- it seems the html manual is empty:
http://trac.osgeo.org/grass/browser/grass-addons/grass7/imagery/i.segment.hierarchical/i.segment.hierarchical.html

If I don't put an empty html file the make command give me an
error... Of course I should add some more details, but I didn't have
time for this.

- there is a lib dependency:
http://trac.osgeo.org/grass/browser/grass-addons/grass7/imagery/i.segment.hierarchical/isegpatch.py

but the zip-file for winGRASS-g.extension
http://wingrass.fsv.cvut.cz/grass71/addons/grass-7.1.svn/i.segment.hierarchical.zip
doesn't include isegpatch.py; therefore winGRASS-i.segment.hierarchical
can't find this dependency in e.g.

I don't know how to fix this... you should have the same problem with
other modules that are using their own libraries like r.modis, aren't
you?

Best regards

Pietro

    FCELL = (np.float, np.float16, np.float32)
AttributeError: 'module' object has no attribute 'float16'

Ok, this should be fix in r63462.

AFAIK float16 data type was introduced in NumPy 1.6, while OSGeo4W based
winGRASS uses 1.5.

If I don't put an empty html file the make command give me an
error... Of course I should add some more details, but I didn't have
time for this.

I've added a manual skeleton by r63463
(http://lists.osgeo.org/pipermail/grass-commit/2014-December/034373.html)

I don't know how to fix this... you should have the same problem with
other modules that are using their own libraries like r.modis, aren't
you?

I'll have a look.

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/i-segment-hierarchical-on-windows-tp5177091p5177184.html
Sent from the Grass - Users mailing list archive at Nabble.com.

I don't know how to fix this... you should have the same problem with
other modules that are using their own libraries like r.modis, aren't
you?

http://wingrass.fsv.cvut.cz/grass71/addons/grass-7.1.svn/r.modis.zip ships a
folder and files in etc\r.modis.

maybe some inspiration for make file from there?

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/i-segment-hierarchical-on-windows-tp5177091p5177186.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi Helmut,

On Wed, Dec 10, 2014 at 9:48 AM, Helmut Kudrnovsky <hellik@web.de> wrote:

    FCELL = (np.float, np.float16, np.float32)
AttributeError: 'module' object has no attribute 'float16'

Ok, this should be fix in r63462.

AFAIK float16 data type was introduced in NumPy 1.6, while OSGeo4W based
winGRASS uses 1.5.

ok, now should be loaded only if available.

If I don't put an empty html file the make command give me an
error... Of course I should add some more details, but I didn't have
time for this.

I've added a manual skeleton by r63463
(http://lists.osgeo.org/pipermail/grass-commit/2014-December/034373.html)

Thanks! I will try to fill it with a small example.

Best regards

Pietro