I feel very stupid but I can’t get PyCharm to run a PsychoPy script for anything, and every time I try to load the interpreter in PyCharm it throws a fit.
I know the correct interpreter (/Applications/PsychoPy2.app/Contents/MacOS/python), but anytime I try to do anything with it I get:
from psychopy import visual, event, core, data, gui, monitors, tools, sound File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psychopy/__init__.py", line 43, in <module> from psychopy.preferences import prefs File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psychopy/preferences/__init__.py", line 13, in <module> from . import preferences as prefsLib File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psychopy/preferences/preferences.py", line 6, in <module> from builtins import object File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/builtins/__init__.py", line 8, in <module> from future.builtins import * File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/future/builtins/__init__.py", line 10, in <module> from future.builtins.iterators import (filter, map, zip) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/future/builtins/iterators.py", line 38, in <module> from future import utils File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/future/utils/__init__.py", line 54, in <module> import copy File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 52, in <module> import weakref File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/weakref.py", line 14, in <module> from _weakref import ( ImportError: cannot import name _remove_dead_weakref
This also occurs if I try to get it to “Install packaging tools”, which it wants to do when you select the thing.
I also can’t install PsychoPy as a package into its default python environment, which would seem to be the logical alternative. It gives me an error message about needing to run with sudo -H, which I can’t do from PyCharm. PyCharm’s documentation is also grossly inadequate.
@jon I know you use PyCharm, what am I missing?