<br><br><div class="gmail_quote">On Sun, Mar 16, 2008 at 5:38 PM,  &lt;<a href="mailto:skip@pobox.com">skip@pobox.com</a>&gt; 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. &nbsp;When I installed it I used Apple&#39;s migration<br>
assitant to transfer content from my PowerBook. &nbsp;That left me with lots of<br>
Mach-O PPC shared object files. &nbsp;I&#39;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). &nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if section.lower() == &quot;default&quot;:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; raise ValueError, &#39;Invalid section name: %s&#39; % section<br>...<br><br>So I&#39;d say that numpy (I don&#39;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>
 &nbsp; &nbsp;% easy_install numpy<br>
 &nbsp; &nbsp;/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>
 &nbsp; &nbsp; &nbsp;from md5 import md5<br>
 &nbsp; &nbsp;Searching for numpy<br>
 &nbsp; &nbsp;Reading <a href="http://pypi.python.org/simple/numpy/" target="_blank">http://pypi.python.org/simple/numpy/</a><br>
 &nbsp; &nbsp;Reading <a href="http://numeric.scipy.org" target="_blank">http://numeric.scipy.org</a><br>
 &nbsp; &nbsp;Reading <a href="http://sourceforge.net/project/showfiles.php?group_id=1369&amp;package_id=175103" target="_blank">http://sourceforge.net/project/showfiles.php?group_id=1369&amp;package_id=175103</a><br>
 &nbsp; &nbsp;Reading <a href="http://numpy.scipy.org" target="_blank">http://numpy.scipy.org</a><br>
 &nbsp; &nbsp;Best match: numpy 1.0.4<br>
 &nbsp; &nbsp;Downloading <a href="http://downloads.sourceforge.net/numpy/numpy-1.0.4.tar.gz?modtime=1194536674&amp;big_mirror=0" target="_blank">http://downloads.sourceforge.net/numpy/numpy-1.0.4.tar.gz?modtime=1194536674&amp;big_mirror=0</a><br>

 &nbsp; &nbsp;Processing numpy-1.0.4.tar.gz<br>
 &nbsp; &nbsp;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>
 &nbsp; &nbsp;Running from numpy source directory.<br>
 &nbsp; &nbsp;non-existing path in &#39;/private/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-1.0.4/numpy/distutils&#39;: &#39;site.cfg&#39;<br>
 &nbsp; &nbsp;/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. &nbsp;Use the subprocess module.<br>
 &nbsp; &nbsp; &nbsp;sin, sout = os.popen4(&#39;svnversion&#39;)<br>
 &nbsp; &nbsp;Traceback (most recent call last):<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/bin/easy_install&quot;, line 8, in &lt;module&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;load_entry_point(&#39;setuptools==0.6c7&#39;, &#39;console_scripts&#39;, &#39;easy_install&#39;)()<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/command/easy_install.py&quot;, line 1670, in main<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/command/easy_install.py&quot;, line 1659, in with_ei_usage<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/command/easy_install.py&quot;, line 1674, in &lt;lambda&gt;<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/distutils/core.py&quot;, line 151, in setup<br>
 &nbsp; &nbsp; &nbsp; &nbsp;dist.run_commands()<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/distutils/dist.py&quot;, line 974, in run_commands<br>
 &nbsp; &nbsp; &nbsp; &nbsp;self.run_command(cmd)<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/distutils/dist.py&quot;, line 994, in run_command<br>
 &nbsp; &nbsp; &nbsp; &nbsp;cmd_obj.run()<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/command/easy_install.py&quot;, line 211, in run<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/command/easy_install.py&quot;, line 446, in easy_install<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/command/easy_install.py&quot;, line 471, in install_item<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/command/easy_install.py&quot;, line 655, in install_eggs<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/command/easy_install.py&quot;, line 930, in build_and_install<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/command/easy_install.py&quot;, line 919, in run_setup<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/sandbox.py&quot;, line 27, in run_setup<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/sandbox.py&quot;, line 63, in run<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/sandbox.py&quot;, line 29, in &lt;lambda&gt;<br>
 &nbsp; &nbsp; &nbsp;File &quot;setup.py&quot;, line 89, in &lt;module&gt;<br>
 &nbsp; &nbsp; &nbsp;File &quot;setup.py&quot;, line 82, in setup_package<br>
 &nbsp; &nbsp; &nbsp;File &quot;/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-1.0.4/numpy/distutils/core.py&quot;, line 145, in setup<br>
 &nbsp; &nbsp; &nbsp;File &quot;setup.py&quot;, line 49, in configuration<br>
 &nbsp; &nbsp; &nbsp;File &quot;/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-1.0.4/numpy/distutils/misc_util.py&quot;, line 834, in add_subpackage<br>
 &nbsp; &nbsp; &nbsp;File &quot;/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-1.0.4/numpy/distutils/misc_util.py&quot;, line 817, in get_subpackage<br>
 &nbsp; &nbsp; &nbsp;File &quot;/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-1.0.4/numpy/distutils/misc_util.py&quot;, line 764, in _get_configuration_from_setup_py<br>
 &nbsp; &nbsp; &nbsp;File &quot;numpy/setup.py&quot;, line 9, in configuration<br>
 &nbsp; &nbsp; &nbsp;File &quot;/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-1.0.4/numpy/distutils/misc_util.py&quot;, line 834, in add_subpackage<br>
 &nbsp; &nbsp; &nbsp;File &quot;/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-1.0.4/numpy/distutils/misc_util.py&quot;, line 817, in get_subpackage<br>
 &nbsp; &nbsp; &nbsp;File &quot;/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-1.0.4/numpy/distutils/misc_util.py&quot;, line 764, in _get_configuration_from_setup_py<br>
 &nbsp; &nbsp; &nbsp;File &quot;/private/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-1.0.4/numpy/core/setup.py&quot;, line 246, in configuration<br>
 &nbsp; &nbsp; &nbsp;File &quot;/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-1.0.4/numpy/distutils/system_info.py&quot;, line 267, in get_info<br>
 &nbsp; &nbsp; &nbsp;File &quot;/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-1.0.4/numpy/distutils/system_info.py&quot;, line 366, in __init__<br>
 &nbsp; &nbsp; &nbsp;File &quot;/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/easy_install-dLgdmR/numpy-1.0.4/numpy/distutils/system_info.py&quot;, line 374, in parse_config_files<br>
 &nbsp; &nbsp; &nbsp;File &quot;/Users/skip/local/lib/python2.6/ConfigParser.py&quot;, line 242, in add_section<br>
 &nbsp; &nbsp; &nbsp; &nbsp;raise ValueError, &#39;Invalid section name: %s&#39; % section<br>
 &nbsp; &nbsp;ValueError: Invalid section name: DEFAULT<br>
<br>
Any idea what the problem might be? &nbsp;I&#39;m using easy_install 0.6c7 with<br>
Python 2.6 (Subversion checkout). &nbsp;I don&#39;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 &nbsp;- &nbsp;<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>