AttributeError: type object 'sage.misc.lazy_import.LazyImport' has no attribute '__div__'

16 views
Skip to first unread message

Isuru Fernando

unread,
Jun 14, 2020, 2:29:59 PM6/14/20
to sage-devel, sage-pa...@googlegroups.com
I'm trying to package sage 9.1 for conda and I get this error with latest Cython 0.29.20

If I downgrade to Cython 0.29.12, the error goes away. Any ideas?

Isuru

François Bissey

unread,
Jun 14, 2020, 3:58:35 PM6/14/20
to sage-pa...@googlegroups.com
OK, I have just that yesterday on my dev branch for 9.2. I haven’t really looked
at it yet. Thanks for pointing python as the issue :)
> --
> You received this message because you are subscribed to the Google Groups "sage-packaging" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-packagin...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-packaging/CA%2B01voMQt6FMpbee7ic_%2B4BFbNHf3-Qd23Eb396cZfH_P1jreQ%40mail.gmail.com.

François Bissey

unread,
Jun 14, 2020, 3:59:56 PM6/14/20
to sage-pa...@googlegroups.com
python -> cython dumb spell checker at work

Isuru Fernando

unread,
Jun 14, 2020, 4:10:56 PM6/14/20
to sage-devel, sage-pa...@googlegroups.com
Here's the traceback.

Isuru

$sage -c 1+1
SageMath version 9.1, Release Date: 2020-05-20
Traceback (most recent call last):
  File "/home/conda/feedstock_root/build_artifacts/sagelib_1592119926566/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/sage-eval", line 4, in <module>
    from sage.all import *
  File "/home/conda/feedstock_root/build_artifacts/sagelib_1592119926566/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.6/site-packages/sage/all.py", line 117, in <module>
    import sage.misc.lazy_import
  File "sage/misc/lazy_import.pyx", line 1, in init sage.misc.lazy_import (build/cythonized/sage/misc/lazy_import.c:10174)
AttributeError: type object 'sage.misc.lazy_import.LazyImport' has no attribute '__div__'


nqn...@gmail.com

unread,
Jun 14, 2020, 4:46:02 PM6/14/20
to sage-packaging
El domingo, 14 de junio de 2020, 20:29:59 (UTC+2), Isuru Fernando escribió:
I'm trying to package sage 9.1 for conda and I get this error with latest Cython 0.29.20

If I downgrade to Cython 0.29.12, the error goes away. Any ideas?



Since python2 is no longer supported, I suppose all 'def __div__' can be dropped from pyx files, or replaced by __truediv__. Currently testing that. 

Antonio Rojas

unread,
Jun 15, 2020, 2:53:45 AM6/15/20
to sage-packaging
El domingo, 14 de junio de 2020, 22:46:02 (UTC+2), nqn...@gmail.com escribió:

Since python2 is no longer supported, I suppose all 'def __div__' can be dropped from pyx files, or replaced by __truediv__. Currently testing that. 

Dima Pasechnik

unread,
Jun 15, 2020, 4:23:58 AM6/15/20
to sage-packaging
Would you like to propose this fix on https://trac.sagemath.org/ticket/29861 ?

>
> --
> You received this message because you are subscribed to the Google Groups "sage-packaging" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-packagin...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-packaging/7e99b1a6-f515-4296-bf9f-50ae3e615315o%40googlegroups.com.

Antonio Rojas

unread,
Jun 15, 2020, 8:40:58 AM6/15/20
to sage-packaging
El lunes, 15 de junio de 2020, 10:23:58 (UTC+2), Dima Pasechnik escribió:

Would you like to propose this fix on https://trac.sagemath.org/ticket/29861 ?



 This is a big change that should be reviewed independent of the cython update IMO, so I've opened https://trac.sagemath.org/ticket/29867
Reply all
Reply to author
Forward
0 new messages