#13669: sage -gdb ImportError
--------------------------------+-------------------------------------------
Reporter: vbraun | Owner: leif
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.5
Component: scripts | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Volker Braun | Merged in:
Dependencies: | Stopgaps:
--------------------------------+-------------------------------------------
Changes (by vbraun):
* cc: jdemeyer (added)
* status: new => needs_review
Old description:
> I get the following with sage-5.4.rc2:
> {{{
> [patchbot@volker-desktop sage-5.4.rc2]$ ./sage -gdb
> ----------------------------------------------------------------------
> | Sage Version 5.4.rc2, Release Date: 2012-10-18 |
> | Type "notebook()" for the browser-based notebook interface. |
> | Type "help()" for help. |
> ----------------------------------------------------------------------
> **********************************************************************
> * *
> * Warning: this is a prerelease version, and it may be unstable. *
> * *
> **********************************************************************
> /mnt/storage2TB/patchbot/Sage/sage-5.4.rc2/local/bin/sage-ipython
> GNU gdb (GDB) Fedora (7.4.50.20120120-52.fc17)
> Copyright (C) 2012 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show
> copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-redhat-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from
> /mnt/storage2TB/patchbot/Sage/sage-5.4.rc2/local/bin/python...done.
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib64/libthread_db.so.1".
> Python 2.7.3 (default, Oct 30 2012, 10:13:41)
> [GCC 4.7.2 20120921 (Red Hat 4.7.2-2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> ---------------------------------------------------------------------------
> ImportError Traceback (most recent call
> last)
>
> /mnt/storage2TB/patchbot/Sage/sage-5.4.rc2/local/lib/python2.7/site-
> packages/IPython/ipmaker.pyc in force_import(modname, force_reload)
> 61 reload(sys.modules[modname])
> 62 else:
> ---> 63 __import__(modname)
> 64
> 65
>
> ImportError: No module named ipy_profile_sage
> Error importing ipy_profile_sage - perhaps you should run %upgrade?
> WARNING: Loading of ipy_profile_sage failed.
>
> sage:
> }}}
New description:
I get the following with sage-5.4.rc2:
{{{
[patchbot@volker-desktop sage-5.4.rc2]$ ./sage -gdb
----------------------------------------------------------------------
| Sage Version 5.4.rc2, Release Date: 2012-10-18 |
| Type "notebook()" for the browser-based notebook interface. |
| Type "help()" for help. |
----------------------------------------------------------------------
**********************************************************************
* *
* Warning: this is a prerelease version, and it may be unstable. *
* *
**********************************************************************
/mnt/storage2TB/patchbot/Sage/sage-5.4.rc2/local/bin/sage-ipython
GNU gdb (GDB) Fedora (7.4.50.20120120-52.fc17)
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/mnt/storage2TB/patchbot/Sage/sage-5.4.rc2/local/bin/python...done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Python 2.7.3 (default, Oct 30 2012, 10:13:41)
[GCC 4.7.2 20120921 (Red Hat 4.7.2-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
---------------------------------------------------------------------------
ImportError Traceback (most recent call
last)
/mnt/storage2TB/patchbot/Sage/sage-5.4.rc2/local/lib/python2.7/site-
packages/IPython/ipmaker.pyc in force_import(modname, force_reload)
61 reload(sys.modules[modname])
62 else:
---> 63 __import__(modname)
64
65
ImportError: No module named ipy_profile_sage
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.
sage:
}}}
Apply
* [attachment:trac_13669_fix_sage_gdb.patch] to the `SAGE_ROOT` repo,
* [attachment:trac_13669_bin_remove_sage-gdb.patch] to the `local/bin`
repo.
--
Comment:
The patch rewires `sage -gdb` to use `local/bin/sage-ipython`, so the
behavior will match the standard sage behavior more closely.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13669#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.