X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=mA6TEwJVpH/2Vw29 Y1pzrU4U6eOtDFrbiVnbZtV3V8J64pZWLkjkZg+5tVb6Lh//3/XAv3kC0lom4ZpB Tf6W6mJVHZZ2/v0l3g2RjOsKzUmrJ2HsLhGz8sK9UWihxruJAuyZMRYv38LG7FVd cLuKFM7l9CcgUeefm7P9Wi5yUPY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=6YGhqC7suquCAKfQ8p/qSH XXoXI=; b=W/7rbfCNcVxmEQq8V2kEjKCFQ8rmC2IWh5ylJ9bs4IQ70pd2OyL8eo 79Bg1c3jYVyk8MALUq2eF/Qs5+hHl9kXKo/3A45Uptdp6DM/VQZ6E5TX6OIAgRsI JtX913w53CwdHj47/ZBacKW5ckwzdJf+6D1rzlQt81f2E4ANZPgWs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-ig0-f171.google.com X-Received: by 10.50.80.14 with SMTP id n14mr12318362igx.30.1444106640742; Mon, 05 Oct 2015 21:44:00 -0700 (PDT) Subject: Re: AW: AW: Tesseract 3.04 - Cygwin64 - Windows 8.1 - Can't open makebox To: "Schmitz, Marco" , "cygwin AT cygwin DOT com" References: <560010D0 DOT 4010903 AT gmail DOT com> <56017E9C DOT 8060501 AT gmail DOT com> From: Marco Atzeri Message-ID: <56135185.6060403@gmail.com> Date: Tue, 6 Oct 2015 06:43:49 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 05/10/2015 11:09, Schmitz, Marco wrote: > Hello Marco, > > here come the deserved 2 attachments. > > Without setting the Windows environment variable TESSDATA_PREFIX to C:\DEV\cygwin64\usr\share\tessdata I get: > > $ tesseract --list-langs > Error opening data file C:\DEV\tesseract\Tesseract-OCR\tessdata/eng.traineddata > Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory. > Failed loading language 'eng' > Tesseract couldn't load any languages! > Could not initialize tesseract. > > This I put into cygcheck-without-windows-environment-variable-set.out. > > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > Then I set TESSDATA_PREFIX to C:\DEV\cygwin64\usr\share\tessdata and restart cygwin. I get: > > $ tesseract --list-langs > List of available languages (13): > arbeitsunfaehigkeit > deu > deu_frak > eng > fra > ita > ita_old > nld > osd > por > spa > spa_old > vie > > This I put into cygcheck-with-windows-environment-variable-set.out. > > > Gretings, > Marco Schmitz Please note that TESSDATA_PREFIX is present in both case. So in the first case it should be a residual of a previous Tesseract (for windows) installation. $ grep TESS cygcheck-with* cygcheck-without-windows-environment-variable-set.out:TESSDATA_PREFIX = 'C:\DEV\tesseract\Tesseract-OCR\' cygcheck-without-windows-environment-variable-set.out:_TESSDATA_PREFIX = 'C:\DEV\cygwin64\usr\share\tessdata' cygcheck-with-windows-environment-variable-set.out:TESSDATA_PREFIX = 'C:\DEV\cygwin64\usr\share\tessdata' I suggest to look on your environment variables: user or system specific. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple