<br><br><div class="gmail_quote">On Sun, Mar 16, 2008 at 5:38 PM, <<a href="mailto:skip@pobox.com">skip@pobox.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I have a new-ish MacBook Pro. When I installed it I used Apple's migration<br>
assitant to transfer content from my PowerBook. That left me with lots of<br>
Mach-O PPC shared object files. I've been sort of working my way through<br>
replacing things.<br>
<br>
Today I tried reinstalling numpy using easy_install (had been 1.0.1 in<br>
Mach-O PPC format, should wind up with 1.0.4 in Mach-O Intel format). I got<br>
this rather ugly output:<br></blockquote><div><br>It looks like numpy tries to add a DEFAULT section in the site.cfg configuration<br>file, which seems now forbidden in Python 2.6 ConfigParser (reserved section).<br><br>
...<br> if section.lower() == "default":<br> raise ValueError, 'Invalid section name: %s' % section<br>...<br><br>So I'd say that numpy (I don't know this lib) is not compatible with 2.6 yet<br>
(it works in 2.5)<br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
% easy_install numpy<br>
/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<br>
from md5 import md5<br>
Searching for numpy<br>
Reading <a href="http://pypi.python.org/simple/numpy/" target="_blank">http://pypi.python.org/simple/numpy/</a><br>
Reading <a href="http://numeric.scipy.org" target="_blank">http://numeric.scipy.org</a><br>
Reading <a href="http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103" target="_blank">http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103</a><br>
Reading <a href="http://numpy.scipy.org" target="_blank">http://numpy.scipy.org</a><br>
Best match: numpy 1.0.4<br>
Downloading <a href="http://downloads.sourceforge.net/numpy/numpy-1.0.4.tar.gz?modtime=1194536674&big_mirror=0" target="_blank">http://downloads.sourceforge.net/numpy/numpy-1.0.4.tar.gz?modtime=1194536674&big_mirror=0</a><br>
Processing numpy-1.0.4.tar.gz<br>
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<br>
Running from numpy source directory.<br>
non-existing path in '/private/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-1.0.4/numpy/distutils': 'site.cfg'<br>
/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.<br>
sin, sout = os.popen4('svnversion')<br>
Traceback (most recent call last):<br>
File "/Users/skip/local/bin/easy_install", line 8, in <module><br>
load_entry_point('setuptools==0.6c7', 'console_scripts', 'easy_install')()<br>
File "/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/command/easy_install.py", line 1670, in main<br>
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<br>
File "/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/command/easy_install.py", line 1674, in <lambda><br>
File "/Users/skip/local/lib/python2.6/distutils/core.py", line 151, in setup<br>
dist.run_commands()<br>
File "/Users/skip/local/lib/python2.6/distutils/dist.py", line 974, in run_commands<br>
self.run_command(cmd)<br>
File "/Users/skip/local/lib/python2.6/distutils/dist.py", line 994, in run_command<br>
cmd_obj.run()<br>
File "/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/command/easy_install.py", line 211, in run<br>
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<br>
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<br>
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<br>
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<br>
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<br>
File "/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/sandbox.py", line 27, in run_setup<br>
File "/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/sandbox.py", line 63, in run<br>
File "/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/sandbox.py", line 29, in <lambda><br>
File "setup.py", line 89, in <module><br>
File "setup.py", line 82, in setup_package<br>
File "/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-1.0.4/numpy/distutils/core.py", line 145, in setup<br>
File "setup.py", line 49, in configuration<br>
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<br>
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<br>
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<br>
File "numpy/setup.py", line 9, in configuration<br>
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<br>
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<br>
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<br>
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<br>
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<br>
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__<br>
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<br>
File "/Users/skip/local/lib/python2.6/ConfigParser.py", line 242, in add_section<br>
raise ValueError, 'Invalid section name: %s' % section<br>
ValueError: Invalid section name: DEFAULT<br>
<br>
Any idea what the problem might be? I'm using easy_install 0.6c7 with<br>
Python 2.6 (Subversion checkout). I don't know if 0.6c7 is the most recent<br>
version or not.<br>
<br>
Thanks,<br>
<font color="#888888"><br>
--<br>
Skip Montanaro - <a href="mailto:skip@pobox.com">skip@pobox.com</a> - <a href="http://www.webfast.com/%7Eskip/" target="_blank">http://www.webfast.com/~skip/</a><br>
_______________________________________________<br>
Distutils-SIG maillist - <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">http://mail.python.org/mailman/listinfo/distutils-sig</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Tarek Ziadé | Association AfPy | <a href="http://www.afpy.org">www.afpy.org</a><br>Blog FR | <a href="http://programmation-python.org">http://programmation-python.org</a><br>
Blog EN | <a href="http://tarekziade.wordpress.com/">http://tarekziade.wordpress.com/</a>