#18816: gd does not build after relocation
-------------------------+-------------------------------------------------
       Reporter:  ayyer  |        Owner:
           Type:  task   |       Status:  needs_info
       Priority:  major  |    Milestone:  sage-6.8
      Component:         |   Resolution:
  relocation             |    Merged in:
       Keywords:         |    Reviewers:  Jeroen Demeyer, Arvind Ayyer,
        Authors:         |  Karl-Dieter Crisman
Report Upstream:  N/A    |  Work issues:
         Branch:         |       Commit:
   Dependencies:         |     Stopgaps:
-------------------------+-------------------------------------------------

Comment (by ayyer):

 Replying to [comment:16 ayyer]:
 > ''make distclean'' followed by ''make start'' did the trick. Thanks
 everyone. How do I mark that this ticket is solved?

 Oops! Question-mark help does not work within ''sage'' anymore. Could you
 help me fix this? I find this feature extremely useful. Thanks. If you
 like, I can open this as a separate ticket. ''search_src()'' works
 properly though.

 Here is the error I get.
 {{{
 sage: Matrix?
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)
 <ipython-input-80-23e6d2b8ac07> in <module>()
 ----> 1 get_ipython().magic(u'pinfo Matrix')

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s)
    2305         magic_name, _, magic_arg_s = arg_s.partition(' ')
    2306         magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
 -> 2307         return self.run_line_magic(magic_name, magic_arg_s)
    2308
    2309
 #-------------------------------------------------------------------------

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/IPython/core/interactiveshell.pyc in run_line_magic(self,
 magic_name, line)
    2226                 kwargs['local_ns'] =
 sys._getframe(stack_depth).f_locals
    2227             with self.builtin_trap:
 -> 2228                 result = fn(*args,**kwargs)
    2229             return result
    2230

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/IPython/core/magics/namespace.pyc in pinfo(self,
 parameter_s, namespaces)

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/IPython/core/magic.pyc in <lambda>(f, *a, **k)
     191     # but it's overkill for just that one bit of state.
     192     def magic_deco(arg):
 --> 193         call = lambda f, *a, **k: f(*a, **k)
     194
     195         if callable(arg):

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/IPython/core/magics/namespace.pyc in pinfo(self,
 parameter_s, namespaces)
      59         else:
      60             self.shell._inspect('pinfo', oname,
 detail_level=detail_level,
 ---> 61                                 namespaces=namespaces)
      62
      63     @line_magic

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/IPython/core/interactiveshell.pyc in _inspect(self, meth,
 oname, namespaces, **kw)
    1570                 pmethod(info.obj, oname, formatter)
    1571             elif meth == 'pinfo':
 -> 1572                 pmethod(info.obj, oname, formatter, info, **kw)
    1573             else:
    1574                 pmethod(info.obj, oname)

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/IPython/core/oinspect.pyc in pinfo(self, obj, oname,
 formatter, info, detail_level)
     647         - detail_level: if set to 1, more information is given.
     648         """
 --> 649         text = self._format_info(obj, oname, formatter, info,
 detail_level)
     650         if text:
     651             page.page(text)

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/IPython/core/oinspect.pyc in _format_info(self, obj, oname,
 formatter, info, detail_level)
     560         """Format an info dict as text"""
     561         info = self.info(obj, oname=oname, formatter=formatter,
 --> 562                             info=info, detail_level=detail_level)
     563         displayfields = []
     564         def add_fields(fields):

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/IPython/core/oinspect.pyc in info(self, obj, oname,
 formatter, info, detail_level)
     689                     ds += "\nDocstring:\n" + obj.__doc__
     690         else:
 --> 691             ds = getdoc(obj)
     692             if ds is None:
     693                 ds = '<no docstring>'

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/sage/misc/sageinspect.pyc in sage_getdoc(obj, obj_name,
 embedded_override)
    1758         return ''
    1759     r = sage_getdoc_original(obj)
 -> 1760     s = sage.misc.sagedoc.format(r, embedded=(embedded_override or
 EMBEDDED_MODE))
    1761
    1762     # Fix object naming

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/sage/misc/sagedoc.pyc in format(s, embedded)
     555             s = process_mathtt(s)
     556         s = process_extlinks(s, embedded=embedded)
 --> 557         s = detex(s, embedded=embedded)
     558     return s
     559

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/sage/misc/sagedoc.pyc in detex(s, embedded)
     216         s = _rmcmd(s, 'mathrm')
     217         from sagenb.misc.sphinxify import sphinxify
 --> 218         s = sphinxify(s, format='text')
     219         # Do math substitutions. The strings to be replaced should
 be
     220         # TeX commands like "\\blah". Do a regular expression

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/sagenb-0.11.4-py2.7.egg/sagenb/misc/sphinxify.py in
 sphinxify(docstring, format)
      86     global Sphinx
      87     if not Sphinx:
 ---> 88         from sphinx.application import Sphinx
      89
      90     srcdir = mkdtemp()

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/Sphinx-1.2.2-py2.7.egg/sphinx/application.py in <module>()
      20
      21 from docutils import nodes
 ---> 22 from docutils.parsers.rst import convert_directive_function, \
      23      directives, roles
      24

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/docutils/parsers/rst/__init__.py in <module>()
      72
      73 import docutils.parsers
 ---> 74 import docutils.statemachine
      75 from docutils.parsers.rst import states
      76 from docutils import frontend, nodes, Component

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/docutils/statemachine.py in <module>()
     111 import types
     112 import unicodedata
 --> 113 from docutils import utils
     114 from docutils.utils.error_reporting import ErrorOutput
     115

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/docutils/utils/__init__.py in <module>()
      18 from docutils import ApplicationError, DataError
      19 from docutils import nodes
 ---> 20 import docutils.io
      21 from docutils.utils.error_reporting import ErrorOutput, SafeString
      22

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/docutils/io.py in <module>()
      16 from docutils import TransformSpec
      17 from docutils._compat import b
 ---> 18 from docutils.utils.error_reporting import locale_encoding,
 ErrorString, ErrorOutput
      19
      20

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7
 /site-packages/docutils/utils/error_reporting.py in <module>()
      45     locale_encoding = None
      46 else:
 ---> 47     locale_encoding = locale.getlocale()[1] or
 locale.getdefaultlocale()[1]
      48     # locale.getpreferredencoding([do_setlocale=True|False])
      49     # has side-effects | might return a wrong guess.

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python/locale.pyc
 in getdefaultlocale(envvars)
     541     else:
     542         localename = 'C'
 --> 543     return _parse_localename(localename)
     544
     545

 /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python/locale.pyc
 in _parse_localename(localename)
     473     elif code == 'C':
     474         return None, None
 --> 475     raise ValueError, 'unknown locale: %s' % localename
     476
     477 def _build_localename(localetuple):

 ValueError: unknown locale: UTF-8
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/18816#comment:23>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to