
Hi all! I'm trying to build numpy on Windows 64 bit, Python 3.4.2 64 bit. I do environment setup by the following command: CMD /K "SET MSSdk=1 && SET DISTUTILS_USE_SDK=1 && "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64" Then I cd to the newly cloned numpy folder and do: python setup.py build_ext --inplace It looks like the build process finishes correctly. But then python -c "import numpy; numpy.test()" crashes the interpreter (some tests pass before the crash). I found out that it is caused by numpy.fromfile function call. What might be the reason of that? Do I use wrong msvc compiler?

On 01/08/2015 07:31 PM, Nikolay Mayorov wrote:
Hi all!
I'm trying to build numpy on Windows 64 bit, Python 3.4.2 64 bit.
I do environment setup by the following command:
CMD /K "SET MSSdk=1 && SET DISTUTILS_USE_SDK=1 && "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64"
Then I cd to the newly cloned numpy folder and do: python setup.py build_ext --inplace
It looks like the build process finishes correctly.
But then python -c "import numpy; numpy.test()" crashes the interpreter (some tests pass before the crash). I found out that it is caused by numpy.fromfile function call.
What might be the reason of that? Do I use wrong msvc compiler?
I think compiling python3 extensions requires VS 2010, python 2 extensions VS2008. A crash in a fromfile test is what I would expect from using the wrong compiler.

Thank you, Julian. I just happen to build scikit-learn with VS2012 and thought it's OK to use it for other packages.
Date: Thu, 8 Jan 2015 19:43:53 +0100 From: jtaylor.debian@googlemail.com To: numpy-discussion@scipy.org Subject: Re: [Numpy-discussion] Build doesn't pass tests
On 01/08/2015 07:31 PM, Nikolay Mayorov wrote:
Hi all!
I'm trying to build numpy on Windows 64 bit, Python 3.4.2 64 bit.
I do environment setup by the following command:
CMD /K "SET MSSdk=1 && SET DISTUTILS_USE_SDK=1 && "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64"
Then I cd to the newly cloned numpy folder and do: python setup.py build_ext --inplace
It looks like the build process finishes correctly.
But then python -c "import numpy; numpy.test()" crashes the interpreter (some tests pass before the crash). I found out that it is caused by numpy.fromfile function call.
What might be the reason of that? Do I use wrong msvc compiler?
I think compiling python3 extensions requires VS 2010, python 2 extensions VS2008. A crash in a fromfile test is what I would expect from using the wrong compiler.
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
participants (2)
-
Julian Taylor
-
Nikolay Mayorov