## 2015/2/12 追記 実行したプログラムのエラー詳細です ##
import expyriment
import PIL
exp = expyriment.design.Experiment(name="test")
expyriment.control.initialize(exp)
mask = expyriment.stimuli.extras.VisualMask(size=(100, 100))
mask.preload()
expyriment.control.start(exp)
mask.present()
exp.clock.wait(2000)
expyriment.control.end()
上記プログラムを実行すると、下記エラーが生じます。
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users/ユーザ名/PycharmProjects/first_test/test0.py
Expyriment 0.7.0 (Revision 7a6b73d; Python 2.7.6)
File: test0.py (91a9a8)
Traceback (most recent call last):
File "/Users/ユーザ名/PycharmProjects/first_test/test0.py", line 9, in <module>
mask = expyriment.stimuli.extras.VisualMask(size=(100, 100))
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/expyriment/stimuli/extras/_visualmask.py", line 61, in __init__
raise ImportError(message)
ImportError: VisualMask can not be initialized.
The Python package 'Python Imaging Library (PIL)' is not installed.
Exception AttributeError: "'VisualMask' object has no attribute '_compression_filename'" in <bound method VisualMask.__del__ of <expyriment.stimuli.extras._visualmask.VisualMask object at 0x2b55b0>> ignored
Process finished with exit code 1