PsychoPy 3 don't read Key variable from xlxx

OS : macOS Sierra
PsychoPy version: 3
**Standard Standalone? y

**What are you trying to achieve?: Use “allowed key” variable

I tried to use python 2.7 and python 3.6, didn’t work.

When I’m running the experiment with the key variable, it quit the experiment and I get the following message:

if not isinstance(key_, basestring):
NameError: name ‘basestring’ is not defined

*The experiment works perfectly when all keys are allowed. And PsychoPy reads other variables from the xlxx file.

Any ideas?

Thank!!

Hi @Elkana_Tamir, to get around that error, you need to add your list of strings to your conditions file, as you would in the keyboard component. E.g.:

['a', 'b', 'c']

This error is easily reproducible, so will look at getting a fix made on GitHub.

It works thanks to those brackets!

Thank you so much @dvbridges