[IPython-dev] Issue of install ipython-py3k

sunqiang sunqiang at gmail.com
Sat Feb 12 04:25:33 EST 2011


Hi,

  After git clone git://github.com/ipython/ipython-py3k.git
  "python3.2 setup.py build" raise a byte/str error, I have to change
line 370 of setupbase.py from "cfg_parser.set('commit hash',
'install_hash', repo_commit)" to "cfg_parser.set('commit hash',
'install_hash', repo_commit.decode())" to finish the setup.
I don't know if this is my own problem.
the error I am getting is:
############################################################################
============================================================================
BUILDING IPYTHON
                python: 3.2rc2+ (py3k, Feb  9 2011, 01:06:54)  [GCC 4.2.4
                        (Ubuntu 4.2.4-1ubuntu4)]
              platform: linux2

OPTIONAL DEPENDENCIES
        zope.Interface: Not found (required for parallel computing
                        capabilities)
               Twisted: Not found (required for parallel computing
                        capabilities)
              Foolscap: Not found (required for parallel computing
                        capabilities)
               OpenSSL: Not found (required if you want security in the
                        parallel computing capabilities)
                sphinx: Not found (required for building documentation)
              pygments: Not found (required for syntax highlighting
                        documentation)
                  nose: Not found (required for running the test suite)
               pexpect: no (required for running standalone doctests)
running build
running build_py
copying IPython/core/display.py -> build/lib/IPython/core
copying IPython/core/magic.py -> build/lib/IPython/core
copying IPython/core/hooks.py -> build/lib/IPython/core
copying IPython/core/formatters.py -> build/lib/IPython/core
copying IPython/core/usage.py -> build/lib/IPython/core
copying IPython/core/displayhook.py -> build/lib/IPython/core
copying IPython/core/displaypub.py -> build/lib/IPython/core
copying IPython/core/inputsplitter.py -> build/lib/IPython/core
copying IPython/core/interactiveshell.py -> build/lib/IPython/core
copying IPython/core/tests/test_inputsplitter.py -> build/lib/IPython/core/tests
copying IPython/extensions/sympy_printing.py -> build/lib/IPython/extensions
copying IPython/lib/irunner.py -> build/lib/IPython/lib
copying IPython/lib/latextools.py -> build/lib/IPython/lib
copying IPython/lib/pylabtools.py -> build/lib/IPython/lib
copying IPython/testing/tools.py -> build/lib/IPython/testing
Traceback (most recent call last):
  File "setup.py", line 254, in <module>
    setup(**setup_args)
  File "/opt/python3.2/lib/python3.2/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/opt/python3.2/lib/python3.2/distutils/dist.py", line 919, in
run_commands
    self.run_command(cmd)
  File "/opt/python3.2/lib/python3.2/distutils/dist.py", line 938, in
run_command
    cmd_obj.run()
  File "/opt/python3.2/lib/python3.2/distutils/command/build.py", line
128, in run
    self.run_command(cmd_name)
  File "/opt/python3.2/lib/python3.2/distutils/cmd.py", line 315, in run_command
    self.distribution.run_command(command)
  File "/opt/python3.2/lib/python3.2/distutils/dist.py", line 938, in
run_command
    cmd_obj.run()
  File "/home/romano/gitrepos/ipython-py3k/setupbase.py", line 370, in run
    cfg_parser.set('commit hash', 'install_hash', repo_commit)
  File "/opt/python3.2/lib/python3.2/configparser.py", line 1157, in set
    self._validate_value_types(option=option, value=value)
  File "/opt/python3.2/lib/python3.2/configparser.py", line 1146, in
_validate_value_types
    raise TypeError("option values must be strings")
TypeError: option values must be strings
############################################################################



More information about the IPython-dev mailing list