Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #15972: IPython ProfileDirError if IPython was never run
The following fails if IPython was never run before: {{{ ./sage -t src/sage/misc/ascii_art.py ********************************************************************** File "src/sage/misc/ascii_art.py", line 42, in sage.misc.ascii_art Failed example: shell = get_test_shell() Exception raised: Traceback (most recent call last): File "/usr/local/src/sage-config/local/lib/python2.7/site- packages/sage/doctest/forker.py", line 480, in _run self.execute(example, compiled, test.globs) File "/usr/local/src/sage-config/local/lib/python2.7/site- packages/sage/doctest/forker.py", line 839, in execute exec compiled in globs File "<doctest sage.misc.ascii_art[6]>", line 1, in <module> shell = get_test_shell() File "/usr/local/src/sage-config/local/lib/python2.7/site- packages/sage/misc/interpreter.py", line 549, in get_test_shell app.initialize(argv=[]) File "<string>", line 2, in initialize File "/usr/local/src/sage-config/local/lib/python2.7/site- packages/IPython/config/application.py", line 89, in catch_config_error return method(app, *args, **kwargs) File "/usr/local/src/sage-config/local/lib/python2.7/site- packages/IPython/terminal/ipapp.py", line 312, in initialize super(TerminalIPythonApp, self).initialize(argv) File "<string>", line 2, in initialize File "/usr/local/src/sage-config/local/lib/python2.7/site- packages/IPython/config/application.py", line 89, in catch_config_error return method(app, *args, **kwargs) File "/usr/local/src/sage-config/local/lib/python2.7/site- packages/IPython/core/application.py", line 381, in initialize self.load_config_file() File "/usr/local/src/sage-config/local/lib/python2.7/site- packages/sage/misc/interpreter.py", line 626, in load_config_file get_ipython_dir(), 'sage').location File "/usr/local/src/sage-config/local/lib/python2.7/site- packages/IPython/core/profiledir.py", line 242, in find_profile_dir_by_name raise ProfileDirError('Profile directory not found in paths: %s' % dirname) ProfileDirError: Profile directory not found in paths: profile_sage ********************************************************************** }}} Running `./sage` once fixes this problem but the following always fails: {{{ ./sage --nodotsage -t src/sage/misc/ascii_art.py }}} URL: http://trac.sagemath.org/15972 Reported by: jdemeyer Ticket author(s): John Palmieri Reviewer(s): Volker Braun
- Loading branch information