>>> import sage
>>> import sage.all
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/aaronmeurer/anaconda3/envs/python2/lib/python2.7/site-packages/sage/all.py", line 87, in <module>
from sage.misc.all import * # takes a while
File "/Users/aaronmeurer/anaconda3/envs/python2/lib/python2.7/site-packages/sage/misc/all.py", line 84, in <module>
from .functional import (additive_order,
File "/Users/aaronmeurer/anaconda3/envs/python2/lib/python2.7/site-packages/sage/misc/functional.py", line 27, in <module>
from sage.rings.complex_double import CDF
File "sage/rings/complex_double.pyx", line 1, in init sage.rings.complex_double
File "sage/rings/ring.pyx", line 1, in init sage.rings.ring
File "sage/structure/parent_gens.pyx", line 1, in init sage.structure.parent_gens
File "sage/structure/parent_base.pyx", line 1, in init sage.structure.parent_base
File "sage/structure/parent_old.pyx", line 1, in init sage.structure.parent_old
File "sage/structure/parent.pyx", line 1, in init sage.structure.parent
File "sage/structure/category_object.pyx", line 62, in init sage.structure.category_object
File "/Users/aaronmeurer/anaconda3/envs/python2/lib/python2.7/site-packages/sage/categories/category.py", line 107, in <module>
from sage.misc.unknown import Unknown
File "/Users/aaronmeurer/anaconda3/envs/python2/lib/python2.7/site-packages/sage/misc/unknown.py", line 11, in <module>
from sage.structure.unique_representation import UniqueRepresentation
File "/Users/aaronmeurer/anaconda3/envs/python2/lib/python2.7/site-packages/sage/structure/unique_representation.py", line 569, in <module>
class CachedRepresentation(six.with_metaclass(ClasscallMetaclass)):
File "/Users/aaronmeurer/anaconda3/envs/python2/lib/python2.7/site-packages/six.py", line 809, in with_metaclass
return type.__new__(metaclass, 'temporary_class', (), {})
TypeError: type.__new__(metaclass) is not safe, use sage.misc.classcall_metaclass.ClasscallMetaclass.__new__()
I am having problems importing sage in Mac:
Issue:
Environment (
conda list
):Details about
conda
and system (conda info
):