[GRASS-dev] [GRASS GIS] #1544: (Windows/osgeo4w) r.out.tiff is broken

#1544: (Windows/osgeo4w) r.out.tiff is broken
-------------------------+--------------------------------------------------
Reporter: lutra | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: Default | Version: unspecified
Keywords: | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
The module seems to work fine under Linux.

Under Windows/OSGeo4w/6.4.2rc3 when launching the module I get:

{{{
Traceback (most recent call last):
   File "C:/OSGeo4W/apps/grass/grass-6.4.2RC3/etc/wxpython/wx
gui.py", line 492, in OnMenuCmd

menuform.GUI(parent = self).ParseCommand(cmd)
   File "C:\OSGeo4W\apps\grass\grass-6.4.2RC3\etc\wxpython\gu
i_modules\menuform.py", line 1732, in ParseCommand

blackList = _blackList)
   File "C:\OSGeo4W\apps\grass\grass-6.4.2RC3\etc\python\gras
s\script\task.py", line 460, in parse_interface

tree = etree.fromstring(get_interface_description(name))
   File
"C:\OSGeo4W\apps\Python27\lib\xml\etree\ElementTree.py",
line 1283, in XML

return parser.close()
   File
"C:\OSGeo4W\apps\Python27\lib\xml\etree\ElementTree.py",
line 1636, in close

self._raiseerror(v)
   File
"C:\OSGeo4W\apps\Python27\lib\xml\etree\ElementTree.py",
line 1488, in _raiseerror

raise err
xml.etree.ElementTree
.
ParseError
:
no element found: line 1, column 0
}}}

When running it under QGIS I get the error message you can see in the
attached image

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1544&gt;
GRASS GIS <http://grass.osgeo.org>

#1544: (Windows/osgeo4w) r.out.tiff is broken
-------------------------+--------------------------------------------------
Reporter: lutra | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Keywords: wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by martinl):

  * keywords: => wingrass
  * component: Default => wxGUI

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1544#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1544: (Windows/osgeo4w) r.out.tiff is broken
-------------------------+--------------------------------------------------
Reporter: lutra | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Keywords: wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by martinl):

* cc: martinl (added)

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1544#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1544: (Windows/osgeo4w) r.out.tiff is broken
-------------------------+--------------------------------------------------
Reporter: lutra | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Keywords: wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by mmetz):

Replying to [ticket:1544 lutra]:
> The module seems to work fine under Linux.
>
> > When running it under QGIS I get the error message you can see in the
attached image

That looks like a broken tiff library in the osgeo4w package. Try
downgrading the tiff library through the osgeo4w package manager.

Markus M

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1544#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1544: (Windows/osgeo4w) r.out.tiff is broken
-------------------------+--------------------------------------------------
Reporter: lutra | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Keywords: wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by lutra):

> That looks like a broken tiff library in the osgeo4w package. Try
downgrading the tiff library through the osgeo4w package manager.

correct, downgrading makes it work.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1544#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#1544: (Windows/osgeo4w) r.out.tiff is broken
-------------------------+--------------------------------------------------
Reporter: lutra | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Keywords: wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by martinl):

Replying to [comment:4 lutra]:
>
> > That looks like a broken tiff library in the osgeo4w package. Try
downgrading the tiff library through the osgeo4w package manager.
>
> correct, downgrading makes it work.

has been this bug in `libtiff` package already reported?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1544#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#1544: (Windows/osgeo4w) r.out.tiff is broken
-------------------------+--------------------------------------------------
Reporter: lutra | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Keywords: wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by lutra):

> has been this bug in `libtiff` package already reported?

don't think so. So it is just needed to file a ticket in the osgeo4w
tracker?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1544#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

#1544: (Windows/osgeo4w) r.out.tiff is broken
-------------------------+--------------------------------------------------
Reporter: lutra | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Keywords: wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by mmetz):

Replying to [comment:6 lutra]:
>
> > has been this bug in `libtiff` package already reported?
>
>
> don't think so. So it is just needed to file a ticket in the osgeo4w
tracker?

Yes please! Several different wingrass users (also MartinL) have
experienced problems which could be solved by downgrading the osgeo4w
`libtiff` package.

