Expyriment Doesn't Move (_textline.py problem)
Hello,
I'm a beginner of expyriment and have a trouble about running python files.
I can not run even a tutorial code(http://docs.expyriment.org/Tutorial.html).
This is my pc spec → macOS 10.12.6, python3.6, expyriment0.9.0
I would appreciate if you could help me.
kazukiMacBook-Pro:desktop kazuki$ python tutorial.py
Expyriment 0.9.0 (Python 3.6.1)
tutorial.py
Traceback (most recent call last):
File "/Users/kazuki/anaconda/lib/python3.6/site-packages/expyriment/stimuli/_textline.py", line 99, in init
with open(self._text_font, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: ''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tutorial.py", line 4, in
expyriment.control.initialize(exp)
File "/Users/kazuki/anaconda/lib/python3.6/site-packages/expyriment/control/_experiment_control.py", line 454, in initialize
position=(0, -5))
File "/Users/kazuki/anaconda/lib/python3.6/site-packages/expyriment/stimuli/_textline.py", line 102, in init
raise IOError("Font '{0}' not found!".format(text_font))
OSError: Font 'None' not found!
Comments
Hi there,
it seems that you are trying to use a font that is not available.
Are you using any special fonts?
Can you send me the content of your
tutorial.pyfile.How did you install Expyriment?
Thank you for your responding.
I don't use any special fonts.
I installed Expyriment by using pip command. (pip install expyriment)
Regards,
import expyriment
exp = expyriment.design.Experiment(name="First Experiment")
expyriment.control.initialize(exp)
expyriment.control.start()
expyriment.control.end()
Mmh, that is strange. Could you give me the output of:
Also, has XQuartz been installed correctly?
Oh... XQuartz has not been installed correctly.
tutorial.py and other files work well after I installed XQuartz correctly.
Thank you very much!
Glad this is solved! Enjoy!