<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi,<br>
    <br>
    cat IPython/.git_commit_info.ini results in:<br>
    <br>
    # This is an ini file that may contain information about the code
    state<br>
    [commit hash]<br>
    <br>
    # The line below may contain a valid hash if it has been substituted
    during<br>
    # 'git archive'<br>
    archive_subst_hash=$Format:%h$<br>
    <br>
    # This line may be modified by the install process<br>
    install_hash=<br>
    <br>
    The Python code you asked for also seems fine:<br>
    <br>
    &gt;&gt;&gt; from ConfigParser import ConfigParser<br>
    &gt;&gt;&gt; cfg_p = ConfigParser()<br>
    &gt;&gt;&gt; cfg_p.read("IPython/.git_commit_info.ini")<br>
    ['IPython/.git_commit_info.ini']<br>
    &gt;&gt;&gt; print cfg_p.sections()<br>
    ['commit hash']<br>
    <br>
    I fear that's not enlightening...<br>
    <br>
    On 10/24/2011 09:03 PM, MinRK wrote:
    <blockquote
cite="mid:CAHNn8BXV6M6xU-zhGOK6Oh_AQkaw5aRNj+uRBNO83Dtr=tvRZA@mail.gmail.com"
      type="cite">
      <div>Hm, I seem to be able to build just fine on my Python 2.6
        (2.6.7 | 2.6.5).</div>
      <div><br>
      </div>
      What are the contents of IPython/.git_commit_info.ini ?
      <div>and what do you get with:</div>
      <div>
        <div><br>
        </div>
        <div>    from ConfigParser import ConfigParser</div>
        <div>    cfg_parser = ConfigParser()</div>
        <div>    cfg_parser.read('IPython/.git_commit_info.ini')</div>
        <div>    print cfg_parser.sections()</div>
      </div>
      <div><br>
      </div>
      <div>
        <div><br>
        </div>
      </div>
      <div><br>
        <br>
        <div class="gmail_quote">
          On Mon, Oct 24, 2011 at 06:58, Moritz Emanuel Beber <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:moritz.beber@googlemail.com">moritz.beber@googlemail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            Dear ipythonistas,<br>
            <br>
            I tried installing a fresh copy of ipython from the most
            recent git repo<br>
            state<br>
            <br>
            commit 66bb3e8f803a569592d993846f5e1cccb2e0e7f1<br>
            Author: MinRK &lt;<a moz-do-not-send="true"
              href="mailto:benjaminrk@gmail.com">benjaminrk@gmail.com</a>&gt;<br>
            Date:   Sun Oct 23 21:53:37 2011 -0700<br>
            <br>
            on a machine running Fedora 12, unfortunately, I got the
            following error<br>
            when running the setup.py script:<br>
            <br>
============================================================================<br>
            BUILDING IPYTHON<br>
                            python: 2.6.2 (r262:71600, Jun  4 2010,
            18:28:04)  [GCC<br>
                                    4.4.3 20100127 (Red Hat 4.4.3-4)]<br>
                          platform: linux2<br>
            <br>
            OPTIONAL DEPENDENCIES<br>
                            sphinx: 1.0.7<br>
                          pygments: 1.4<br>
                              nose: 0.11.3<br>
                           pexpect: 2.4<br>
                             pyzmq: 2.1dev<br>
                          readline: yes<br>
            running build<br>
            running build_py<br>
            Traceback (most recent call last):<br>
              File "setup.py", line 11, in &lt;module&gt;<br>
                main()<br>
              File "/home/moritz/CodeBase/ipython/setup2.py", line 268,
            in main<br>
                setup(**setup_args)<br>
              File "/usr/lib/python2.6/distutils/core.py", line 152, in
            setup<br>
                dist.run_commands()<br>
              File "/usr/lib/python2.6/distutils/dist.py", line 975, in
            run_commands<br>
                self.run_command(cmd)<br>
              File "/usr/lib/python2.6/distutils/dist.py", line 995, in
            run_command<br>
                cmd_obj.run()<br>
              File "/usr/lib/python2.6/distutils/command/build.py", line
            134, in run<br>
                self.run_command(cmd_name)<br>
              File "/usr/lib/python2.6/distutils/cmd.py", line 333, in
            run_command<br>
                self.distribution.run_command(command)<br>
              File "/usr/lib/python2.6/distutils/dist.py", line 995, in
            run_command<br>
                cmd_obj.run()<br>
              File "/home/moritz/CodeBase/ipython/setupbase.py", line
            373, in run<br>
                cfg_parser.set('commit hash', 'install_hash',<br>
            repo_commit.decode('ascii'))<br>
              File "/usr/lib/python2.6/site-packages/configparser.py",
            line 1210,<br>
            in set<br>
                super(ConfigParser, self).set(section, option, value)<br>
              File "/usr/lib/python2.6/site-packages/configparser.py",
            line 925, in set<br>
                raise NoSectionError(section)<br>
            configparser.NoSectionError: No section: 'commit hash'<br>
            <br>
            I know that for the ConfigParser package 'allow_no_value'
            was added only<br>
            with Python 2.7, is that the problem here?<br>
            <br>
            Any help is greatly appreciated,<br>
            Moritz<br>
            _______________________________________________<br>
            IPython-User mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
            <a moz-do-not-send="true"
              href="http://mail.scipy.org/mailman/listinfo/ipython-user"
              target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>