From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id EB5361381F3 for ; Tue, 13 Aug 2013 14:56:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D8B04E0A63; Tue, 13 Aug 2013 14:56:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 234BBE09E0 for ; Tue, 13 Aug 2013 14:56:53 +0000 (UTC) Received: from [192.168.0.10] (port-ip-213-211-226-81.reverse.mdcc-fun.de [213.211.226.81]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: tomka) by smtp.gentoo.org (Postfix) with ESMTPSA id 8081F33EB5A for ; Tue, 13 Aug 2013 14:56:51 +0000 (UTC) Message-ID: <520A4931.2040803@gentoo.org> Date: Tue, 13 Aug 2013 16:56:49 +0200 From: Thomas Kahle User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130629 Thunderbird/17.0.7 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-science@lists.gentoo.org Reply-to: gentoo-science@lists.gentoo.org MIME-Version: 1.0 To: gentoo-science@lists.gentoo.org Subject: [gentoo-science] sage and babel X-Enigmail-Version: 1.6a1pre Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2GUNTHCWLXJRNLTIOIOIK" X-Archives-Salt: 53a82736-0720-4666-a66a-ad2ce93c2968 X-Archives-Hash: 04b3c0bcf27657aabeacb8038ab04bf0 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2GUNTHCWLXJRNLTIOIOIK Content-Type: multipart/mixed; boundary="------------030003030901060701010301" This is a multi-part message in MIME format. --------------030003030901060701010301 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, recently my sage-on-gentoo started to crash on startup. Something is wrong with babel as can be seen in the end of the attached crash-report. Any ideas? Thanks, Thomas --=20 Thomas Kahle --------------030003030901060701010301 Content-Type: text/plain; charset=UTF-8; name="Sage_crash_report.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Sage_crash_report.txt" *************************************************************************= ** IPython post-mortem report {'commit_hash': '177894e', 'commit_source': 'installation', 'default_encoding': 'UTF-8', 'ipython_path': '/usr/lib64/python2.7/site-packages/IPython', 'ipython_version': '0.13.1', 'os_name': 'posix', 'platform': 'Linux-3.9.0-gentoo-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_= 2.50GHz-with-gentoo-2.2', 'sys_executable': '/usr/bin/python2.7', 'sys_platform': 'linux2', 'sys_version': '2.7.5 (default, Jul 2 2013, 15:56:57) \n[GCC 4.6.3]'} *************************************************************************= ** *************************************************************************= ** Crash traceback: -------------------------------------------------------------------------= -- ImportError Python 2.7.5: /usr/bin/python2= =2E7 Tue Aug 13 16:54:25 20= 13 A problem occured executing Python code. Here is the sequence of functio= n calls leading up to the error, with the most recent (innermost) call last= =2E /usr/bin/sage-ipython-python2.7 in () 1 #!/usr/bin/env python2.7 2 # -*- coding: utf-8 -*- 3 """ 4 Sage IPython startup script. 5 """ 6 from sage.misc.interpreter import SageTerminalApp 7=20 8 # Make sure we're using the Sage profile if one isn't specified. 9 import sys 10 if '--profile' not in sys.argv: 11 sys.argv.extend(['--profile', 'sage']) 12=20 13 app =3D SageTerminalApp.instance() ---> 14 app.initialize() global app.initialize =3D > 15 app.start() /usr/lib64/python2.7/site-packages/IPython/frontend/terminal/ipapp.pyc in= initialize(self=3D, argv=3D= None) /usr/lib64/python2.7/site-packages/IPython/config/application.pyc in catc= h_config_error(method=3D, app=3D, *args=3D(None,), **kwargs=3D{}) 69=20 70 #----------------------------------------------------------------= ------------- 71 # Application class 72 #----------------------------------------------------------------= ------------- 73=20 74 @decorator 75 def catch_config_error(method, app, *args, **kwargs): 76 """Method decorator for catching invalid config (Trait/Argume= ntErrors) during init. 77=20 78 On a TraitError (generally caused by bad config), this will p= rint the trait's 79 message, and exit the app. 80 =20 81 For use on init methods, to prevent invoking excepthook on in= valid input. 82 """ 83 try: ---> 84 return method(app, *args, **kwargs) method =3D app =3D args =3D (None,) kwargs =3D {} 85 except (TraitError, ArgumentError) as e: 86 app.print_description() 87 app.print_help() 88 app.print_examples() 89 app.log.fatal("Bad config encountered during initializati= on:") 90 app.log.fatal(str(e)) 91 app.log.debug("Config at the time: %s", app.config) 92 app.exit(1) 93=20 94=20 95 class ApplicationError(Exception): 96 pass 97=20 98=20 99 class Application(SingletonConfigurable): /usr/lib64/python2.7/site-packages/IPython/frontend/terminal/ipapp.pyc in= initialize(self=3D, argv=3D= None) 309 =20 310 @catch_config_error 311 def initialize(self, argv=3DNone): 312 """Do actions after construct, but before starting the ap= p.""" 313 super(TerminalIPythonApp, self).initialize(argv) 314 if self.subapp is not None: 315 # don't bother initializing further, starting subapp 316 return 317 if not self.ignore_old_config: 318 check_for_old_config(self.ipython_dir) 319 # print self.extra_args 320 if self.extra_args and not self.something_to_run: 321 self.file_to_run =3D self.extra_args[0] 322 self.init_path() 323 # create the shell --> 324 self.init_shell() self.init_shell =3D > 325 # and draw the banner 326 self.init_banner() 327 # Now a variety of things that happen after the banner is= printed. 328 self.init_gui_pylab() 329 self.init_extensions() 330 self.init_code() 331=20 332 def init_shell(self): 333 """initialize the InteractiveShell instance""" 334 # Create an InteractiveShell instance. 335 # shell.display_banner should always be False for the ter= minal 336 # based app, because we call shell.show_banner() by hand = below 337 # so the banner shows *before* all extension loading stuf= f. 338 self.shell =3D TerminalInteractiveShell.instance(config=3D= self.config, 339 display_banner=3DFalse, profile_dir=3Dsel= f.profile_dir, /usr/lib64/python2.7/site-packages/sage/misc/interpreter.pyc in init_shel= l(self=3D) 721 sage: from sage.misc.interpreter import SageTerminalA= pp, DEFAULT_SAGE_CONFIG 722 sage: app =3D SageTerminalApp(config=3DDEFAULT_SAGE_C= ONFIG) 723 sage: app.initialize(argv=3D[]) # indirect doctest 724 sage: app.shell 725 726 """ 727 # We need verbose crashes for the Sage crash handler. We= set it here 728 # so that we don't overwrite the traitlet attribute 729 self.verbose_crash =3D True 730=20 731 # Shell initialization 732 self.shell =3D SageInteractiveShell.instance(config=3Dsel= f.config, 733 display_banner=3DFalse, profile_dir=3Dsel= f.profile_dir, 734 ipython_dir=3Dself.ipython_dir) 735 self.shell.configurables.append(self) --> 736 self.shell.extension_manager.load_extension('sage.misc.sa= ge_extension') self.shell.extension_manager.load_extension =3D > /usr/lib64/python2.7/site-packages/IPython/core/extensions.pyc in load_ex= tension(self=3D, module_= str=3D'sage.misc.sage_extension') 75=20 76 def _on_ipython_dir_changed(self): 77 if not os.path.isdir(self.ipython_extension_dir): 78 os.makedirs(self.ipython_extension_dir, mode =3D 0777= ) 79=20 80 def load_extension(self, module_str): 81 """Load an IPython extension by its module name. 82=20 83 If :func:`load_ipython_extension` returns anything, this = function 84 will return that object. 85 """ 86 from IPython.utils.syspathcontext import prepended_to_sys= path 87=20 88 if module_str not in sys.modules: 89 with prepended_to_syspath(self.ipython_extension_dir)= : ---> 90 __import__(module_str) global __import__ =3D undefined module_str =3D 'sage.misc.sage_extension' 91 mod =3D sys.modules[module_str] 92 return self._call_load_ipython_extension(mod) 93=20 94 def unload_extension(self, module_str): 95 """Unload an IPython extension by its module name. 96=20 97 This function looks up the extension's name in ``sys.modu= les`` and 98 simply calls ``mod.unload_ipython_extension(self)``. 99 """ 100 if module_str in sys.modules: 101 mod =3D sys.modules[module_str] 102 self._call_unload_ipython_extension(mod) 103=20 104 def reload_extension(self, module_str): 105 """Reload an IPython extension by calling reload. /usr/lib64/python2.7/site-packages/sage/misc/sage_extension.py in () 35 2 36=20 37 In contrast, input to the ``%time`` magic command is preparsed:: 38=20 39 sage: shell.run_cell('%time 594.factor()') 40 CPU times: user ... 41 Wall time: ... 42 2 * 3^3 * 11 43 """ 44=20 45 from IPython.core.hooks import TryNext 46 from IPython.core.magic import Magics, magics_class, line_magic 47 import os 48 import sys 49 import sage ---> 50 import sage.all global sage.all =3D undefined 51 from sage.misc.interpreter import preparser 52 from sage.misc.preparser import preparse 53=20 54 @magics_class 55 class SageMagics(Magics): 56=20 57 @line_magic 58 def runfile(self, s): 59 r""" =20 60 Loads the code contained in the file ``s``. This is desig= ned 61 to be used from the command line as ``%runfile /path/to/f= ile``. 62=20 63 :param s: file to be loaded 64 :type s: string 65=20 /usr/lib64/python2.7/site-packages/sage/all.py in () 99 from sage.schemes.all import * 100 from sage.graphs.all import * 101 from sage.groups.all import * 102 from sage.databases.all import * 103 from sage.structure.all import * 104 from sage.categories.all import * 105 from sage.sets.all import * 106 from sage.probability.all import * 107 from sage.interfaces.all import * 108=20 109 from sage.symbolic.all import * 110=20 111 from sage.functions.all import * 112 from sage.calculus.all import * 113=20 --> 114 from sage.server.all import * global sage.server.all =3D undefined 115 import sage.tests.all as tests 116=20 117 from sage.crypto.all import * 118 import sage.crypto.mq as mq 119=20 120 from sage.plot.all import * 121 from sage.plot.plot3d.all import * 122=20 123 from sage.coding.all import * 124 from sage.combinat.all import * 125=20 126 from sage.lfunctions.all import * 127=20 128 from sage.geometry.all import * 129 from sage.geometry.triangulation.all import * /usr/lib64/python2.7/site-packages/sage/server/all.py in () 1 #from server1.all import * ----> 2 from notebook.all import * global notebook.all =3D undefined 3 from trac.all import * 4=20 /usr/lib64/python2.7/site-packages/sage/server/notebook/all.py in () 7 # http://www.gnu.org/licenses/ 8 #################################################################= ############ 9=20 10 #from sage_email import email 11=20 12 #from sagenb.notebook.notebook_object import notebook, inotebook 13=20 14 #from interact import interact, input_box, slider, range_slider, = selector, checkbox, input_grid, text_control 15=20 16 # We import the following two only for doctesting purposes 17 #import sage.server.notebook.notebook 18 #import sage.server.notebook.interact 19 #import sage.server.notebook.sage_email 20=20 21 # Import the new separated Sage notebook. ---> 22 from sagenb.notebook.all import * global sagenb.notebook.all =3D undefined /usr/lib64/python2.7/site-packages/sagenb/notebook/all.py in () 1 # -*- coding: utf-8 -* 2 """nodoctest 3 """ 4 #################################################################= ############ 5 # Copyright (C) 2007 William Stein 6 # Distributed under the terms of the GNU General Public License = (GPL) 7 # The full text of the GPL is available at: 8 # http://www.gnu.org/licenses/ 9 #################################################################= ############ 10=20 11 #from test_notebook import notebook_playback 12=20 13 from sage_email import email 14=20 ---> 15 from notebook_object import notebook, inotebook global notebook_object =3D undefined global notebook =3D undefined global inotebook =3D undefined 16=20 17 from interact import interact, input_box, slider, range_slider, s= elector, checkbox, input_grid, text_control, color_selector 18=20 19 # For doctesting. 20 import sagenb /usr/lib64/python2.7/site-packages/sagenb/notebook/notebook_object.py in = () 2 """nodoctest 3 Configure and Start a Notebook Server 4=20 5 The :class:`NotebookObject` is used to configure and launch a Sag= e 6 Notebook server. 7 """ 8 #################################################################= ############ 9 # Copyright (C) 2007 William Stein 10 # Distributed under the terms of the GNU General Public License = (GPL) 11 # The full text of the GPL is available at: 12 # http://www.gnu.org/licenses/ 13 #################################################################= ############ 14=20 15 import time, os, shutil, signal, tempfile 16=20 ---> 17 import notebook as _notebook global notebook =3D undefined global _notebook =3D undefined 18=20 19 import run_notebook 20=20 21 class NotebookObject: 22 r""" 23 Start the Sage Notebook server. More details about using the= se 24 options, as well as tips and tricks, may be available at `thi= s 25 Sage wiki page`_. If a notebook server is already running in= the 26 directory, this will open a browser to the running notebook. 27=20 28 INPUT: 29=20 30 - ``directory`` -- string; directory that contains the Sa= ge 31 notebook files; the default is 32 ``.sage/sage_notebook.sagenb``, in your home directory.= /usr/lib64/python2.7/site-packages/sagenb/notebook/notebook.py in () 24 import random 25 import re 26 import shutil 27 import socket 28 import time 29 import bz2 30 import cPickle 31 from cgi import escape 32=20 33=20 34 # Sage libraries 35 from sagenb.misc.misc import (pad_zeros, cputime, tmp_dir, load, = save, 36 ignore_nonexistent_files, unicode_s= tr) 37=20 38 # Sage Notebook ---> 39 from . import css # style global css =3D undefined 40 from . import js # javascript 41 from . import worksheet # individual worksheets (which make up= a notebook) 42 from . import config # internal configuration stuff (curren= tly, just keycodes) 43 from . import keyboards # keyboard layouts 44 from . import server_conf # server configuration 45 from . import user_conf # user configuration 46 from . import user # users 47 from template import template, prettify_time_ago 48 from flaskext.babel import gettext, lazy_gettext 49=20 50 try: 51 # sage is installed 52 import sage 53 # [(string: name, bool: optional)] 54 SYSTEMS =3D [('sage', False), /usr/lib64/python2.7/site-packages/sagenb/notebook/css.py in () 2 """nodoctest 3 Notebook Stylesheets (CSS) 4 """ 5=20 6=20 7 #################################################################= ############ 8 # Copyright (C) 2007 William Stein 9 # Distributed under the terms of the GNU General Public License = (GPL) 10 # The full text of the GPL is available at: 11 # http://www.gnu.org/licenses/ 12 #################################################################= ############ 13=20 14 import os 15=20 16 from sagenb.misc.misc import DOT_SAGENB ---> 17 from sagenb.notebook.template import template global sagenb.notebook.template =3D undefined global template =3D undefined 18 from hashlib import sha1 19=20 20 _css_cache =3D None 21 def css(color=3D'default'): 22 r""" 23 Return the CSS header used by the Sage Notebook. 24 =20 25 INPUT: 26 =20 27 =20 28 - ``color`` - string or pair of html colors, e.g., 29 'gmail' 'grey' ``('#ff0000', '#0000ff')`` 30 =20 31 =20 32 EXAMPLES:: /usr/lib64/python2.7/site-packages/sagenb/notebook/template.py in () 9 - Timothy Clemans and Mike Hansen (2008-10-27): major update 10 """ 11 #################################################################= ############ 12 # Copyright (C) 2007 William Stein 13 # Distributed under the terms of the GNU General Public License = (GPL) 14 # The full text of the GPL is available at: 15 # http://www.gnu.org/licenses/ 16 #################################################################= ############ 17=20 18 import jinja2 19=20 20 import os, re, sys, json 21=20 22 from sagenb.misc.misc import SAGE_VERSION, DATA, unicode_str 23 from sagenb.notebook.cell import number_of_rows ---> 24 from flaskext.babel import gettext, ngettext, lazy_gettext global flaskext.babel =3D undefined global gettext =3D undefined global ngettext =3D undefined global lazy_gettext =3D undefined 25=20 26 if os.environ.has_key('SAGENB_TEMPLATE_PATH'): 27 if not os.path.isdir(os.environ['SAGENB_TEMPLATE_PATH']): 28 raise ValueError("Enviromental variable SAGENB_TEMPLATE_P= ATH points to\ 29 a non-existant directory") 30 TEMPLATE_PATH =3D os.environ['SAGENB_TEMPLATE_PATH'] 31 else: 32 TEMPLATE_PATH =3D os.path.join(DATA, 'sage') 33 env =3D jinja2.Environment(loader=3Djinja2.FileSystemLoader(TEMPL= ATE_PATH)) 34=20 35 css_illegal_re =3D re.compile(r'[^-A-Za-z_0-9]') 36=20 37 def css_escape(string): 38 r""" 39 Returns a string with all characters not legal in a css name ImportError: No module named babel *************************************************************************= ** History of session input: *** Last line of input (may not be in above history): --------------030003030901060701010301-- ------enig2GUNTHCWLXJRNLTIOIOIK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iJwEAQEIAAYFAlIKSTIACgkQQYXt1pFHaaF6GQP8Dy9AfFFS7LBqG1FTNNvYo9HR wZn/5nJZzJia52t5M9QCediC9f3ayXqq8k0GNYh7CuSckf7EdT1/067S4Ev+y4bG yBMvtPwJ5yxdfJu+MtHgQYGGh3yrKuuE5p9CaDwPsOsNZiCdHCyoauP9kM/9B5eC rd3Z5pT7MdnTiM18smU= =D8q0 -----END PGP SIGNATURE----- ------enig2GUNTHCWLXJRNLTIOIOIK--