[Numpy-discussion] Build ERROR ConfigParser.MissingSectionHeaderError: File contains no section headers

Jose Borreguero borreguero@gmail....
Thu Mar 17 07:34:17 CDT 2011


Thanks Josef, that worked!
I was confused because I was thinking of site.cfg as some sort of bash
script :)

Jose



On Thu, Mar 17, 2011 at 12:40 AM, <josef.pktd@gmail.com> wrote:

> On Thu, Mar 17, 2011 at 12:23 AM, Jose Borreguero <borreguero@gmail.com>
> wrote:
> > Dear Numpy/SciPy users,
> >
> > I have a build error with Numpy:
> >
> > $  /usr/local/bin/python2.7 setup.py build
> > ....
> >   File "/usr/local/lib/python2.7/ConfigParser.py", line 504, in _read
> >     raise MissingSectionHeaderError(fpname, lineno, line)
> > ConfigParser.MissingSectionHeaderError: File contains no section headers.
> > file: /projects/tmp/numpy-1.5.1/site.cfg, line: 60
> > 'library_dirs = /usr/local/lib\n'
> >
> > The relevant lines in my site.cfg file:
> >
>
> I think you just need to uncomment all the section headers that you
> use, that`s what the exception says
>
>
> > library_dirs = /usr/local/lib
> > include_dirs = /usr/local/include
> [blas_opt]
> > libraries = f77blas, cblas, atlas
> [lapack_opt]
> > libraries = lapack, f77blas, cblas, atlas
>
> Josef
>
> >
> >
> > I have installed BLAS+LAPACK+ATLAS libraries under /usr/local/lib/atlas
> >
> > I also installed UMFPACK+AMD+UFConfig+CHOLMOD
> >
> > I would appreciate any comments. I'm stuck here :(
> >
> > Best regards,
> > Jose M. Borreguero
> >
> >
> >
> > Below is the full error traceback:
> >
> > $  /usr/local/bin/python2.7 setup.py build
> >
> > Running from numpy source directory.F2PY Version 1
> > Traceback (most recent call last):
> >   File "setup.py", line 211, in <module>
> >     setup_package()
> >   File "setup.py", line 204, in setup_package
> >     configuration=configuration )
> >   File "/projects/tmp/numpy-1.5.1/numpy/distutils/core.py", line 152, in
> > setup
> >     config = configuration()
> >   File "setup.py", line 151, in configuration
> >     config.add_subpackage('numpy')
> >   File "/projects/tmp/numpy-1.5.1/numpy/distutils/misc_util.py", line
> 972,
> > in add_subpackage
> >     caller_level = 2)
> >   File "/projects/tmp/numpy-1.5.1/numpy/distutils/misc_util.py", line
> 941,
> > in get_subpackage
> >     caller_level = caller_level + 1)
> >   File "/projects/tmp/numpy-1.5.1/numpy/distutils/misc_util.py", line
> 878,
> > in _get_configuration_from_setup_py
> >     config = setup_module.configuration(*args)
> >   File "numpy/setup.py", line 9, in configuration
> >     config.add_subpackage('core')
> >   File "/projects/tmp/numpy-1.5.1/numpy/distutils/misc_util.py", line
> 972,
> > in add_subpackage
> >     caller_level = 2)
> >   File "/projects/tmp/numpy-1.5.1/numpy/distutils/misc_util.py", line
> 941,
> > in get_subpackage
> >     caller_level = caller_level + 1)
> >   File "/projects/tmp/numpy-1.5.1/numpy/distutils/misc_util.py", line
> 878,
> > in _get_configuration_from_setup_py
> >     config = setup_module.configuration(*args)
> >   File "numpy/core/setup.py", line 807, in configuration
> >     blas_info = get_info('blas_opt',0)
> >   File "/projects/tmp/numpy-1.5.1/numpy/distutils/system_info.py", line
> 310,
> > in get_info
> >     return cl().get_info(notfound_action)
> >   File "/projects/tmp/numpy-1.5.1/numpy/distutils/system_info.py", line
> 409,
> > in __init__
> >     self.parse_config_files()
> >   File "/projects/tmp/numpy-1.5.1/numpy/distutils/system_info.py", line
> 416,
> > in parse_config_files
> >     self.cp.read(self.files)
> >   File "/usr/local/lib/python2.7/ConfigParser.py", line 297, in read
> >     self._read(fp, filename)
> >   File "/usr/local/lib/python2.7/ConfigParser.py", line 504, in _read
> >     raise MissingSectionHeaderError(fpname, lineno, line)
> > ConfigParser.MissingSectionHeaderError: File contains no section headers.
> > file: /projects/tmp/numpy-1.5.1/site.cfg, line: 60
> > 'library_dirs = /usr/local/lib\n'
> >
> >
> > _______________________________________________
> > NumPy-Discussion mailing list
> > NumPy-Discussion@scipy.org
> > http://mail.scipy.org/mailman/listinfo/numpy-discussion
> >
> >
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20110317/d3f30a10/attachment.html 


More information about the NumPy-Discussion mailing list