Welcome!

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)

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

  • fladdfladd Posts: 80

    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)
    http://www.expyriment.org

  • 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)
    Regards,


    import expyriment

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

    expyriment.control.start()

    expyriment.control.end()

  • fladdfladd Posts: 80

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

    import expyriment
    expyriment.misc.get_system_info()
    

    Also, has XQuartz been installed correctly?

    Thanked by 1Kazuki

    Florian Krause (Developer)
    http://www.expyriment.org

  • 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: 80

    Glad this is solved! Enjoy!

    Florian Krause (Developer)
    http://www.expyriment.org

Sign In or Register to comment.