# Iohub and tobii communication in Psychopy in OSX

**URL:** <https://discourse.psychopy.org/t/iohub-and-tobii-communication-in-psychopy-in-osx/1210>\
**Category:** Coding\
**Created:** [October 3, 2016, 11:38pm UTC](https://discourse.psychopy.org/t/iohub-and-tobii-communication-in-psychopy-in-osx/1210 "2016-10-03T23:38:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cnsla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/cnsla/32/6292_2.png) [@cnsla](https://discourse.psychopy.org/u/cnsla)\
**Post date:** [October 3, 2016, 11:38pm UTC](https://discourse.psychopy.org/t/iohub-and-tobii-communication-in-psychopy-in-osx/1210/1 "2016-10-03T23:38:33Z")

</div>

Dear Jon, Sol and all…

I did little homework, and Tobii SDK is built in OS X 10.6 with python 2.7 installed with package in [www.python.org](http://www.python.org).  
Python modules of Tobii SDK (for OS X) consists in “\_tetiopy27.so”, and “libtetio.dylib”.

when I used otools command , I found the dylib and so referencing

> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python

I think the OS level crash when I try to open the selectTracker demo, (even though the pure python demo provided by Tobii works well) may due to this python referencing.  
Maybe there are some workarounds (like install psychopy with /opt/~~~ directory), but I am still working with it.

Any good idea?  
Is there any way to change Tobii dylib referencing address to relative one? If it is possible, I will contact with Tobii : )

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [October 6, 2016, 11:50am UTC](https://discourse.psychopy.org/t/iohub-and-tobii-communication-in-psychopy-in-osx/1210/2 "2016-10-06T11:50:01Z")

</div>

PsychoPy standalone is built on 10.10 with python 2.7 from the same source. The one thing I can imagine though is that we’re now using only the 64bit python. If they’ve compiled their lib only for 32bit that would explain the issue.

To test:

- type `file /the/full/path/whereYouFind/libtetio.dylib` and the same (possibly) for `_tetiopy27.so`. That should tell you if it’s a 32bit or 64bit file (or both)
- psychopy standalone was released as 32bit option until 1.81 (maybe 1.82 I forget) so if tobii worked with that standalone it might be the problem

What is the full error message that makes you think the lib isn’t being found?

---

<div class="post-metadata">

**Author:** ![cnsla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/cnsla/32/6292_2.png) [@cnsla](https://discourse.psychopy.org/u/cnsla)\
**Post date:** [January 20, 2017, 8:12am UTC](https://discourse.psychopy.org/t/iohub-and-tobii-communication-in-psychopy-in-osx/1210/3 "2017-01-20T08:12:07Z")

</div>

> [@jon](#):
>
> file

They are both 64bit…

/Users/ERI/Downloads/tobii-analytics-sdk-3.1.0-osx-x86\_64/python27/modules/\_tetiopy27.so: Mach-O 64-bit dynamically linked shared library x86\_64  
Melchior:modules ERI$ file /Users/ERI/Downloads/tobii-analytics-sdk-3.1.0-osx-x86\_64/python27/modules/libtetio.dylib  
/Users/ERI/Downloads/tobii-analytics-sdk-3.1.0-osx-x86\_64/python27/modules/libtetio.dylib: Mach-O 64-bit dynamically linked shared library x86\_64
