AttributeError: 'module' object has no attribute 'FFI'

117 views
Skip to first unread message

Aaron

unread,
Jan 18, 2018, 6:29:49 AM1/18/18
to expyriment-users
Hi expyriment users,

I was trying to show some video files with expyriment v0.7, without much success. At the end of the video it would strobe, and the next video would start on top of that. Even putting short blankscreen between them didn't help. So I figured I'd upgrade to expyriment v0.9 and go from there. Now I'm getting this error.. the experiment doesn't run. It doesn't matter if the video is mpg or mp4. Any ideas?

Expyriment 0.9.0 (Python 2.7.9)
vid01.py
Traceback (most recent call last):
  File "vid01.py", line 120, in <module>
    vid01 = xpy.stimuli.Video("vid01.mpg")
  File "/usr/local/lib/python2.7/dist-packages/expyriment/stimuli/_video.py", line 142, in __init__
    import sounddevice as _sounddevice
  File "/usr/local/lib/python2.7/dist-packages/sounddevice.py", line 58, in <module>
    from _sounddevice import ffi as _ffi
  File "/usr/local/lib/python2.7/dist-packages/_sounddevice.py", line 4, in <module>
    ffi = _cffi_backend.FFI('_sounddevice',
AttributeError: 'module' object has no attribute 'FFI'

Florian Krause

unread,
Jan 18, 2018, 6:58:15 AM1/18/18
to expyrime...@googlegroups.com
Hi Aaron,

mmh, that looks strange. What exact OS do you have? What version of the following packages have you installed:
    libffi-dev
    cffi
Can you also give me the output of:

    expyriment.misc.get_system_info


Best,
Florian



--
You received this message because you are subscribed to the Google Groups "expyriment-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to expyriment-users+unsubscribe@googlegroups.com.
To post to this group, send email to expyriment-users@googlegroups.com.
Visit this group at https://groups.google.com/group/expyriment-users.
For more options, visit https://groups.google.com/d/optout.



--
www.fladd.de - Homepage of Florian Krause

Aaron

unread,
Jan 18, 2018, 10:11:24 AM1/18/18
to expyriment-users
Hi Florian,

Thanks for the reply. Here's the info you requested

OS: Debian 8.10
libffi-dev/oldstable,oldstable,now 3.1-2+deb8u1 amd64
python-cffi/oldstable,now 0.8.6-1 amd64

Output from expyriment.misc.get_system_info:
Expyriment 0.9.0 (Python 2.7.9)
Main file: vid01.py (f0e069)
vid01.py

Thanks,
Aaron
To unsubscribe from this group and stop receiving emails from it, send an email to expyriment-use...@googlegroups.com.
To post to this group, send email to expyrime...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages