.bat file trouble.

Ian Kelly ian.g.kelly at gmail.com
Sun Sep 20 17:43:19 CEST 2015


On Fri, Sep 18, 2015 at 7:45 AM, Christian Gollwitzer <auriocus at 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.


More information about the Python-list mailing list