Help using 3rd party libs : pyliblo (Cython, Liblo)

Hi,

I want to use PyLiblo with a PsychoPy Builder script.
PyLiblo has dependencies of Cython and Liblo.

I managed to get it working on a MAC but but am less confident on Windows.
In particular, its Windows 8.1 Enterprise x64 but PsychoPy is 32 bit so should I install 32 or 64 bit versions of Cython & Liblo?

Also, I used PIP to install Cython and BREW to install liblo on the MAC but am unsure of the best way to install them on windows for use with Builder.

Any pointers would be MOST welcome!

Many thanks,
John

Hi,

You should work with the 32 bit versions of the packages. I believe PsychoPy standalone includes Cython, as I was able to import it.

PIP will work on windows too, through cmd.exe:
python pip install cython
This will try to install cython from PyPi
You could also try this in the PsychoPy shell:
import pip
pip.main([‘install’, ‘cython’])

Liblo suggests doing it in two stages via the cmd shell, details of which (and other install methods) are here

If you have multiple python installations, then you’ll have to make sure the default python interpreter is the one in the PsychoPy distribution, e.g. \PsychoPy2\python.exe

Make sure everything is “Run as Administrator” or windows won’t behave nicely!

1 Like

Thanks for the useful advice, especially about using pip with PsychoPy

I managed to install Cython ok but in the end I gave up trying to compile liblo to get a dll and switched to using pyOSC.

All working fine now from within PsychoPy Builder and successfully sending OSC marker events into the Muse data stream.

thanks