Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by


Dear Expyriment's expert,

I work on a project where I'll need to use a touchscreen.
I found that the example that you've got : doesn't work on my computer and laptop.
I've got this error:

ImportError: cannot import name defaults

Do I get this error because it was written with an older version of expyriment ?
Do you have another example ?


  • Can you give me the full error message?

    My suspicion is that you have a file called in the same directory, leading to overwriting the internal test package from future (which is a new dependency of Expyriment 0.9.0).

  • My mistake (I had a, I think we can delete this discussion.

  • Glad to hear it is resolved. No need to delete the discussion though. Might be helpful for others in the future.


  • Ok, I think we can continue with this discussion since I've got a new error with this script.
    I get this message:

    File "", line 77, in <module>
      File "...expyriment/io/", line 170, in show
      File "...expyriment/io/", line 156, in create
        raise RuntimeError("No button field defined!")
    RuntimeError: No button field defined!

    Thank you in advance for your help

  • This is indeed a bug in Expyriment 0.9. It has something to do with newly introduced Python3 compatibility. I have fixed it and the issue will be therefore solved with the next Expyriment release.

    We will come back to you very soon for a temporary solution, which you can apply in the mean time.

  • Dear Arnaud,

    you could use the current development version of Expyriment (which has the bug already fixed):

    • Download the source archive
    • Unzip the source archive
    • In the command line navigate into the unzipped directory and call:
      python install
Sign In or Register to comment.