psychopy.org | Reference | Downloads | Github

Cedrus Button Box - "no attribute" error


#1

I am trying to get a simple GO NO-GO task to work using a Cedrus RB-740 button box. However, I can’t seem to get the button box to work - I get the following error message when I attempt to run the experiment:

Traceback (most recent call last):
File “D:\Google Drive\Startle\Tasks\GoNoGo\GNG PsycoPy\GNG 17.5.20-Test.py”, line 375, in
if ResponseBox.status == STARTED and t >= frameRemains:
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\pyxid\pyxid_impl.py”, line 433, in getattr
return getattr(self._impl, attrname)
AttributeError: ‘ResponseDevice’ object has no attribute ‘status’

I have read several threads on getting these button boxes to work, but none of the solutions I’ve come across have worked. Any advice is greatly appreciated. I’m fairly new to Psychopy - but am motivated to learn!

OS Win 10
PsychoPy version (e.g. 1.84.x): 1.85.1
Standard Standalone? (y/n) If not then what?: y


#2

@Mattprice Were you able to solve this problem? I am getting the same error message (AttributeError: ‘ResponseDevice’ object has no attribute ‘status’) but haven’t been able to find a solution. Thanks!


#3

For anyone stumbling upon this later:

I had the same issue and was able to resolve it by modifying the pyxid definition to include a status attribute. Seems like the development team probably had a pre-release of pyxid :wink:

Drop this modified version into your site-packages (C:\Program Files (x86)\PsychoPy2\lib\site-packages\pyxid\pyxid_impl.py in the original post)

pyxid_impl.py (14.1 KB)


Cedrus response pad implementation
#4

Any idea where this files lives on Mac? I have the same error and would like to see if this workaround can resolve it. Thanks.


#5

Yup! On a Mac, assuming you used the standard bundled install image lives at:

/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/pyxid

To get there, you can open finder, press Cmd+Shift+G, and paste this path. If you want to get there through the graphical interface, go to /Applications, right click on PsychPy2 and select “Show contents”, then follow the rest of the path.

edit: I originally did this fix on a mac, so you should be good to go.


#6

It worked! Thank you for your help. This fix took me over two months!


#7

Thank you! This also did the trick for me. Can’t thank you enough!!


#8

Replacing this file worked for me too. I’m using 1.85.1