[Pythonmac-SIG] pytesser test fails on Mac leopard with python 3.1 installed

Manisha Pednekar manimol at gmail.com
Thu Jan 28 21:23:34 CET 2010


Hello,

It's showing import error, not executing "from pytesser import *"
command. First i thought its giving error because it need some
variable values. So i tried to execute the following test commads
given on Assignment One page.

Here is the log:

manisha-macbook:Downloads Manisha$ cd pytesser_v0.0.1
manisha-macbook:pytesser_v0.0.1 Manisha$ python3.1
Python 3.1.1 (r311:74543, Aug 24 2009, 18:44:04)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pytesser import *

Traceback (most recent call last):
File "", line 1, in
File "pytesser.py", line 77
print text
^
SyntaxError: invalid syntax
>>> x=image_file_to_string('phototest.tif')

Traceback (most recent call last):
File "", line 1, in
NameError: name 'image_file_to_string' is not defined
>>> print x

File "", line 1
print x
^
SyntaxError: invalid syntax
>>> pytesser

Traceback (most recent call last):
File "", line 1, in
NameError: name 'pytesser' is not defined
>>> tesseract

Traceback (most recent call last):
File "", line 1, in
NameError: name 'tesseract' is not defined
>>> tesseract.exe

Traceback (most recent call last):
File "", line 1, in
NameError: name 'tesseract' is not defined
>>> pytesser.pyc

Traceback (most recent call last):
File "", line 1, in
NameError: name 'pytesser' is not defined

manisha-macbook:pytesser_v0.0.1 Manisha$ tesseract.exe
-bash: tesseract.exe: command not found
manisha-macbook:pytesser_v0.0.1 Manisha$ pytesser.pyc
-bash: pytesser.pyc: command not found
manisha-macbook:pytesser_v0.0.1 Manisha$ tesseract
-bash: tesseract: command not found
manisha-macbook:pytesser_v0.0.1 Manisha$ pytesser
-bash: pytesser: command not found
manisha-macbook:pytesser_v0.0.1 Manisha$ readme
-bash: readme: command not found

Kind regards
Manisha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20100128/e0728d32/attachment.htm>


More information about the Pythonmac-SIG mailing list