Sign in with your CogSci, Facebook, Google, or Twitter account.

Or register to create a new account.

We'll use your information only for signing in to this forum.

Supported by

Expyriment Doesn't Move (_textline.py problem)


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)
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
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!


  • fladdfladd Posts: 96

    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.py file.
    How did you install Expyriment?

    Florian Krause (Developer)

  • KazukiKazuki Posts: 3

    Thank you for your responding.
    I don't use any special fonts.
    I installed Expyriment by using pip command. (pip install expyriment)

    import expyriment

    exp = expyriment.design.Experiment(name="First Experiment")



  • fladdfladd Posts: 96

    Mmh, that is strange. Could you give me the output of:

    import expyriment

    Also, has XQuartz been installed correctly?

    Thanked by 1Kazuki

    Florian Krause (Developer)

  • KazukiKazuki Posts: 3

    Oh... XQuartz has not been installed correctly.
    tutorial.py and other files work well after I installed XQuartz correctly.
    Thank you very much!

  • fladdfladd Posts: 96

    Glad this is solved! Enjoy!

    Florian Krause (Developer)

Sign In or Register to comment.