[Distutils] *ugh* - failure to easy_install numpy
Tarek Ziadé
ziade.tarek at gmail.com
Sun Mar 16 18:29:40 CET 2008
On Sun, Mar 16, 2008 at 5:38 PM, <skip at pobox.com> wrote:
>
> I have a new-ish MacBook Pro. When I installed it I used Apple's
> migration
> assitant to transfer content from my PowerBook. That left me with lots of
> Mach-O PPC shared object files. I've been sort of working my way through
> replacing things.
>
> Today I tried reinstalling numpy using easy_install (had been 1.0.1 in
> Mach-O PPC format, should wind up with 1.0.4 in Mach-O Intel format). I
> got
> this rather ugly output:
>
It looks like numpy tries to add a DEFAULT section in the site.cfgconfiguration
file, which seems now forbidden in Python 2.6 ConfigParser (reserved
section).
...
if section.lower() == "default":
raise ValueError, 'Invalid section name: %s' % section
...
So I'd say that numpy (I don't know this lib) is not compatible with 2.6 yet
(it works in 2.5)
>
> % easy_install numpy
> /Users/skip/local/lib/python2.6/site-packages/setuptools-
> 0.6c7-py2.6.egg/setuptools/package_index.py:7: DeprecationWarning: the md5
> module is deprecated; use hashlib instead
> from md5 import md5
> Searching for numpy
> Reading http://pypi.python.org/simple/numpy/
> Reading http://numeric.scipy.org
> Reading
> http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103
> Reading http://numpy.scipy.org
> Best match: numpy 1.0.4
> Downloading
> http://downloads.sourceforge.net/numpy/numpy-1.0.4.tar.gz?modtime=1194536674&big_mirror=0
> Processing numpy-1.0.4.tar.gz
> Running numpy-1.0.4/setup.py -q bdist_egg --dist-dir
> /var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-
> 1.0.4/egg-dist-tmp-X0k4SP
> Running from numpy source directory.
> non-existing path in
> '/private/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-
> 1.0.4/numpy/distutils': 'site.cfg'
>
> /var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-
> 1.0.4/numpy/distutils/misc_util.py:1278: DeprecationWarning: os.popen4 is
> deprecated. Use the subprocess module.
> sin, sout = os.popen4('svnversion')
> Traceback (most recent call last):
> File "/Users/skip/local/bin/easy_install", line 8, in <module>
> load_entry_point('setuptools==0.6c7', 'console_scripts',
> 'easy_install')()
> File "/Users/skip/local/lib/python2.6/site-packages/setuptools-
> 0.6c7-py2.6.egg/setuptools/command/easy_install.py", line 1670, in main
> File "/Users/skip/local/lib/python2.6/site-packages/setuptools-
> 0.6c7-py2.6.egg/setuptools/command/easy_install.py", line 1659, in
> with_ei_usage
> File "/Users/skip/local/lib/python2.6/site-packages/setuptools-
> 0.6c7-py2.6.egg/setuptools/command/easy_install.py", line 1674, in
> <lambda>
> File "/Users/skip/local/lib/python2.6/distutils/core.py", line 151,
> in setup
> dist.run_commands()
> File "/Users/skip/local/lib/python2.6/distutils/dist.py", line 974,
> in run_commands
> self.run_command(cmd)
> File "/Users/skip/local/lib/python2.6/distutils/dist.py", line 994,
> in run_command
> cmd_obj.run()
> File "/Users/skip/local/lib/python2.6/site-packages/setuptools-
> 0.6c7-py2.6.egg/setuptools/command/easy_install.py", line 211, in run
> File "/Users/skip/local/lib/python2.6/site-packages/setuptools-
> 0.6c7-py2.6.egg/setuptools/command/easy_install.py", line 446, in
> easy_install
> File "/Users/skip/local/lib/python2.6/site-packages/setuptools-
> 0.6c7-py2.6.egg/setuptools/command/easy_install.py", line 471, in
> install_item
> File "/Users/skip/local/lib/python2.6/site-packages/setuptools-
> 0.6c7-py2.6.egg/setuptools/command/easy_install.py", line 655, in
> install_eggs
> File "/Users/skip/local/lib/python2.6/site-packages/setuptools-
> 0.6c7-py2.6.egg/setuptools/command/easy_install.py", line 930, in
> build_and_install
> File "/Users/skip/local/lib/python2.6/site-packages/setuptools-
> 0.6c7-py2.6.egg/setuptools/command/easy_install.py", line 919, in
> run_setup
> File "/Users/skip/local/lib/python2.6/site-packages/setuptools-
> 0.6c7-py2.6.egg/setuptools/sandbox.py", line 27, in run_setup
> File "/Users/skip/local/lib/python2.6/site-packages/setuptools-
> 0.6c7-py2.6.egg/setuptools/sandbox.py", line 63, in run
> File "/Users/skip/local/lib/python2.6/site-packages/setuptools-
> 0.6c7-py2.6.egg/setuptools/sandbox.py", line 29, in <lambda>
> File "setup.py", line 89, in <module>
> File "setup.py", line 82, in setup_package
> File
> "/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-
> 1.0.4/numpy/distutils/core.py", line 145, in setup
> File "setup.py", line 49, in configuration
> File
> "/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-
> 1.0.4/numpy/distutils/misc_util.py", line 834, in add_subpackage
> File
> "/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-
> 1.0.4/numpy/distutils/misc_util.py", line 817, in get_subpackage
> File
> "/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-
> 1.0.4/numpy/distutils/misc_util.py", line 764, in
> _get_configuration_from_setup_py
> File "numpy/setup.py", line 9, in configuration
> File
> "/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-
> 1.0.4/numpy/distutils/misc_util.py", line 834, in add_subpackage
> File
> "/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-
> 1.0.4/numpy/distutils/misc_util.py", line 817, in get_subpackage
> File
> "/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-
> 1.0.4/numpy/distutils/misc_util.py", line 764, in
> _get_configuration_from_setup_py
> File
> "/private/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-
> 1.0.4/numpy/core/setup.py", line 246, in configuration
> File
> "/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-
> 1.0.4/numpy/distutils/system_info.py", line 267, in get_info
> File
> "/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-
> 1.0.4/numpy/distutils/system_info.py", line 366, in __init__
> File
> "/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-
> 1.0.4/numpy/distutils/system_info.py", line 374, in parse_config_files
> File "/Users/skip/local/lib/python2.6/ConfigParser.py", line 242, in
> add_section
> raise ValueError, 'Invalid section name: %s' % section
> ValueError: Invalid section name: DEFAULT
>
> Any idea what the problem might be? I'm using easy_install 0.6c7 with
> Python 2.6 (Subversion checkout). I don't know if 0.6c7 is the most
> recent
> version or not.
>
> Thanks,
>
> --
> Skip Montanaro - skip at pobox.com - http://www.webfast.com/~skip/<http://www.webfast.com/%7Eskip/>
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>
--
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/distutils-sig/attachments/20080316/740aab58/attachment.htm
More information about the Distutils-SIG
mailing list