You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Mattmann, Chris A (3980)" <ch...@jpl.nasa.gov> on 2015/03/22 17:35:53 UTC

Re: TestGDALParser.testParseBasicInfo and TestGDALParser.testParseMetadata errors

Agreed Seb, moving dev@nutch.a.o into BCC and moving this to
the Tika list.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Chief Architect
Instrument Software and Science Data Systems Section (398)
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 168-519, Mailstop: 168-527
Email: chris.a.mattmann@nasa.gov
WWW:  http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Associate Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++






-----Original Message-----
From: Sebastian Nagel <wa...@googlemail.com>
Reply-To: "dev@nutch.apache.org" <de...@nutch.apache.org>
Date: Sunday, March 22, 2015 at 4:32 AM
To: "dev@nutch.apache.org" <de...@nutch.apache.org>
Subject: Re: TestGDALParser.testParseBasicInfo and
TestGDALParser.testParseMetadata errors

>Hi,
>
>maybe this thread is better at dev@tika
>since it's about building Tika.
>
>Btw., I can successfully build Tika trunk/1.8.
>Looks like something system-specific, similar to TIKA-1503:
>gdalinfo is installed, but fails to parse a certain file format.
>
>Thanks,
>Sebastian
>
>On 03/22/2015 08:26 AM, Mohit Bagde wrote:
>> Hi,
>> 
>> I am also getting a similar error. Is this issue because of prior
>>installation of gdal, tesseract? I
>> was using Tika 1.7 but it didn't work with 1.8 when I tried to build
>>it. I did a clean svn checkout
>> pull and then built it buy encountered similar errors as above.
>> 
>> Is there a patch for this? Or has anyone found a fix for this?
>> 
>> On Mar 21, 2015 10:24 PM, "Anvesha Sinha" <anveshas@usc.edu
>><ma...@usc.edu>> wrote:
>> 
>>     Hi everyone,
>> 
>>     While installing TIKA, I am getting the following error:
>> 
>>     Tests run: 3, Failures: 2, Errors: 0, Skipped: 1, Time elapsed:
>>0.209 sec <<< FAILURE! - in
>>     org.apache.tika.parser.gdal.TestGDALParser
>>     testParseBasicInfo(org.apache.tika.parser.gdal.TestGDALParser)
>>Time elapsed: 0.118 sec  <<<
>>     FAILURE!
>>     java.lang.AssertionError: null
>>         at org.junit.Assert.fail(Assert.java:86)
>>         at org.junit.Assert.assertTrue(Assert.java:41)
>>         at org.junit.Assert.assertNotNull(Assert.java:621)
>>         at org.junit.Assert.assertNotNull(Assert.java:631)
>>      *   at 
>>org.apache.tika.parser.gdal.TestGDALParser.testParseBasicInfo(TestGDALPar
>>ser.java:70)
>>     *
>>     testParseMetadata(org.apache.tika.parser.gdal.TestGDALParser)  Time
>>elapsed: 0.062 sec  <<< FAILURE!
>>     java.lang.AssertionError: null
>>         at org.junit.Assert.fail(Assert.java:86)
>>         at org.junit.Assert.assertTrue(Assert.java:41)
>>         at org.junit.Assert.assertNotNull(Assert.java:621)
>>         at org.junit.Assert.assertNotNull(Assert.java:631)
>>     *    at 
>>org.apache.tika.parser.gdal.TestGDALParser.testParseMetadata(TestGDALPars
>>er.java:111)
>>     *
>> 
>>     Just to clarify, this error is not the same as
>> 
>>     testParseFITS(org.apache.tika.parser.gdal.TestGDALParser)  Time
>>elapsed: 0.206 sec  <<< FAILURE!
>>     java.lang.AssertionError
>>             at org.junit.Assert.fail(Assert.java:86)
>>             at org.junit.Assert.assertTrue(Assert.java:41)
>>             at org.junit.Assert.assertNotNull(Assert.java:621)
>>             at org.junit.Assert.assertNotNull(Assert.java:631)
>>       *      at 
>>org.apache.tika.parser.gdal.TestGDALParser.testParseFITS(TestGDALParser.j
>>ava:153)
>>     *
>>     which was rectified by tpalsulich in Revision 1647742. Any
>>guidance/help would be appreciated.
>> 
>>     Thanks,
>>     Anvesha
>>     -- 
>>     Graduate Student (MS in Computer Science)
>>     University of Southern California
>>     /Phone: (+1) 213-308-9002 <tel:%28%2B1%29%20213-308-9002>/
>> 
>


Re: TestGDALParser.testParseBasicInfo and TestGDALParser.testParseMetadata errors

Posted by Tyler Palsulich <tp...@gmail.com>.
+1. Tika uses the external `gdalinfo` command to extract info from the
file. The unit tests first check `gdalinfo` is available -- if so, the
tests are run. But, it seems like in your case(s), your installation of
`gdalinfo` doesn't support the filetypes we test.

