# Cedrus Button Box - "no attribute" error

**URL:** <https://discourse.psychopy.org/t/cedrus-button-box-no-attribute-error/2490>\
**Category:** Builder\
**Created:** [May 22, 2017, 3:35pm UTC](https://discourse.psychopy.org/t/cedrus-button-box-no-attribute-error/2490 "2017-05-22T15:35:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mattprice](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@Mattprice](https://discourse.psychopy.org/u/Mattprice)\
**Post date:** [May 22, 2017, 3:35pm UTC](https://discourse.psychopy.org/t/cedrus-button-box-no-attribute-error/2490/1 "2017-05-22T15:35:22Z")

</div>

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](http://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

---

<div class="post-metadata">

**Author:** ![amc2dh](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@amc2dh](https://discourse.psychopy.org/u/amc2dh)\
**Post date:** [July 10, 2017, 6:19pm UTC](https://discourse.psychopy.org/t/cedrus-button-box-no-attribute-error/2490/2 "2017-07-10T18:19:38Z")

</div>

@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!

---

<div class="post-metadata">

**Author:** ![wchapman](https://avatars.discourse-cdn.com/v4/letter/w/e5b9ba/32.png) [@wchapman](https://discourse.psychopy.org/u/wchapman)\
**Post date:** [August 4, 2017, 3:51am UTC](https://discourse.psychopy.org/t/cedrus-button-box-no-attribute-error/2490/3 "2017-08-04T03:51:05Z")

</div>

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 😉

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](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/2X/4/40664310c53cea51582424734c75cbb2a22542ae.py) (14.1 KB)

---

<div class="post-metadata">

**Author:** ![casillas.joseph](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/casillas.joseph/32/36614_2.png) [@casillas.joseph](https://discourse.psychopy.org/u/casillas.joseph)\
**Post date:** [August 23, 2017, 4:31pm UTC](https://discourse.psychopy.org/t/cedrus-button-box-no-attribute-error/2490/4 "2017-08-23T16:31:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![wchapman](https://avatars.discourse-cdn.com/v4/letter/w/e5b9ba/32.png) [@wchapman](https://discourse.psychopy.org/u/wchapman)\
**Post date:** [August 23, 2017, 5:02pm UTC](https://discourse.psychopy.org/t/cedrus-button-box-no-attribute-error/2490/5 "2017-08-23T17:02:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![casillas.joseph](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/casillas.joseph/32/36614_2.png) [@casillas.joseph](https://discourse.psychopy.org/u/casillas.joseph)\
**Post date:** [August 23, 2017, 5:16pm UTC](https://discourse.psychopy.org/t/cedrus-button-box-no-attribute-error/2490/6 "2017-08-23T17:16:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Cat](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@Cat](https://discourse.psychopy.org/u/Cat)\
**Post date:** [August 25, 2017, 5:05am UTC](https://discourse.psychopy.org/t/cedrus-button-box-no-attribute-error/2490/7 "2017-08-25T05:05:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Phil](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@Phil](https://discourse.psychopy.org/u/Phil)\
**Post date:** [September 7, 2017, 3:38pm UTC](https://discourse.psychopy.org/t/cedrus-button-box-no-attribute-error/2490/8 "2017-09-07T15:38:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lisajhansen](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@lisajhansen](https://discourse.psychopy.org/u/lisajhansen)\
**Post date:** [February 7, 2019, 11:46pm UTC](https://discourse.psychopy.org/t/cedrus-button-box-no-attribute-error/2490/9 "2019-02-07T23:46:33Z")

</div>

I am also trying to install a response box, once this modified version is installed (on a Mac), should it simply be plug and play? or is there code also required? Thanks
