Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: 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: References: From: Ian Kelly Date: Sun, 20 Sep 2015 09:43:19 -0600 Subject: Re: .bat file trouble. To: Python 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Fri, Sep 18, 2015 at 7:45 AM, Christian Gollwitzer 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.