BTW, also make sure you are not using the osgeo4w `proj4` package version
4.7.1, but 4.7.0, there are OS-independent bugs in `proj4-4.7.1` which is
not yet officially released but proj4 is a core component for other osgeo
projects (most importantly gdal).

Markus M

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1544#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>

#1544: (Windows/osgeo4w) r.out.tiff is broken
-------------------------+--------------------------------------------------
Reporter: lutra | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Keywords: wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by lutra):

> BTW, also make sure you are not using the osgeo4w `proj4` package
version 4.7.1, but 4.7.0, there are OS-independent bugs in `proj4-4.7.1`
which is not yet officially released but proj4 is a core component for
other osgeo projects (most importantly gdal).

so also `proj4-4.7.1` is bugged and need to be fixed/reported in osgeo4w?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1544#comment:8&gt;
GRASS GIS <http://grass.osgeo.org>

#1544: (Windows/osgeo4w) r.out.tiff is broken
-------------------------+--------------------------------------------------
Reporter: lutra | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Keywords: wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by lutra):

> > don't think so. So it is just needed to file a ticket in the osgeo4w
tracker?
>
> Yes please!

http://trac.osgeo.org/osgeo4w/ticket/257

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1544#comment:9&gt;
GRASS GIS <http://grass.osgeo.org>

#1544: (Windows/osgeo4w) r.out.tiff is broken
-------------------------+--------------------------------------------------
Reporter: lutra | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Keywords: wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by lutra):

> BTW, also make sure you are not using the osgeo4w `proj4` package
version 4.7.1, but 4.7.0, there are OS-independent bugs in `proj4-4.7.1`
which is not yet officially released but proj4 is a core component for
other osgeo projects (most importantly gdal).

the version available now in osgeo4w is 4.7.0-4, so you may want to drop a
mail to osgeo4w packagers *before* they package 4.7.1

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1544#comment:10&gt;
GRASS GIS <http://grass.osgeo.org>

#1544: (Windows/osgeo4w) libtiff.dll is broken
-------------------------------+--------------------------------------------
Reporter: lutra | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Keywords: wingrass, osgeo4w | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------------+--------------------------------------------
Changes (by hamish):

  * keywords: wingrass => wingrass, osgeo4w

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1544#comment:11&gt;
GRASS GIS <http://grass.osgeo.org>

GRASS GIS wrote:

xml.etree.ElementTree
.
ParseError
:
no element found: line 1, column 0

Would someone mind fixing the code to generate a more meaningful error
message when --interface-description fails (e.g. when the resulting
string is empty or consists solely of whitespace)?

--
Glynn Clements <glynn@gclements.plus.com>

#1544: (Windows/osgeo4w) libtiff.dll is broken
-------------------------------+--------------------------------------------
Reporter: lutra | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: svn-releasebranch64
Keywords: wingrass, osgeo4w | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------------+--------------------------------------------
Changes (by neteler):

  * version: unspecified => svn-releasebranch64

Comment:

Replying to [comment:9 lutra]:
> http://trac.osgeo.org/osgeo4w/ticket/257

From OSGeo4W tracker, warmerdam January 2012:
> I have rebuilt the libtiff dll package with VC7.1 which did not use
manifests and this made it so that the tiffinfo.exe binary works again.
>
> It seems that any DLL built using manifests and depending on manifest
oriented runtimes requires that the .exe also be built with manifests.
>
> This is in place now, but I hope to do some investigation of a way
forward that does not depend on ancient compiler versions.

Can this be closed?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1544#comment:12&gt;
GRASS GIS <http://grass.osgeo.org>

#1544: (Windows/osgeo4w) libtiff.dll is broken
--------------------------+-------------------------------------------------
  Reporter: lutra | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: svn-releasebranch64
Resolution: fixed | Keywords: wingrass, osgeo4w
  Platform: MSWindows 7 | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => fixed

Comment:

No reaction, assuming that the problem is gone after rebuilt of the
libtiff dll package in OSGeo4W. Closing, feel free to reopen if needed.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1544#comment:13&gt;
GRASS GIS <http://grass.osgeo.org>