[Numpy-discussion] Is this a bug in numpy.distutils ?

Dave dave.hirschfeld at gmail.com
Tue Aug 4 07:20:30 EDT 2009


David Cournapeau <david <at> ar.media.kyoto-u.ac.jp> writes:

> 
> Dave wrote:
> > Dave <dave.hirschfeld <at> gmail.com> writes:
> >
> >   
> >> Work's for me.
> >>
> >> -Dave
> >>
> >>     
> >
> > Except now when trying to compile the latest scipy I get the following 
error:
> >   
> 
> Was numpy installed from a bdist_wininst installer, or did you use the
> install method directly ?
> 
> David
> 

Numpy was installed with the bdist_wininst installer.

In case it's relevant the installer seemed to create 2 egg-info files:
numpy-1.4.0.dev7277-py2.5.egg-info
numpy-1.4.0.dev7280-py2.5.egg-info

Deleting the numpy directory and the egg-info files and re-installing from the
bdist_wininst installer gave the same result (with the above 2 egg-info files)

Installing numpy with python setup.py install seemed to work (at least the
npymath.ini file was now in the numpy\core\lib\npy-pkg-config folder)

Compiling scipy got much further now, but still failed with the below error 
message:

C:\dev\src\scipy>python setup.py bdist_wininst > build.txt
Warning: No configuration returned, assuming unavailable.
C:\dev\bin\Python25\lib\site-packages\numpy\distutils\command\config.py:394:
DeprecationWarning:
+++++++++++++++++++++++++++++++++++++++++++++++++
Usage of get_output is deprecated: please do not
use it anymore, and avoid configuration checks
involving running executable on the target machine.
+++++++++++++++++++++++++++++++++++++++++++++++++

  DeprecationWarning)
C:\dev\bin\Python25\lib\site-packages\numpy\distutils\system_info.py:452:
UserWarning:
    UMFPACK sparse solver (http://www.cise.ufl.edu/research/sparse/umfpack/)
    not found. Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [umfpack]) or by setting
    the UMFPACK environment variable.
  warnings.warn(self.notfounderror.__doc__)
error: Command "C:\dev\bin\mingw\bin\g77.exe -g -Wall -mno-cygwin -g -Wall
-mno-cygwin -shared build\temp.win32-2.5\Release\scipy\special\_cephesmodule.o
build\temp.win32-2.5\Release\scipy\special\amos_wrappers.o
build\temp.win32-2.5\Release\scipy\special\specfun_wrappers.o
build\temp.win32-2.5\Release\scipy\special\toms_wrappers.o
build\temp.win32-2.5\Release\scipy\special\cdf_wrappers.o
build\temp.win32-2.5\Release\scipy\special\ufunc_extras.o
-LC:\dein\Python25\Lib\site-packages -LC:\dev\bin\mingw\lib
-LC:\dev\bin\mingw\lib\gcc\mingw32\3.4.5 -LC:\dev\bin\Python25\libs
-LC:\dev\bin\Python25\PCBuild -Lbuild\temp.win32-2.5 -lsc_amos -lsc_toms
-lsc_c_misc -lsc_cephes -lsc_mach -lsc_cdf -lsc_specfun -lnpymath -lpython25
-lg2c -o build\lib.win32-2.5\scipy\special\_cephes.pyd" failed with exit status 
1

The output of the build is available from http://pastebin.com/d3efe5650

Note the strange character on line 4600. In my terminal window this is 
displayed as:

compile options: '-D_USE_MATH_DEFINES -D_USE_MATH_DEFINES
-IC:\dein\Python25\Lib\site-packages
-IC:\dev\bin\Python25\lib\site-packages\numpy\core\include
-IC:\dev\bin\Python25\include -IC:\dev\bin\Python25\PC -c'

HTH,
Dave





More information about the NumPy-Discussion mailing list