I don't think it would be correct for Tika to always ignore all results of
the GDAL tests. So, you can either not test (not a good idea), disable
those tests locally (and be careful not to check those changes into any
patches... annoying to do), move `gdalinfo` off of your PATH
(annoyingness-level depends on how you installed it and if you want to
actually get GDAL parses), uninstall `gdalinfo`, or reinstall gdal with the
complete flag (see the wiki <https://wiki.apache.org/tika/TikaGDAL>).

None of these options are really ideal. But, I think reinstalling with the
complete flag is the best one.

I hope that helps.

Tyler

On Sun, Mar 22, 2015 at 12:35 PM, Mattmann, Chris A (3980) <
chris.a.mattmann@jpl.nasa.gov> wrote:

> Agreed Seb, moving dev@nutch.a.o into BCC and moving this to
> the Tika list.
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Chris Mattmann, Ph.D.
> Chief Architect
> Instrument Software and Science Data Systems Section (398)
> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> Office: 168-519, Mailstop: 168-527
> Email: chris.a.mattmann@nasa.gov
> WWW:  http://sunset.usc.edu/~mattmann/
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Adjunct Associate Professor, Computer Science Department
> University of Southern California, Los Angeles, CA 90089 USA
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
>
>
>
>
> -----Original Message-----
> From: Sebastian Nagel <wa...@googlemail.com>
> Reply-To: "dev@nutch.apache.org" <de...@nutch.apache.org>
> Date: Sunday, March 22, 2015 at 4:32 AM
> To: "dev@nutch.apache.org" <de...@nutch.apache.org>
> Subject: Re: TestGDALParser.testParseBasicInfo and
> TestGDALParser.testParseMetadata errors
>
> >Hi,
> >
> >maybe this thread is better at dev@tika
> >since it's about building Tika.
> >
> >Btw., I can successfully build Tika trunk/1.8.
> >Looks like something system-specific, similar to TIKA-1503:
> >gdalinfo is installed, but fails to parse a certain file format.
> >
> >Thanks,
> >Sebastian
> >
> >On 03/22/2015 08:26 AM, Mohit Bagde wrote:
> >> Hi,
> >>
> >> I am also getting a similar error. Is this issue because of prior
> >>installation of gdal, tesseract? I
> >> was using Tika 1.7 but it didn't work with 1.8 when I tried to build
> >>it. I did a clean svn checkout
> >> pull and then built it buy encountered similar errors as above.
> >>
> >> Is there a patch for this? Or has anyone found a fix for this?
> >>
> >> On Mar 21, 2015 10:24 PM, "Anvesha Sinha" <anveshas@usc.edu
> >><ma...@usc.edu>> wrote:
> >>
> >>     Hi everyone,
> >>
> >>     While installing TIKA, I am getting the following error:
> >>
> >>     Tests run: 3, Failures: 2, Errors: 0, Skipped: 1, Time elapsed:
> >>0.209 sec <<< FAILURE! - in
> >>     org.apache.tika.parser.gdal.TestGDALParser
> >>     testParseBasicInfo(org.apache.tika.parser.gdal.TestGDALParser)
> >>Time elapsed: 0.118 sec  <<<
> >>     FAILURE!
> >>     java.lang.AssertionError: null
> >>         at org.junit.Assert.fail(Assert.java:86)
> >>         at org.junit.Assert.assertTrue(Assert.java:41)
> >>         at org.junit.Assert.assertNotNull(Assert.java:621)
> >>         at org.junit.Assert.assertNotNull(Assert.java:631)
> >>      *   at
> >>org.apache.tika.parser.gdal.TestGDALParser.testParseBasicInfo(TestGDALPar
> >>ser.java:70)
> >>     *
> >>     testParseMetadata(org.apache.tika.parser.gdal.TestGDALParser)  Time
> >>elapsed: 0.062 sec  <<< FAILURE!
> >>     java.lang.AssertionError: null
> >>         at org.junit.Assert.fail(Assert.java:86)
> >>         at org.junit.Assert.assertTrue(Assert.java:41)
> >>         at org.junit.Assert.assertNotNull(Assert.java:621)
> >>         at org.junit.Assert.assertNotNull(Assert.java:631)
> >>     *    at
> >>org.apache.tika.parser.gdal.TestGDALParser.testParseMetadata(TestGDALPars
> >>er.java:111)
> >>     *
> >>
> >>     Just to clarify, this error is not the same as
> >>
> >>     testParseFITS(org.apache.tika.parser.gdal.TestGDALParser)  Time
> >>elapsed: 0.206 sec  <<< FAILURE!
> >>     java.lang.AssertionError
> >>             at org.junit.Assert.fail(Assert.java:86)
> >>             at org.junit.Assert.assertTrue(Assert.java:41)
> >>             at org.junit.Assert.assertNotNull(Assert.java:621)
> >>             at org.junit.Assert.assertNotNull(Assert.java:631)
> >>       *      at
> >>org.apache.tika.parser.gdal.TestGDALParser.testParseFITS(TestGDALParser.j
> >>ava:153)
> >>     *
> >>     which was rectified by tpalsulich in Revision 1647742. Any
> >>guidance/help would be appreciated.
> >>
> >>     Thanks,
> >>     Anvesha
> >>     --
> >>     Graduate Student (MS in Computer Science)
> >>     University of Southern California
> >>     /Phone: (+1) 213-308-9002 <tel:%28%2B1%29%20213-308-9002>/
> >>
> >
>
>