psychopy.org | Reference | Downloads | Github

ImportError: cannot import name '_ccallback_c'

Hi, I installed the 1.90.3 standalone version of PsychoPy, but it won’t launch. This is the error log. I got a previous error log about pandas, and installed all the dependencies using pip to resolve it, but I can’t seem to resolve this.

I’ve tried:

  • Deleting appData

I only have Python 3.6 installed - is that fine?

Thank you!

PS C:\Program Files (x86)\PsychoPy2_PY3\Lib\site-packages\psychopy\app> python .\psychopyApp.py
Traceback (most recent call last):
File “.\psychopyApp.py”, line 96, in
start_app()
File “.\psychopyApp.py”, line 28, in start_app
app = PsychoPyApp(0, showSplash=showSplash)
File “C:\Program Files (x86)\PsychoPy2_PY3\lib\site-packages\psychopy\app_psychopyApp.py”, line 175, in init
self.onInit(testMode=testMode, **kwargs)
File “C:\Program Files (x86)\PsychoPy2_PY3\lib\site-packages\psychopy\app_psychopyApp.py”, line 205, in onInit
from psychopy.compatibility import checkCompatibility
File “C:\Program Files (x86)\PsychoPy2_PY3\lib\site-packages\psychopy\compatibility.py”, line 12, in
import psychopy.data
File “C:\Program Files (x86)\PsychoPy2_PY3\lib\site-packages\psychopy\data_init_.py”, line 11, in
from .staircase import (StairHandler, QuestHandler, PsiHandler,
File “C:\Program Files (x86)\PsychoPy2_PY3\lib\site-packages\psychopy\data\staircase.py”, line 28, in
from psychopy.contrib.psi import PsiObject
File “C:\Program Files (x86)\PsychoPy2_PY3\lib\site-packages\psychopy\contrib\psi.py”, line 27, in
from scipy import stats
File “C:\Users\Michelle\AppData\Roaming\Python\Python36\site-packages\scipy_init_.py”, line 119, in
from scipy._lib._ccallback import LowLevelCallable
File “C:\Users\Michelle\AppData\Roaming\Python\Python36\site-packages\scipy_lib_ccallback.py”, line 1, in
from . import _ccallback_c
ImportError: cannot import name ‘_ccallback_c’

It looks like you have a copy of scipy installed in your “roaming” and ford some reason psychopy is finding that but it isn’t complete. PsychoPy should have it’s own scipy installed and should not be using your external one

Thank you very much! I’ve solved it now by installing Python 2.7 and the 2.7-only standalone of PsychoPy.