Demo programs doesn't work

Hi,

I just finished installing psychopy and was trying to run demo’s.

TimeByFrames.py works fine, but I get an error when I tried to run experimentHandler.py and TrialHandler.py

The following error message is what I got:

runfile('C:/Users/user/Miniconda3/envs/py27/Lib/site-packages/psychopy/demos/coder/experiment control/TrialHandler.py', wdir='C:/Users/user/Miniconda3/envs/py27/Lib/site-packages/psychopy/demos/coder/experiment control')
Traceback (most recent call last):

  File "<ipython-input-5-3e6daf6a5dfb>", line 1, in <module>
    runfile('C:/Users/user/Miniconda3/envs/py27/Lib/site-packages/psychopy/demos/coder/experiment control/TrialHandler.py', wdir='C:/Users/user/Miniconda3/envs/py27/Lib/site-packages/psychopy/demos/coder/experiment control')

  File "C:\Users\user\Miniconda3\envs\py27\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
    execfile(filename, namespace)

  File "C:\Users\user\Miniconda3\envs\py27\lib\site-packages\spyder\utils\site\sitecustomize.py", line 87, in execfile
    exec(compile(scripttext, filename, 'exec'), glob, loc)

  File "C:/Users/user/Miniconda3/envs/py27/Lib/site-packages/psychopy/demos/coder/experiment control/TrialHandler.py", line 22, in <module>
    for thisTrial in trials: #handler can act like a for loop

  File "C:\Users\user\Miniconda3\envs\py27\lib\site-packages\psychopy\data.py", line 935, in next
    self.data.add('ran',1)

  File "C:\Users\user\Miniconda3\envs\py27\lib\site-packages\psychopy\data.py", line 3007, in add
    self[thisType][position[0],position[1]]=value

  File "C:\Users\user\Miniconda3\envs\py27\lib\site-packages\numpy\ma\core.py", line 3399, in __setitem__
    _data[indx] = dval

IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices

It seems to be related to indexing, but I couldn’t figure out how to solve this.

Plz anyone give me some advice.