psychopy no longer working in Mac OS 10.5.8

37 views
Skip to first unread message

susan

unread,
Nov 3, 2010, 5:18:24 AM11/3/10
to psychopy-users
Hello

In the last week psychopy has stopped working properly. I'm not sure
if it might be a compatibility problem with the latest patch release
perhaps as it seemed to be fine before then.

Yesterday on the first 3 tries psychopy would not open and said it had
error: version when it tried to load. Then after a few goes it did
open but won't perform some functions; such as it won't let me a
delete a routine from the experimental flow.

This morning I deleted Psychopy, downloaded the .dmg file again and
reinstalled in the hope that this might fix the problem. I'm now
working with v1.62.01 again but still have the same problems as
before. I've put some of the error messages below.

Does anyone have any idea what might be going on? I'd be grateful for
any tips - I love psychopy and am keen to get it working again!

Thank you! Susan

This is the message in the coder when I've tried to delete a routine:
Welcome to PsychoPy2!
v1.62.01
Traceback (most recent call last):
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.5/
psychopy/app/builder/builder.py", line 271, in onContextSelect
component=self.componentFromID[self._menuComponentID]
KeyError: 537

It also does not load all parts of experiments that have previously
loaded and gives the following message:

Welcome to PsychoPy2!
v1.62.01
Traceback (most recent call last):
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.5/
psychopy/app/builder/builder.py", line 1952, in fileOpen
self.exp.loadFromXML(filename)
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.5/
psychopy/app/builder/experiment.py", line 265, in loadFromXML
self.flow.append(self.routines[elementNode.get('name')])
KeyError: 'instrMain'

Jon Peirce

unread,
Nov 3, 2010, 5:44:05 AM11/3/10
to psychop...@googlegroups.com
Hi Susan,

I don't think this is to do with the latest update. I think you've uncovered an existing bug in the way routines are deleted - namely that some remnant of the deleted routine remains. Probably the reason that the app was then crashing was that it was trying to import this broken experiment.

Could you send the .psyexp file to me (offlist) to fix and to help me work out where the deletion code is failing?

thanks,
Jon

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.

Jon Peirce

unread,
Nov 3, 2010, 6:21:07 AM11/3/10
to PsychoPy-users
OK, I think the problem was that when you deleted a routine from the top panel PsychoPy failed to remove it from the flow panel. So then on reload the flow panel was searching for info about this routine that didn't exist.

I'll fix that and also add something that does a little more error-checking when the app starts up (so that a corrupted file gives an informative error rather than crashing the app). In the meantime, try to remove routines from the flow before deleting them.

cheers,
Jon

Hi Jon

Thanks for helping me with this!

I've attached both the .psyexp files that I've been having problems with. In the first one I've done lots of deleting and creating new routines and the second file was based on the demo originally, then I added a new image to appear at one point in the routine, and also did lots of deleting etc. 

What you've said makes sense as both files worked fine whilst I had them open and I've only had problems since I've closed and re-opened them on a different day.

Best wishes,
Susan
Reply all
Reply to author
Forward
0 new messages