psychopy.org | Reference | Downloads | Github

Problem importing scipy

Hi,

Wonder if you can help, I look after several machines running psychopy. Upgrading all of them to version 1.84.2, and they are all running except one. I am getting the following error on that one machine, any ideas? any dependency’s I may be missing? Interestingly version 1.82.01 will run on this machine.

Thanks

Simon

“C:\Program Files (x86)\PsychoPy2\python.exe” “C:\Program File
s (x86)\PsychoPy2\Lib\site-packages\PsychoPy-1.84.2-py2.7.egg\psychopy\app\psych
opyApp.py"
Traceback (most recent call last):
File “C:\Program Files (x86)\PsychoPy2\Lib\site-packages\PsychoPy-1.84.2-py2.7
.egg\psychopy\app\psychopyApp.py”, line 60, in
app = PsychoPyApp(0, showSplash=showSplash)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7
.egg\psychopy\app_psychopyApp.py”, line 107, in init
self.onInit(**kwargs)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7
.egg\psychopy\app_psychopyApp.py”, line 152, in onInit
from psychopy.compatibility import checkCompatibility
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7
.egg\psychopy\compatibility.py”, line 4, in
import psychopy.data
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7
.egg\psychopy\data.py”, line 18, in
from scipy import optimize, special
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\scipy\optimize__init
__.py”, line 233, in
from .minimize import *
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\scipy\optimize_minim
ize.py”, line 30, in
from .lbfgsb import minimize_lbfgsb
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\scipy\optimize\lbfgsb
.py”, line 44, in
from scipy.sparse.linalg import LinearOperator
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\scipy\sparse\linalg_
init
.py", line 116, in
from .matfuncs import *
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\scipy\sparse\linalg\m
atfuncs.py”, line 19, in
import scipy.misc
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\scipy\misc_init
.p
y”, line 51, in
from scipy.special import comb, factorial, factorial2, factorialk
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\scipy\special_init
_.py”, line 627, in
from ._ufuncs import *
ImportError: DLL load failed: The specified procedure could not be found.

Probably should add this is running on Windows 7 x64
Thanks
Simon

The problem is with a file from the scipy (scientific python) library.

Is this machine different architecture to the others? i.e. what is its processor and what are the other computers? Or are they all different?

Thanks Jon for getting back to me.

All the machines are different, bought at different times. The machine in question is a Intel Core 2 Duo running Windows 7 x64, needs replacing really, there is a machine in the room with identical hardware in the room that is running it.

I think reinstalling Windows with our standard set of software will fix the issue, it just the machine has research data on it so I was hoping to avoid that.

I have installed/made sure various Visual CPP packs are installed, as I have seen notes on the web that scipy on Windows may be compiled against them, but this has helped, so was wondering if there was something obvious I have missed?

Tried Release 1.83.04 this morning, that loads, but 1.84.2 just gives that error

Thanks

Simon

I don’t really know why one scipy would be fine and another not - but they’re quite substantial copmiled libs so I can’ believe something changed in their packaging. I don’t think PsychoPy itself has changed in a way that it would break here.

You could work around this (I think) by either:

  • updating the 1.83 install with the psychopy zip file using the tools>update menu (because you can override auto updating with a specific downloaded zip file)
  • try copying the scipy folder out from your working install, upgrading to the new standalone and then moving the scipy folder back in

I’m not exactly sure what incompatibilities these workarounds might introduce though I must say

Suggested fix has appeared here: