Fwd: [psychopy-users] Re: Error loading an experiment

25 views
Skip to first unread message

Jeremy Gray

unread,
Jan 28, 2016, 11:22:21 AM1/28/16
to psycho...@googlegroups.com
[moving to dev]

Jon,

Do you have a timeline for the next bugfix release? This 'term' issue seems worth sorting out.

The commit history is not straightforward for the flow.py file, but its all there in older versions of builder.py. There are two lines of code in the entire codebase that contain 'term', and they are both in the flow part of the builder, authored by you on Nov 27, 2009. So it seems like tried and true code. 

So my guess is that the loop terminator in the .psyexp file is not being saved correctly for some reason (but only in some infrequent circumstances).

I can easily delay the start of style refactoring to prioritize this fix, if you like.

--Jeremy

---------- Forwarded message ----------
From: Anneke Haddad <anneke...@gmail.com>
Date: Thu, Jan 28, 2016 at 10:55 AM
Subject: [psychopy-users] Re: Error loading an experiment
To: psychopy-users <psychop...@googlegroups.com>



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


On Saturday, 23 January 2016 20:30:25 UTC, Lisa Ma wrote:
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

--
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.

Jeremy Gray

unread,
Jan 28, 2016, 11:35:34 AM1/28/16
to psycho...@googlegroups.com
Hmmm, probably something to do with the 'nan' failure earlier, I missed that on my first read. 

...

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

--Jeremy

Jon Peirce

unread,
Jan 28, 2016, 3:09:28 PM1/28/16
to psycho...@googlegroups.com
OK, sure. I don't know off the top of my head why this would be an issue. I think we need to get hold of one of the files. To see why it isn't working. Weird that two people have slightly different but related errors together.
Jon
You received this message because you are subscribed to the Google Groups "psychopy-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-dev...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

-- 
Jon Peirce
http://www.peirce.org.uk

Jon Peirce

unread,
Jan 28, 2016, 3:10:52 PM1/28/16
to psycho...@googlegroups.com
And the other one had an issue with missing ISI (maybe a static component that had been removed but had something pointing to it)
You received this message because you are subscribed to the Google Groups "psychopy-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-dev...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jeremy Gray

unread,
Jan 28, 2016, 4:12:52 PM1/28/16
to psycho...@googlegroups.com
I think the ITI one makes sense, and is different.

I'm wondering if the new-ish xml handling is having an intermittent issue somehow (was it a new xml package or something?)

--Jeremy
Reply all
Reply to author
Forward
0 new messages