Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in user input: slideshow example. #1

Open
benhowell opened this issue Apr 15, 2014 · 1 comment
Open

Bug in user input: slideshow example. #1

benhowell opened this issue Apr 15, 2014 · 1 comment

Comments

@benhowell
Copy link

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.

@esdalmaijer
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants