Originally only sent to Frederic instead of the group


-------- Forwarded Message --------
Subject: Re: [sage-devel] Re: python3 : help needed
Date: Mon, 29 May 2017 10:00:25 +1200
From: François Bissey <francois.bis...@canterbury.ac.nz>
To: Frédéric Chapoton <fchapot...@gmail.com>

On 25/05/17 20:49, Frédéric Chapoton wrote:
ok, now with 8.0.b8, you can just do

"export SAGE_PYTHON3=yes"

and then "make build". This should succeed, with no error message.

Then try "./sage"

This fails with some traceback about not finding sage.repl.interpreter.

Once again, can *please* someone help to fix that ?


OK, in the last few days I finally executed a plan for sage-on-gentoo
to be able to build and sage for python2.7 and python3.6 at the same time.
The main obstacle to do that are pynac and brial. pynac being the hardest problem. I have been creative in a way that they cannot currently be ported back to sage proper. And of course it needs a PR
I already mentioned here to build at all with python3.

In any case I have a build, with documentation courtesy of the python2.7
part.

My build is dangerously based on volker's develop branch where he
merges tickets and tests them before releasing. So I have a number
of py3 tickets included beyond 8.0.beta8 but I don't include any other
tickets.

I hear how unicode will be a problem. Well when I try sage with python3
I crash like everyone else and my trace back ends up with
/usr/lib64/python3.6/site-packages/sage/misc/sageinspect.py in _sage_getdoc_unformatted(obj=<function CachedRepresentation.__classcall__>)
   1623
   1624     - William Stein
   1625     - extensions by Nick Alexander
   1626     """
   1627     if obj is None:
   1628         return ''
   1629     try:
   1630         r = obj.__doc__
   1631     except Exception:
   1632         return ''
   1633
   1634     # Check if the __doc__ attribute was actually a string, and
   1635     # not a 'getset_descriptor' or similar.
   1636     if not isinstance(r, string_types):
   1637         return ''
-> 1638     elif isinstance(r, unicode):
        global isinstance = undefined
r = '\n Construct a new object of this class or reuse an existing one.\n\n See also :class:`CachedRepresentation` and\n :class:`UniqueRepresent$
        global unicode = undefined
   1639         return r.encode('utf-8', 'ignore')
   1640     else:
   1641         return r
   1642
   1643
   1644 def sage_getdoc_original(obj):
   1645     r"""
   1646     Return the unformatted docstring associated to ``obj`` as a
   1647     string.
   1648
1649 If ``obj`` is a Cython object with an embedded position or signature in 1650 its docstring, the embedded information is stripped. If the stripped 1651 docstring is empty, then the stripped docstring of ``obj.__init__`` is
   1652     returned instead.
   1653

NameError: name 'unicode' is not defined


Francois

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to