I’ve written a PsychoPy experiment that I want lots of people to be able to download and run, preferably on both Mac and PC (I’ve written it on Mac OS). I’ve written it in v1.90.2 and so am instructing participants to download that, and Python 2.7.13, to run it (from https://github.com/psychopy/psychopy/releases/tag/1.90.2 and https://www.python.org/downloads/release/python-2713/ respectively)
What are the standard issues that seem to come up when participants load up PsychoPy experiments for the first time on other computers? I’m trying to make a set of instructions that are as clear as is possible for people…
I gave it to somebody to test yesterday, and when they tried to run it they received the following:
Traceback (most recent call last):
File "/Users/username/Downloads/AP_experiment_02.19/AP_pretest.py", line 3, in <module>
from psychopy import locale_setup, sound, gui, visual, core, data, event, logging
File "/Applications/[PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/sound/__init__.py](http://psychopy2.app/Contents/Resources/lib/python2.7/psychopy/sound/__init__.py?fbclid=IwAR2vZnZscgakzoZtGfxTXGhCGN3-g3sov_ZVq0bPbRnvwfOY7hT3RS9FYHs)", line 79, in <module>
from . import backend_sounddevice as backend
File "/Applications/[PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/sound/backend_sounddevice.py](https://l.facebook.com/l.php?u=http%3A%2F%2FPsychoPy2.app%2FContents%2FResources%2Flib%2Fpython2.7%2Fpsychopy%2Fsound%2Fbackend_sounddevice.py%3Ffbclid%3DIwAR2gBsYW81h5TUDrzelVjTXAnkLpa_O-NhQ28okmmsZPbpzRP-29VOC3tAo&h=AT0D63jcvQVlqSCWXKm4N_goqyForNbwdRcNwrKjaTu0LbnfaQ_moWL_bXXO2cVAnkXhqk9VbgKhzTaipXjSop7lHK6pcw4n9WFsy5NzxY9BWqbH9LGtLNrOlmdpY3Z2FZiJLx15XdPagyH9OUsKEjWB)", line 20, in <module>
import soundfile as sf
File "soundfile/__init__.pyc", line 1, in <module>
File "soundfile/soundfile.pyc", line 270, in <module>
File "/Applications/[PsychoPy2.app/Contents/Resources/lib/python2.7/cffi/api.py](https://l.facebook.com/l.php?u=http%3A%2F%2FPsychoPy2.app%2FContents%2FResources%2Flib%2Fpython2.7%2Fcffi%2Fapi.py%3Ffbclid%3DIwAR0Ydl8sQxpoFmW31G66GNIkrV68aQ1C0sfLYaZgcnSAJwej_xcpb7Z4t3Q&h=AT0D63jcvQVlqSCWXKm4N_goqyForNbwdRcNwrKjaTu0LbnfaQ_moWL_bXXO2cVAnkXhqk9VbgKhzTaipXjSop7lHK6pcw4n9WFsy5NzxY9BWqbH9LGtLNrOlmdpY3Z2FZiJLx15XdPagyH9OUsKEjWB)", line 141, in dlopen
lib, function_cache = _make_ffi_library(self, name, flags)
File "/Applications/[PsychoPy2.app/Contents/Resources/lib/python2.7/cffi/api.py](https://l.facebook.com/l.php?u=http%3A%2F%2FPsychoPy2.app%2FContents%2FResources%2Flib%2Fpython2.7%2Fcffi%2Fapi.py%3Ffbclid%3DIwAR3xGeTKflbYPg4cJpevtPFiob_dcY1UpVOiSHBEGrJDngwY9AHog_kG3EQ&h=AT0D63jcvQVlqSCWXKm4N_goqyForNbwdRcNwrKjaTu0LbnfaQ_moWL_bXXO2cVAnkXhqk9VbgKhzTaipXjSop7lHK6pcw4n9WFsy5NzxY9BWqbH9LGtLNrOlmdpY3Z2FZiJLx15XdPagyH9OUsKEjWB)", line 802, in _make_ffi_library
backendlib = _load_backend_lib(backend, libname, flags)
File "/Applications/[PsychoPy2.app/Contents/Resources/lib/python2.7/cffi/api.py](https://l.facebook.com/l.php?u=http%3A%2F%2FPsychoPy2.app%2FContents%2FResources%2Flib%2Fpython2.7%2Fcffi%2Fapi.py%3Ffbclid%3DIwAR1-I9TfpOBqu6BGIrUBlpb193E6PFBvyNXcCMN_4evGlxgGZQke38zl0XA&h=AT0D63jcvQVlqSCWXKm4N_goqyForNbwdRcNwrKjaTu0LbnfaQ_moWL_bXXO2cVAnkXhqk9VbgKhzTaipXjSop7lHK6pcw4n9WFsy5NzxY9BWqbH9LGtLNrOlmdpY3Z2FZiJLx15XdPagyH9OUsKEjWB)", line 797, in _load_backend_lib
raise OSError(msg)
OSError: cannot load library '/Applications/[PsychoPy2.app/Contents/Resources/lib/python2.7/site-packages.zip/soundfile/_soundfile_data/libsndfile.dylib](https://l.facebook.com/l.php?u=http%3A%2F%2FPsychoPy2.app%2FContents%2FResources%2Flib%2Fpython2.7%2Fsite-packages.zip%2Fsoundfile%2F_soundfile_data%2Flibsndfile.dylib%3Ffbclid%3DIwAR2vZnZscgakzoZtGfxTXGhCGN3-g3sov_ZVq0bPbRnvwfOY7hT3RS9FYHs&h=AT0D63jcvQVlqSCWXKm4N_goqyForNbwdRcNwrKjaTu0LbnfaQ_moWL_bXXO2cVAnkXhqk9VbgKhzTaipXjSop7lHK6pcw4n9WFsy5NzxY9BWqbH9LGtLNrOlmdpY3Z2FZiJLx15XdPagyH9OUsKEjWB)': dlopen(/Applications/[PsychoPy2.app/Contents/Resources/lib/python2.7/site-packages.zip/soundfile/_soundfile_data/libsndfile.dylib](https://l.facebook.com/l.php?u=http%3A%2F%2FPsychoPy2.app%2FContents%2FResources%2Flib%2Fpython2.7%2Fsite-packages.zip%2Fsoundfile%2F_soundfile_data%2Flibsndfile.dylib%3Ffbclid%3DIwAR2BWdJZxiSAlJWPZfOnA1lfanxuc6Wz87Hqe3yKyy8-_TtijmzdbbPnZCs&h=AT0D63jcvQVlqSCWXKm4N_goqyForNbwdRcNwrKjaTu0LbnfaQ_moWL_bXXO2cVAnkXhqk9VbgKhzTaipXjSop7lHK6pcw4n9WFsy5NzxY9BWqbH9LGtLNrOlmdpY3Z2FZiJLx15XdPagyH9OUsKEjWB), 2): no suitable image found. Did find:
/Applications/[PsychoPy2.app/Contents/Resources/lib/python2.7/site-packages.zip/soundfile/_soundfile_data/libsndfile.dylib](https://l.facebook.com/l.php?u=http%3A%2F%2FPsychoPy2.app%2FContents%2FResources%2Flib%2Fpython2.7%2Fsite-packages.zip%2Fsoundfile%2F_soundfile_data%2Flibsndfile.dylib%3Ffbclid%3DIwAR1SlXjE8MAloaGiVwjijnDPMiotWZmkoi0n1zrR9WtweVNu8gw5EA2gWCY&h=AT0D63jcvQVlqSCWXKm4N_goqyForNbwdRcNwrKjaTu0LbnfaQ_moWL_bXXO2cVAnkXhqk9VbgKhzTaipXjSop7lHK6pcw4n9WFsy5NzxY9BWqbH9LGtLNrOlmdpY3Z2FZiJLx15XdPagyH9OUsKEjWB): stat() failed with errno=20. Additionally, ctypes.util.find_library() did not manage to locate a library called '/Applications/[PsychoPy2.app/Contents/Resources/lib/python2.7/site-packages.zip/soundfile/_soundfile_data/libsndfile.dylib](http://psychopy2.app/Contents/Resources/lib/python2.7/site-packages.zip/soundfile/_soundfile_data/libsndfile.dylib?fbclid=IwAR0Ce80QKc4jmS-2Aj6kY-324vGnaUKmEh7BaAVEjfPeRvil6SnCei36gfY)'
What’s going on there?
Also, when he loaded up PsychoPy he received the message “There were many changes in version 1.74.00 that will break compatibility with older versions. Make sure you read the changelog carefully before using this version. Do not upgrade to this version halfway through an experiment”
Given he downloaded PsychoPy v1.90.2 I’m surprised he received this message?
N.B., it’s too late in the day now to update this experiment to PsychoPy 3 (the code is quite intricate by this stage, and given that it now works as I want it to, I’m keen to leave it as it is)