Opened 12 years ago

#273 new defect

Problem with ASAP on Fedora 17 or iPython > 0.10

Reported by: Simon Ellingsen Owned by: Malte Marquarding
Priority: normal Milestone: Unified development
Component: python Version: 2.0
Severity: blocker Keywords:
Cc:

Description

I've been trying to get ASAP to work on Fedora 17. I have built it without errors

but cannot run it because of changes to ipython (from version 0.11 onwards). I have asap runing ok with Fedora 16 with ipython version 0.10. However when I update ipython in Fedora 16 asap stops working.

The output from the Fedora 17 is as follows:

running asap results in the following output:

[admin@maths14 ~]$ asap

Loading ASAP... RUNNING->/usr/bin/ipython-ipythondir /home/admin/.asap usage: ipython [-h] [--profile TERMINALIPYTHONAPP.PROFILE]

[-c TERMINALIPYTHONAPP.CODE_TO_RUN] [--pylab [TERMINALIPYTHONAPP.PYLAB]] [--autocall TERMINALINTERACTIVESHELL.AUTOCALL] [--ipython-dir TERMINALIPYTHONAPP.IPYTHON_DIR] [--gui TERMINALIPYTHONAPP.GUI] [--logappend TERMINALINTERACTIVESHELL.LOGAPPEND] [--colors TERMINALINTERACTIVESHELL.COLORS] [--log-level TERMINALIPYTHONAPP.LOG_LEVEL] [--ext TERMINALIPYTHONAPP.EXTRA_EXTENSION] [--cache-size TERMINALINTERACTIVESHELL.CACHE_SIZE] [--logfile TERMINALINTERACTIVESHELL.LOGFILE] [--no-autoindent] [--pprint] [--classic] [--term-title] [--no-confirm-exit] [--autoindent] [--no-term-title] [--deep-reload] [--color-info] [--init] [--pydb] [--no-color-info] [--autoedit-syntax] [--confirm-exit] [--no-autoedit-syntax] [--quick] [--banner] [--automagic] [--no-automagic] [--nosep] [-i] [--quiet] [--no-deep-reload] [--no-pdb] [--debug] [--pdb] [--no-pprint] [--no-banner]

ipython: error: argument -i/--i: ignored explicit argument u'pythondir' [admin@maths14 ~]$

Changing the call to ipython and the asap script as follows:

#$ip -ipythondir "${HOME}/.asap" $* $ip --ipython-dir="${HOME}/.asap" $*

results in the following message:

[admin@maths14 ~]$ asap

Loading ASAP... RUNNING->/usr/bin/ipython-ipythondir /home/admin/.asap /usr/lib/python2.7/site-packages/IPython/utils/path.py:417: UserWarning?: Found old IPython config file u'/home/admin/.asap/ipy_user_conf.py' (modified by user)

warnings.warn("Found old IPython config file %r (modified by user)"%f)

/usr/lib/python2.7/site-packages/IPython/utils/path.py:417: UserWarning?: Found old IPython config file u'/home/admin/.asap/ipythonrc' (modified by user)

warnings.warn("Found old IPython config file %r (modified by user)"%f)

/usr/lib/python2.7/site-packages/IPython/utils/path.py:429: UserWarning?:

The IPython configuration system has changed as of 0.11, and these files will be ignored. See http://ipython.github.com/ipython-doc/dev/config for details of the new config system. To start configuring IPython, do ipython profile create, and edit ipython_config.py in <ipython_dir>/profile_default. If you need to leave the old config files in place for an older version of IPython and want to suppress this warning message, set c.InteractiveShellApp.ignore_old_config=True in the new config. c.InteractiveShellApp.ignore_old_config=True in the new config.""")

Python 2.7.3 (default, Apr 30 2012, 21:18:11) Type "copyright", "credits" or "license" for more information.

IPython 0.12 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.

In [1]:

It looks like the ipy_user_conf.py file needs to be changed to the new format for ipython versions >=0.11

Change History (0)

Note: See TracTickets for help on using tickets.