Hi all,
I am having trouble running Psychopy experiments via the command line in a MacBook Air, iOS version 10.14.6. I followed the install with Anaconda instructions on the Psychopy website, created a virtual env with python 3.5 etc. But when attempting to install the packages, I get the following error
$ conda install numpy scipy matplotlib pandas pyopengl pillow lxml openpyxl xlrd configobj pyyaml gevent greenlet msgpack-python psutil pytables requests[security] cffi seaborn wxpython cython pyzmq pyserial
Collecting package metadata (repodata.json): done
Solving environment: failed
Initial quick solve with frozen env failed. Unfreezing env and trying again.
Solving environment: failed
Full traceback is here: psypy3.5_errors.py (18.7 KB)
When I create the virtual env with my current version of python (3.7), I dont get the same install errors, but instead, come across the below when I try to run the .py script
$ python practice-test.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "/Users/talithaford/Dropbox/Work/Deakin/Projects/NeuroSPA/TMF/6. Testing/NeuroSPA_RME_task/RME_practice-test.py", line 34, in <module>
dlg = gui.DlgFromDict(dictionary=expInfo, sortKeys=False, title=expName)
TypeError: __init__() got an unexpected keyword argument 'sortKeys'
4.9181 WARNING Import Error: No module named 'psychtoolbox'. Using event module for keyboard component.
(psypy3) 139-132-5-195:~ talithaford$ pip install psychtoolbox
Collecting psychtoolbox
Using cached https://files.pythonhosted.org/packages/25/1b/115351610693752d41f9fe51c7c69429551406042b09022e9ac179eef35f/psychtoolbox-3.0.15b2.tar.gz
Building wheels for collected packages: psychtoolbox
Building wheel for psychtoolbox (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/talithaford/anaconda3/envs/psypy3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/gf/rfjg_hfd6750xc2rdyx3kvkm0000gn/T/pip-install-zi39hm6a/psychtoolbox/setup.py'"'"'; __file__='"'"'/private/var/folders/gf/rfjg_hfd6750xc2rdyx3kvkm0000gn/T/pip-install-zi39hm6a/psychtoolbox/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/gf/rfjg_hfd6750xc2rdyx3kvkm0000gn/T/pip-wheel-o62yjgj1 --python-tag cp37
cwd: /private/var/folders/gf/rfjg_hfd6750xc2rdyx3kvkm0000gn/T/pip-install-zi39hm6a/psychtoolbox/
Complete output (220 lines):
Platform reported as: Darwin
Again, full traceback is here: psypy3.7_errors.py (143.7 KB)
I can install psychopy and run this experiment fine on an iMac desktop, with, from what I can tell, the same Anaconda install at the base and psychopy installation in the virtual envs.
Any insights would be great, thank you