switchdoclabs / RTC_SDL_DS3231

Raspberry Pi Python Library for the Real Time Clock DS3231
30 stars 29 forks source link

Can't execute test script? #4

Open Nodi-Rubrum opened 4 years ago

Nodi-Rubrum commented 4 years ago

Can't execute the test script?

:~/RTC_SDL_DS3231# python testSDL_DS3231.py File "testSDL_DS3231.py", line 20 print "" ^ SyntaxError: invalid syntax

What version of python did you develop this code on?

thewh1teagle commented 3 years ago

@Nodi-Rubrum That's because you try to run it as it's code for python3 but actually it's written in python2.