ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 31 Oct 2010 00:55:19 +0200ImportError after (apparently peaceful) installationhttps://ask.sagemath.org/question/7747/importerror-after-apparently-peaceful-installation/Howdy all,
After install of 10.04 64bit ubuntu (with your help), upon first invocations sage reports: ImportError.
Here is the trace back:
__import__(modname)
import sage.all_cmdline
from sage.all import *
from sage.databases.all import *
from symbolic_data import SymbolicData
from xml.dom.minidom import parse
from xml.dom.xmlbuilder import DOMImplementationLS, DocumentLS
ImportError: cannot import name DOMImplementationLS. Error importing ipy_profile_sage - perhaps you should run %upgrade? WARNING: Loading of ipy_profile_sage failed.
<<well, yes, I followed the Sage advise and ran %upgrade, and got the same results. And, if I disregard all the error messages and proceed to something like:
sage: 3+4
NameError: name 'Integer' is not defined. >> Suggestions??Sat, 30 Oct 2010 20:42:46 +0200https://ask.sagemath.org/question/7747/importerror-after-apparently-peaceful-installation/Comment by ccanonc for <p>Howdy all,</p>
<p>After install of 10.04 64bit ubuntu (with your help), upon first invocations sage reports: ImportError.
Here is the trace back:</p>
<p>__import__(modname)</p>
<p>import sage.all_cmdline</p>
<p>from sage.all import *</p>
<p>from sage.databases.all import *</p>
<p>from symbolic_data import SymbolicData</p>
<p>from xml.dom.minidom import parse</p>
<p>from xml.dom.xmlbuilder import DOMImplementationLS, DocumentLS</p>
<p>ImportError: cannot import name DOMImplementationLS. Error importing ipy_profile_sage - perhaps you should run %upgrade? WARNING: Loading of ipy_profile_sage failed.</p>
<p><<well, yes,="" i="" followed="" the="" sage="" advise="" and="" ran="" %upgrade,="" and="" got="" the="" same="" results.="" and,="" if="" i="" disregard="" all="" the="" error="" messages="" and="" proceed="" to="" something="" like:<="" p="">
</p><p>sage: 3+4</p>
<p>NameError: name 'Integer' is not defined. >> Suggestions??</p>
https://ask.sagemath.org/question/7747/importerror-after-apparently-peaceful-installation/?comment=22528#post-id-22528Are you running "./sage" or "./sage -n"?Sat, 30 Oct 2010 21:26:59 +0200https://ask.sagemath.org/question/7747/importerror-after-apparently-peaceful-installation/?comment=22528#post-id-22528Answer by Bill M for <p>Howdy all,</p>
<p>After install of 10.04 64bit ubuntu (with your help), upon first invocations sage reports: ImportError.
Here is the trace back:</p>
<p>__import__(modname)</p>
<p>import sage.all_cmdline</p>
<p>from sage.all import *</p>
<p>from sage.databases.all import *</p>
<p>from symbolic_data import SymbolicData</p>
<p>from xml.dom.minidom import parse</p>
<p>from xml.dom.xmlbuilder import DOMImplementationLS, DocumentLS</p>
<p>ImportError: cannot import name DOMImplementationLS. Error importing ipy_profile_sage - perhaps you should run %upgrade? WARNING: Loading of ipy_profile_sage failed.</p>
<p><<well, yes,="" i="" followed="" the="" sage="" advise="" and="" ran="" %upgrade,="" and="" got="" the="" same="" results.="" and,="" if="" i="" disregard="" all="" the="" error="" messages="" and="" proceed="" to="" something="" like:<="" p="">
</p><p>sage: 3+4</p>
<p>NameError: name 'Integer' is not defined. >> Suggestions??</p>
https://ask.sagemath.org/question/7747/importerror-after-apparently-peaceful-installation/?answer=11763#post-id-11763Well, I re-downloaded and re-installed, [ based on the sound Alice-in-Wonderland principle that anything I can do the same way three times ... must be true ] and waited patiently, and ... it now all seems to work!
So, unfortunately I cannot claim to have augmented the field of useful installation knowledge to any great extent. But, as they have told me in a previous life in Samoa: "thank you, all, for your patience".
-Bill.
Sat, 30 Oct 2010 23:46:55 +0200https://ask.sagemath.org/question/7747/importerror-after-apparently-peaceful-installation/?answer=11763#post-id-11763Comment by ccanonc for <p>Well, I re-downloaded and re-installed, [ based on the sound Alice-in-Wonderland principle that anything I can do the same way three times ... must be true ] and waited patiently, and ... it now all seems to work!</p>
<p>So, unfortunately I cannot claim to have augmented the field of useful installation knowledge to any great extent. But, as they have told me in a previous life in Samoa: "thank you, all, for your patience".</p>
<p>-Bill.</p>
https://ask.sagemath.org/question/7747/importerror-after-apparently-peaceful-installation/?comment=22526#post-id-22526The above command is DESTRUCTIVE, so use with care....backup first.Sun, 31 Oct 2010 00:55:19 +0200https://ask.sagemath.org/question/7747/importerror-after-apparently-peaceful-installation/?comment=22526#post-id-22526Comment by ccanonc for <p>Well, I re-downloaded and re-installed, [ based on the sound Alice-in-Wonderland principle that anything I can do the same way three times ... must be true ] and waited patiently, and ... it now all seems to work!</p>
<p>So, unfortunately I cannot claim to have augmented the field of useful installation knowledge to any great extent. But, as they have told me in a previous life in Samoa: "thank you, all, for your patience".</p>
<p>-Bill.</p>
https://ask.sagemath.org/question/7747/importerror-after-apparently-peaceful-installation/?comment=22527#post-id-22527If you can move your OS to another drive, you might want to check for bad blocks on your current one. "sudo badblocks -wst random /dev/sd_"Sun, 31 Oct 2010 00:54:45 +0200https://ask.sagemath.org/question/7747/importerror-after-apparently-peaceful-installation/?comment=22527#post-id-22527