Skip to content

Bug in user input: slideshow example. #1

Open

Description

@benhowell

Hi esdalmaijer,
Although I could only find the "slideshow" example here: http://www.pygaze.org/resources/examples/slideshow.zip

I thought this is probably the best place to report the following bug

constants.py
Line 14: LOGFILENAME = input("Participant name: ")

doesn't work on python 2.6 / 7 (at least, it doesn't do what you intend... simple explanation here: http://cis.poly.edu/cs1114/pyLecturettes/raw_input-input.html

Perhaps the easiest work around here is to replace that line with something like the following (untested!)...

import sys
if sys.version_info < (3, 0):
LOGFILENAME = raw_input("Participant name: ")
else:
LOGFILENAME = input("Participant name: ")

Cheers,
Ben.

Activity

  1. esdalmaijer commented on Apr 24, 2014

    @esdalmaijer
    Owner

    Hi Ben,

    Thanks a lot for the input! (pun not intended) To be honest, I was expecting users to supply string values (e.g. "subjectname"), but using the raw_input version would actually make more sense. Will implement this!

    P.S.: Not sure where the example experiment script went; I'll upload that to the repo as well.

    Cheers,
    Edwin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions