In article <7e5a828c1001281223n738432clcbc91835e2cc2...@mail.gmail.com>, Manisha Pednekar <mani...@gmail.com> wrote:
> 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 > [...] The facts that it is using Python 2 syntax (in Python 3, print is not a statement anymore, rather it's a function) plus that the last release date from the code.google.com project page is from 2007 are both pretty good clues that the package has not been updated to support Python 3. Type installing it with Python 2.6. -- Ned Deily, n...@acm.org _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig