SageNB broken because of stmp???

59 views
Skip to first unread message

Jori Mäntysalo (TAU)

unread,
Nov 23, 2019, 9:13:50 AM11/23/19
to sage-...@googlegroups.com
I did a fresh install, i.e. start from git clone
git://github.com/sagemath/sage.git and so on. Sage starts and I can start
jupyter also. However ./sage --notebook=sagenb says

DeprecationWarning: the imp module is deprecated in favour of importlib;
see the module's documentation for alternative uses
import imp
Traceback (most recent call last):
. . .
from twisted.mail import smtp, relaymanager # problematic with python 3
ImportError: cannot import name 'smtp' from 'twisted.mail' (unknown
location)

So have we broken sagenb totally when moving to Python 3?

--
Jori Mäntysalo

Tampereen yliopisto - Ihminen ratkaisee

Dima Pasechnik

unread,
Nov 23, 2019, 9:16:51 AM11/23/19
to sage-devel
Sagenb is not going to work under python3



--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/alpine.DEB.2.21.9999.1911231609500.101837%40shell.sis.uta.fi.

Frédéric Chapoton

unread,
Nov 23, 2019, 12:10:53 PM11/23/19
to sage-devel
Yes. No sagenb in Python3.

The current stumbling point is that sagenb uses twisted and twisted is not py3 compatible, despite pretending to be so.

I did make some lonely efforts to make sagenb work with py3. This stopped on the error message that you give.

Frederic

Dima Pasechnik

unread,
Nov 23, 2019, 12:31:58 PM11/23/19
to sage-devel
On Sat, Nov 23, 2019 at 5:10 PM Frédéric Chapoton <fchap...@gmail.com> wrote:
>
> Yes. No sagenb in Python3.
>
> The current stumbling point is that sagenb uses twisted and twisted is not py3 compatible, despite pretending to be so.

We are on twisted version 16, which is more than 3 years old. The
current one is 19, and there were major API changes since then, so the
porting needs a serious effort.
https://github.com/twisted/twisted/releases



>
> I did make some lonely efforts to make sagenb work with py3. This stopped on the error message that you give.
>
> Frederic
>
> Le samedi 23 novembre 2019 15:13:50 UTC+1, Jori Mäntysalo (TAU) a écrit :
>>
>> I did a fresh install, i.e. start from git clone
>> git://github.com/sagemath/sage.git and so on. Sage starts and I can start
>> jupyter also. However ./sage --notebook=sagenb says
>>
>> DeprecationWarning: the imp module is deprecated in favour of importlib;
>> see the module's documentation for alternative uses
>> import imp
>> Traceback (most recent call last):
>> . . .
>> from twisted.mail import smtp, relaymanager # problematic with python 3
>> ImportError: cannot import name 'smtp' from 'twisted.mail' (unknown
>> location)
>>
>> So have we broken sagenb totally when moving to Python 3?
>>
>> --
>> Jori Mäntysalo
>>
>> Tampereen yliopisto - Ihminen ratkaisee
>
> --
> 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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/879b6b57-8c37-456c-bb96-25b610ea1c7a%40googlegroups.com.

Jori Mäntysalo (TAU)

unread,
Nov 23, 2019, 12:44:21 PM11/23/19
to sage-devel
On Sat, 23 Nov 2019, Frédéric Chapoton wrote:

> The current stumbling point is that sagenb uses twisted and twisted is not
> py3 compatible, despite pretending to be so.

OK. I opened #28792 for better error message. Also I suppose we must
change documentation.
Reply all
Reply to author
Forward
0 new messages