Win64 binary can't find Python installation #979

Closed
sytham opened this Issue Jul 24, 2013 · 10 comments

Projects

None yet

4 participants

@sytham
sytham commented Jul 24, 2013

The Win64 installer downloaded from http://statsmodels.sourceforge.net/binaries/statsmodels-0.5.0-4de6705.win-amd64-py2.7.exe does not work; it fails to find my Python 2.7 installation.

The message I get when running the installer, after clicking "next" for the first time, is "Python version 2.7 required, which was not found in the registry."

Installation works with the Win32 installer. However, my system is 64 bit so then I run into problems when using some functions.

@jseabold
Member

Do you have 64-bit Python installed? That's what it's not finding. What do you mean run into some problems? 32-bit programs should work fine on a 64-bit system.

@sytham
sytham commented Jul 26, 2013

Ah, right. Turns out I have the 32 bit Python installed.

As for the problem I run into:

Traceback (most recent call last):
File "x.py", line 13, in
from statsmodels.tsa.arima_model import ARIMA
File "C:\Python27\lib\site-packages\statsmodels\tsa\arima_model.py", line 24, in
from statsmodels.tsa.ar_model import AR
File "C:\Python27\lib\site-packages\statsmodels\tsa\ar_model.py", line 18, in
from statsmodels.tsa.kalmanf.kalmanfilter import KalmanFilter
File "C:\Python27\lib\site-packages\statsmodels\tsa\kalmanf__init__.py", line 1, in
from kalmanfilter import KalmanFilter
File "C:\Python27\lib\site-packages\statsmodels\tsa\kalmanf\kalmanfilter.py", line 32, in
from . import kalman_loglike
File "numpy.pxd", line 155, in init statsmodels.tsa.kalmanf.kalman_loglike (statsmodels\tsa/kalmanf\kalman_loglike.c:6543)
ValueError: numpy.dtype has the wrong size, try recompiling

Isn't this because I am using a file compiled for 32-bit on a 64-bit system?

@jseabold
Member

No that's a numpy version compatibility problem. What version of numpy are you using?

@sytham
sytham commented Jul 26, 2013

The version that comes with PythonXY 2.7.3.1, which is Numpy 1.6.2.

@jseabold
Member

Hmm, how exactly did you install statsmodels? Just running the win32-py2.7 binary?

Those binaries were built against 1.7.1. I wouldn't have expected it to matter, but I suppose it could. Can you try uninstalling and upgrading to numpy 1.7.1? You will probably also need to upgrade scipy, etc. to the versions built against the numpy-MKL available there.

http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

Otherwise, you will have to build statsmodels yourself against your version of numpy.

http://statsmodels.sourceforge.net/devel/install.html#windows

@sytham
sytham commented Jul 26, 2013

Yes, I just ran the win32-py2.7 binary.

Unfortunately upgrading numpy won't be that easy since I'm doing this on a company PC, and my home system is Linux. It'll take some time, I'll get back to you once I have upgraded and tried it out. Thanks for the help!

@jseabold
Member

I will see about putting up some binaries that are compatible with numpy 1.6.1 and will update if I make progress on this. I thought there were efforts to make 1.6.x and 1.7.x ABI compatible, but I see that this is a pretty common error across projects.

@rgommers
Member

Those releases are compatible, backwards. You should always compile your binaries against the lowest version of numpy you want to support.

@jseabold
Member

Well, that's good to know though I find it unintuitive. I guess I'll have to install pythonxy or something on the build machine to get an older release of numpy.

@jseabold jseabold closed this Oct 25, 2013
@josef-pkt
Member

I elaborated a bit on the ValueError: numpy.dtype has the wrong size, try recompiling binary compatibility issue in
http://stackoverflow.com/questions/17709641/valueerror-numpy-dtype-has-the-wrong-size-try-recompiling/18369312

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment