Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #96882
| Path | csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail |
|---|---|
| Return-Path | <ian.g.kelly@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.009 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'anyway.': 0.04; 'subject:file': 0.07; 'editor.': 0.09; 'python': 0.10; '2.7': 0.13; '7:45': 0.16; 'parentheses': 0.16; 'relates': 0.16; 'tabs': 0.16; 'wrote:': 0.16; 'script.': 0.18; '2015': 0.20; 'fix': 0.21; 'sep': 0.22; 'am,': 0.23; 'second': 0.24; 'header:In-Reply-To:1': 0.24; 'script': 0.25; 'install': 0.25; 'supported': 0.27; 'error': 0.27; 'expanding': 0.27; 'fri,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'function': 0.28; 'spaces': 0.29; 'print': 0.30; 'run': 0.33; 'file': 0.34; 'running': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'there': 0.36; 'to:addr:python-list': 0.36; 'christian': 0.38; 'skip:p 20': 0.38; 'means': 0.39; 'to:addr:python.org': 0.40; 'term': 0.60; 'guaranteed': 0.67; 'upgrading': 0.72; 'obvious': 0.76; 'gollwitzer': 0.84; 'to:name:python': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=tV6jbuWOIB2JDAn+Sye2CFFVZ7Odu4BkQeI26ckVrQo=; b=EaumpRho7Mwqu0v3awcYeyoOGkT4P/EHq1x8oUed/I04OWNcoCBarw0FTwZwuas3OI cvWVEjf4xdZzeRxwwiG86Qanoe5yU+e6dNm2WJAmFZQMaHkMaa67224ZLJRjLkf89oWX ueT7fM9M2krlgnsZN2B5fJJBmaYaHUywbvdKlniwi9Wr9xY7HUfirApLjSGM7r4Zzp/m ptWDgJqjlemWCKIUoocI5PpW5jDMkapAlVgpuLvQ55ifHoDGFLrVmhNRgfKh8yuuCq4l Z9/ZSmcmwz/jIZbbwgVvyn+Isjbv0+c+spDWKgGkxyqS79j+FpXn668d/vB8Yt32HRiE JuQw== |
| X-Received | by 10.170.194.22 with SMTP id l22mr12309788yke.63.1442763839246; Sun, 20 Sep 2015 08:43:59 -0700 (PDT) |
| MIME-Version | 1.0 |
| In-Reply-To | <mth4e7$atq$1@dont-email.me> |
| References | <d4e0dfd5-a87e-49a4-9a7c-696aabf527f2@googlegroups.com> <mth4e7$atq$1@dont-email.me> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Sun, 20 Sep 2015 09:43:19 -0600 |
| Subject | Re: .bat file trouble. |
| To | Python <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| 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.41.1442763841.21674.python-list@python.org> (permalink) |
| Lines | 16 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1442763841 news.xs4all.nl 23863 [2001:888:2000:d::a6]:41905 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:96882 |
Show key headers only | View raw
On Fri, Sep 18, 2015 at 7:45 AM, Christian Gollwitzer <auriocus@gmx.de> wrote:
> The first error indicates, that you are running Python 3, and the script was
> made for Python 2. In Python 3, print is a function so you need parentheses
> around that print("Initializing...") - either fix that
> or install Python 2.
>
> The second error "TabError" also relates to it, it means that the file mixes
> tabs and spaces for indentation. Fix it by expanding all tabs to spaces in
> an editor.
Note that even if you fix these, there could be other less obvious
compatibility issues with running this script in Python 3. The safest
and most straightforward way to proceed is to install Python 2 and use
that to run the script. However, in the long term you may want to
consider upgrading the script to Python 3 anyway. Python 2.7 is only
guaranteed to be supported through the year 2020.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
.bat file trouble. bobertini@googlemail.com - 2015-09-18 02:06 -0700
Re: .bat file trouble. Steven D'Aprano <steve@pearwood.info> - 2015-09-18 19:32 +1000
Re: .bat file trouble. Christian Gollwitzer <auriocus@gmx.de> - 2015-09-18 15:45 +0200
Re: .bat file trouble. eryksun <eryksun@gmail.com> - 2015-09-20 09:53 -0500
Re: .bat file trouble. Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-20 09:43 -0600
csiph-web