Skip to content

Version Problem #2

@hetSein

Description

@hetSein

Hi,

There seems to be a challenge on the version. I'm running
RASPBIAN STRETCH WITH DESKTOP - Version: April 2018 - Release date:2018-04-18 - Kernel version:4.14

And python version: 2.7.13

Got the latest version of Sunfounder Kit V3.0 by Github

When running one of the Python scripts I run in errors most likely related to Python version.
In example the first script:

%Run 01_blinkLed.py
File "/home/pi/SunFounder_Super_Kit_V3.0_for_Raspberry_Pi/Python/01_blinkLed.py", line 20
print 'Program is running...'
^
SyntaxError: Missing parentheses in call to 'print'

Googling on this error tells that it is a version problem and all print commands have to use '(' and ')'

Fixing this will give the next error:

NameError: name 'raw_input' is not defined

This has to be replaced by 'input' instead of raw_input, also a version related error.

IMHO all the scripts need to be updated, but maybe I'm missing on something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions