Skip to content

Installing in a python 3.3b2 or python 3.3rc1 virtual environment. #2343

@andrewspiers

Description

@andrewspiers

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.

(ipythontest) andrew@wiki:~/ipythontest/bin$ ./ipython3
Traceback (most recent call last):
File "./ipython3", line 9, in
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
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
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
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
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
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'

Matthias Bussonnier suggests:
"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.

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)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions