MarcosRech / python-tesseract

Automatically exported from code.google.com/p/python-tesseract
0 stars 0 forks source link

Unable to Run without Crashing from Spyder/Winpython #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Install winpython, tesseract, opencv, and pyhon-tesseract
2.Launch Spyder
3.Execute examples 1,2, or 3. 

What is the expected output? What do you see instead?

crashes at "result = tesseract.ProcessPagesBuffer(mBuffer,len(mBuffer),api)"
or
"tesseract.SetCvImage(image,api)"

What version of the product are you using? On what operating system?
Windows 7 64bit
python-tesseract_0.8-1.7.win32-py2.7.exe
tesseract-ocr-3.02.02

Spyder 2.2.0 internal shell on Python 2.7.5 32bits [Windows]
in both interpreters 
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on 
win32 
and
IPython 0.13.2

Please provide any additional information below.
I have tried as many combinations of settings as I could think of to avoid the 
suggested crash without setting "compatible to windows 7" and unbuffered "-u" 
flag.

I have set for python.exe and pythonw.exe in 
"C:\WinPython-32bit-2.7.5.0\python-2.7.5" compatible to windows 7 and XP 
Service Pack 3, also for Spyder.exe

I have edited to python.bat include "-u". I have tried the same for spyder.bat 
but spyder will hang on start.

I have added an environmental variable PYTHONUNBUFFERED

I have tried unbuffered calls suggested at 
http://stackoverflow.com/questions/881696/unbuffered-stdout-in-python-as-in-pyth
on-u-from-within-the-program

In terms of developing an app, I desperately need a solution that I can use 
from the interpreter. Has anyone got this running?

Original issue reported on code.google.com by rexdougl...@gmail.com on 6 Jun 2013 at 8:46

GoogleCodeExporter commented 8 years ago
I've opened this question on stack exchange as well 
http://stackoverflow.com/questions/16968310/unable-to-run-python-tesseract-witho
ut-crashing-from-spyder-winpython

Original comment by rexdougl...@gmail.com on 6 Jun 2013 at 8:33

GoogleCodeExporter commented 8 years ago
Solved.

The combination that worked was setting both Spyder to run in Windows XP 
Service Pack 3 and also Python.exe to run as Windows XP Service Pack 3.

Original comment by rexdougl...@gmail.com on 6 Jun 2013 at 9:15

GoogleCodeExporter commented 8 years ago

Original comment by FreeT...@gmail.com on 13 Jan 2014 at 7:46