[IPython-User] Installing in a python 3.3b2 or python 3.3rc1 virtual environment.

Matthias BUSSONNIER bussonniermatthias@gmail....
Sun Aug 26 08:36:48 CDT 2012


Le 26 août 2012 à 14:44, Andrew Spiers a écrit :

> Hi, I'm having trouble installing inside a venv.
> 
> I activate the venv, install distribute, install ipython:
>    python setup.py install
> and then when trying to run the ipython3 binary which is installed, I get
>    'TypeError: __init__() got an unexpected keyword argument 'version'
> Have I perhaps missed some necessary dependency?
> 
> Traceback is given below. I've tried the git version of ipython, and
> ipython 0.13.

"version" keyword seem to be deprecated even in 2.7, it might have been dropped in the version of python you use, so it a bug on our side. 
Could you open a github issue ?

http://hg.python.org/cpython/file/2.7/Lib/argparse.py
  1557         if version is not None:
  1558             import warnings
  1559             warnings.warn(
  1560                 """The "version" argument to ArgumentParser is deprecated. """
  1561                 """Please use """
  1562                 """"add_argument(..., action='version', version="N", ...)" """
  1563                 """instead""", DeprecationWarning) 

-- 
Matthias

> 
> 
> (ipythontest) andrew@wiki:~/ipythontest/bin$ ./ipython3
> Traceback (most recent call last):
>  File "./ipython3", line 9, in <module>
>    load_entry_point('ipython==0.14.dev', 'console_scripts', 'ipython3')()
>  File "/home/andrew/ipythontest/lib/python3.3/site-packages/distribute-0.6.28-py3.3.egg/pkg_resources.py",
> line 337, in load_entry_point
>    return get_distribution(dist).load_entry_point(group, name)
>  File "/home/andrew/ipythontest/lib/python3.3/site-packages/distribute-0.6.28-py3.3.egg/pkg_resources.py",
> line 2312, in load_entry_point
>    return ep.load()
>  File "/home/andrew/ipythontest/lib/python3.3/site-packages/distribute-0.6.28-py3.3.egg/pkg_resources.py",
> line 2018, in load
>    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
>  File "/home/andrew/ipythontest/lib/python3.3/site-packages/ipython-0.14.dev-py3.3.egg/IPython/__init__.py",
> line 46, in <module>
>    from .frontend.terminal.embed import embed
>  File "/home/andrew/ipythontest/lib/python3.3/site-packages/ipython-0.14.dev-py3.3.egg/IPython/frontend/terminal/embed.py",
> line 40, in <module>
>    from IPython.frontend.terminal.ipapp import load_default_config
>  File "/home/andrew/ipythontest/lib/python3.3/site-packages/ipython-0.14.dev-py3.3.egg/IPython/frontend/terminal/ipapp.py",
> line 46, in <module>
>    from IPython.core.magics import ScriptMagics
>  File "/home/andrew/ipythontest/lib/python3.3/site-packages/ipython-0.14.dev-py3.3.egg/IPython/core/magics/__init__.py",
> line 17, in <module>
>    from .basic import BasicMagics
>  File "/home/andrew/ipythontest/lib/python3.3/site-packages/ipython-0.14.dev-py3.3.egg/IPython/core/magics/basic.py",
> line 37, in <module>
>    class BasicMagics(Magics):
>  File "/home/andrew/ipythontest/lib/python3.3/site-packages/ipython-0.14.dev-py3.3.egg/IPython/core/magics/basic.py",
> line 61, in BasicMagics
>    def alias_magic(self, line=''):
>  File "/home/andrew/ipythontest/lib/python3.3/site-packages/ipython-0.14.dev-py3.3.egg/IPython/core/magic_arguments.py",
> line 173, in __call__
>    func.parser = construct_parser(func)
>  File "/home/andrew/ipythontest/lib/python3.3/site-packages/ipython-0.14.dev-py3.3.egg/IPython/core/magic_arguments.py",
> line 103, in construct_parser
>    parser = MagicArgumentParser(arg_name, **kwds)
>  File "/home/andrew/ipythontest/lib/python3.3/site-packages/ipython-0.14.dev-py3.3.egg/IPython/core/magic_arguments.py",
> line 82, in __init__
>    conflict_handler=conflict_handler, add_help=add_help)
> TypeError: __init__() got an unexpected keyword argument 'version'
> 
> 
> 
> 
> 
> Background:
> I'm running Debian squeeze, I installed the dependencies listed in the
> debian .dsc file for python 3 before doing a source install. That is,
> the following packages:
>    quilt autoconf libreadline6-dev libncursesw5-dev zlib1g-dev
> libdb4.8-dev tk8.5-dev blt-dev libssl-dev sharutils libbz2-dev
> libbluetooth-dev locales libsqlite3-dev libffi-dev mime-support
> libgpm2 netbase lsb-release bzip2 gdb
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user



More information about the IPython-User mailing list