Error loading an experiment

38 views
Skip to first unread message

Lisa Ma

unread,
Jan 23, 2016, 3:30:25 PM1/23/16
to psychopy-users
Hello!

I am using psychopy v1.82.01 on macbook with OSX 10.10.4. I tried to load an experiment I built in the builder mode today, but failed to do so and get the following message:


Failed to load /Users/psyra/Documents/CPT1.psyexp. Please send the following to the PsychoPy user list
Traceback (most recent call last):
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/builder.py", line 4261, in fileOpen
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/experiment.py", line 492, in loadFromXML
KeyError: 'ISI_2'
Traceback (most recent call last):
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/coder/coder.py", line 1809, in fileOpen
    self.app.newBuilderFrame(fileName=newPath)
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/_psychopyApp.py", line 334, in newBuilderFrame
    fileName=fileName, app=self)
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/builder.py", line 3956, in __init__
    self.fileOpen(filename=fileName, closeCurrent=False)
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/builder.py", line 4271, in fileOpen
    self.updateAllViews()#if frozen effect will be visible on thaw
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/builder.py", line 4463, in updateAllViews
    self.flowPanel.draw()
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/builder.py", line 931, in draw
    thisTerm = self.loops[thisLoop]['term']
KeyError: 'term'


I was still able to open that file couple days ago, and I am able to open other experiments now. Could you suggest what I should do to get this experiment running again? Thank you so much!

Best regards,
Lisa

Anneke Haddad

unread,
Jan 28, 2016, 10:55:41 AM1/28/16
to psychopy-users

I'm having the same problem: using v 1.83.03 on a Mac running OS X. I saved and closed the builder experiment, opened a different one, then reopened the original one and got the following error message:

Failed to load /Users/lpzah/Dropbox/Work in progress/2015-16/Elinor Cheason/testBuilderVersion. Please send the following to the PsychoPy user list
Traceback (most recent call last):
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/builder.py", line 4266, in fileOpen
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/experiment.py", line 468, in loadFromXML
  File "<string>", line 1, in <module>
NameError: name 'nan' is not defined
Traceback (most recent call last):
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/builder.py", line 4276, in fileOpen
    self.updateAllViews()#if frozen effect will be visible on thaw
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/builder.py", line 4468, in updateAllViews
    self.flowPanel.draw()
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/builder.py", line 929, in draw
    thisTerm = self.loops[thisLoop]['term']
KeyError: 'term'

Any help with sorting this one out would be much appreciated.

Many thanks,
Anneke

Jonathan Peirce

unread,
Jan 29, 2016, 7:15:28 AM1/29/16
to psychop...@googlegroups.com
Lisa, Anneke,

For these particular errors I think we'll need your psyexp files. Could you send them (offlist if you prefer). Looks like something has gotten corrupted in the file (different issue in the two files) and needs correcting.

thanks
Jon
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/ae9dc38c-a592-46db-b9ce-73a3652e99f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Jonathan Peirce
University of Nottingham

http://www.peirce.org.uk


This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it. 

Please do not use, copy or disclose the information contained in this
message or in any attachment.  Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham.

This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system, you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation.
Reply all
Reply to author
Forward
0 new messages