Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
sage_jsmath_macros_easy
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Roe  
View profile  
 More options Sep 18 2010, 11:28 pm
From: David Roe <r...@math.harvard.edu>
Date: Sat, 18 Sep 2010 23:28:07 -0400
Local: Sat, Sep 18 2010 11:28 pm
Subject: sage_jsmath_macros_easy

Recently I've been running into "NameError: name 'sage_jsmath_macros_easy'
is not defined" whenever I make a mistake that generates an error during
sage's import.  I tracked this down to the following section of code in
sagenb.misc.misc:

try:
    import sage.all
    from sage.misc.latex_macros import sage_jsmath_macros_easy
except ImportError:
    sage_jsmath_macros_easy = [
    ...
    ]
finally:
    jsmath_macros = ',\n'.join(sage_jsmath_macros_easy)

So if you generate an error that's not an ImportError, it's covered up by
this code: instead you get a name error.  An obvious fix is to add a block

except Exception:
    sage_jsmath_macros_easy = []
    raise

before the finally.  I haven't been involved with committing code to sagenb;
can someone who has comment on this?
David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »