Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62983

Re: About some problem

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'from:addr:yahoo.co.uk': 0.04; 'syntax': 0.04; 'beginner': 0.05; '2to3': 0.09; 'kumar': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'jan': 0.12; '2.7': 0.14; 'language.': 0.14; 'question.': 0.14; 'implies': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'syntaxerror:': 0.16; 'language': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'written': 0.21; 'import': 0.22; 'print': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; 'error': 0.23; '2.x': 0.24; 'subject:problem': 0.24; 'first,': 0.26; 'skip:" 40': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'statement': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'getting': 0.31; '"",': 0.31; '3.x': 0.31; 'subject:About': 0.31; 'subject:some': 0.31; 'file': 0.32; 'compatible': 0.32; 'text': 0.33; 'url:python': 0.33; '(most': 0.33; "can't": 0.35; 'version': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'should': 0.36; 'wrong': 0.37; 'so,': 0.37; 'clear': 0.37; 'to:addr:python-list': 0.38; 'that,': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'url:mail': 0.40; 'how': 0.40; 'making': 0.63; 'our': 0.64; 'became': 0.64; 'invalid': 0.68; 'dialect': 0.84; 'joel': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: About some problem
Date Thu, 02 Jan 2014 17:01:08 +0000
References <CAN5p5FV7=RKK0cmE_=n+te07CEt678OX1Wwj+96T9eAuDujpfA@mail.gmail.com> <CAPM-O+wAZFmde2bVhqqs4==a-jy3AXfv3f9JNQwcNmTJHCak+Q@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-78-147-21-141.as13285.net
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To <CAPM-O+wAZFmde2bVhqqs4==a-jy3AXfv3f9JNQwcNmTJHCak+Q@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4792.1388682069.18130.python-list@python.org> (permalink)
Lines 51
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388682069 news.xs4all.nl 2870 [2001:888:2000:d::a6]:53348
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62983

Show key headers only | View raw


On 02/01/2014 16:53, Joel Goldstick wrote:
>
>
>
> On Thu, Jan 2, 2014 at 11:31 AM, raj kumar <rajkumar84730@gmail.com
> <mailto:rajkumar84730@gmail.com>> wrote:
>
>     Hello, I am beginner to python and i am writing following code
>
>     from pytesser import *
>
>     and i am getting an error as follow
>
>     Traceback (most recent call last):
>        File "<stdin>", line 1, in <module>
>        File "C:\Python33\lib\site-packages\pytesser.py", line 61
>          print text
>                   ^
>     SyntaxError: invalid syntax
>
>
>     How to resolve it ? Give me all steps to resolve it.

"Please" goes a long way.

>
>     --
>     https://mail.python.org/mailman/listinfo/python-list
>
> First, you should give version and os when you ask a question.  However
> it is clear you are using python 3.3 and Windows.
>
> Your print statement implies that pytesser.py is written in the 2.x
> dialect of python.  In version 3.x print became a function and requires
> parenthesis around the arguments.
>
> So, you need to find a version of pytesser.py that is compatible with
> python 3, or if you can't do that, and you need pytesser.py, you have to
> install python 2.7
>

What's wrong with making a compatible version using this command?

2to3 -w pytesser.py

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: About some problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-02 17:01 +0000

csiph-web