Ah yes, I think this might be due to the fact that __div__ is not a special slot in python3 anymore. Apparently cython 0.29.20 doesn't cover this up anymore, so probably the code discovers it doesn't have anywhere to stick the "__div__" method that's defined on LazyImport" Since 9.2 onwards doesn't need to maintain compatibility with py2, we can get rid of this __div__ method. Possibly it should be replaced with wrappers for the other div methods that have taken its place.
So, while LazyImport gets abused quite a bit in sage, the bug you ran into is probably not due to that (given that the errorsite is the actual import of LazyImport) On Sunday, June 14, 2020 at 1:10:59 PM UTC-7, Isuru Fernando wrote: > > 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__' > > > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/6f009e0b-b6eb-4bad-9892-d9690500de38o%40googlegroups.com.