[Scipy-tickets] [SciPy] #1646: Could not find file error from setup.py build

SciPy Trac scipy-tickets@scipy....
Sun Jul 15 08:59:21 CDT 2012


#1646: Could not find file error from setup.py build
--------------------------+-------------------------------------------------
 Reporter:  bdpy          |       Owner:  somebody   
     Type:  defect        |      Status:  needs_info 
 Priority:  normal        |   Milestone:  Unscheduled
Component:  Build issues  |     Version:  0.10.0     
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by bohoro):

 I have a similar issue when building scipy-0.10.1

 I ran:


 {{{
 sudo python setup.py build
 }}}


 {{{
 Running from scipy source directory.
 blas_opt_info:
   FOUND:
     extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
     define_macros = [('NO_ATLAS_INFO', 3)]
     extra_compile_args = ['-msse3',
 '-I/System/Library/Frameworks/vecLib.framework/Headers']

 non-existing path in 'scipy/io': 'docs'
 lapack_opt_info:
   FOUND:
     extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
     define_macros = [('NO_ATLAS_INFO', 3)]
     extra_compile_args = ['-msse3']

 umfpack_info:
   libraries umfpack not found in
 /Library/Frameworks/Python.framework/Versions/2.7/lib
   libraries umfpack not found in /usr/local/lib
   libraries umfpack not found in /usr/lib
 /Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy/distutils/system_info.py:470:
 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__)
   NOT AVAILABLE

 Traceback (most recent call last):
   File "setup.py", line 196, in <module>
     setup_package()
   File "setup.py", line 187, in setup_package
     configuration=configuration )
   File "/Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy/distutils/core.py",
 line 152, in setup
     config = configuration()
   File "setup.py", line 138, in configuration
     config.add_subpackage('scipy')
   File "/Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy/distutils/misc_util.py",
 line 1002, in add_subpackage
     caller_level = 2)
   File "/Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy/distutils/misc_util.py",
 line 971, in get_subpackage
     caller_level = caller_level + 1)
   File "/Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy/distutils/misc_util.py",
 line 908, in _get_configuration_from_setup_py
     config = setup_module.configuration(*args)
   File "scipy/setup.py", line 20, in configuration
     config.add_subpackage('special')
   File "/Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy/distutils/misc_util.py",
 line 1002, in add_subpackage
     caller_level = 2)
   File "/Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy/distutils/misc_util.py",
 line 971, in get_subpackage
     caller_level = caller_level + 1)
   File "/Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy/distutils/misc_util.py",
 line 908, in _get_configuration_from_setup_py
     config = setup_module.configuration(*args)
   File "scipy/special/setup.py", line 54, in configuration
     extra_info=get_info("npymath")
   File "/Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy/distutils/misc_util.py",
 line 2220, in get_info
     pkg_info = get_pkg_info(pkgname, dirs)
   File "/Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy/distutils/misc_util.py",
 line 2172, in get_pkg_info
     return read_config(pkgname, dirs)
   File "/Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy/distutils/npy_pkg_config.py",
 line 390, in read_config
     v = _read_config_imp(pkg_to_filename(pkgname), dirs)
   File "/Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy/distutils/npy_pkg_config.py",
 line 326, in _read_config_imp
     meta, vars, sections, reqs = _read_config(filenames)
   File "/Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy/distutils/npy_pkg_config.py",
 line 309, in _read_config
     meta, vars, sections, reqs = parse_config(f, dirs)
   File "/Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy/distutils/npy_pkg_config.py",
 line 281, in parse_config
     raise PkgNotFound("Could not find file(s) %s" % str(filenames))
 numpy.distutils.npy_pkg_config.PkgNotFound: Could not find file(s)
 ['/Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy/core/lib/npy-pkg-
 config/npymath.ini']

 }}}

 The ini exits in the following locations:


 {{{
 /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-
 packages/numpy/core/lib/npy-pkg-config/npymath.ini
 /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpy/core/lib
 /npy-pkg-config/npymath.ini
 /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/lib
 /npy-pkg-config/npymath.ini
 }}}

 Numpy test finishes without errors:


 {{{
 Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43)
 [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy
 >>> numpy.test()
 Running unit tests for numpy
 NumPy version 1.6.2
 NumPy is installed in /Library/Python/2.7/site-
 packages/numpy-1.6.2-py2.7-macosx-10.7-intel.egg/numpy
 Python version 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43) [GCC
 4.2.1 (Apple Inc. build 5666) (dot 3)]
 nose version 1.1.2
 ..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................KK...............................................................................................................................................................................................................................................................................................................................................................................................................................K.....................................................................................................K...SK.S.......S.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
 ----------------------------------------------------------------------
 Ran 3532 tests in 15.548s

 OK (KNOWNFAIL=5, SKIP=4)
 <nose.result.TextTestResult run=3532 errors=0 failures=0>
 >>>

 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1646#comment:2>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list