conda-forge / sagelib-feedstock

A conda-smithy repository for sagelib.
BSD 3-Clause "New" or "Revised" License
4 stars 8 forks source link

Issue with sagelib feedstock in Mac #32

Closed asmeurer closed 6 years ago

asmeurer commented 6 years ago

I am having problems importing sage in Mac:

>>> 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__()

Issue:


Environment (conda list):

``` $ conda list # packages in environment at /Users/aaronmeurer/anaconda3/envs/python2: # # Name Version Build Channel alabaster 0.7.9 py27_0 conda-forge appnope 0.1.0 py27_0 defaults arb 2.11.1 0 conda-forge asn1crypto 0.22.0 py27_0 conda-forge asv 0.2.1 py27_0 conda-forge babel 2.3.4 py27_0 conda-forge backports.shutil_get_terminal_size 1.0.0 py27_1 conda-forge backports_abc 0.5 py27_0 conda-forge bdw-gc 7.6.4 1 conda-forge binstar 0.12 2 defaults blas 1.1 openblas conda-forge bleach 2.1.3 py_0 conda-forge boost-cpp 1.66.0 1 conda-forge brial 1.2.3 py27_0 conda-forge bzip2 1.0.6 1 conda-forge ca-certificates 2018.4.16 0 conda-forge cairo 1.14.6 5 conda-forge cddlib 094h 0 conda-forge certifi 2018.4.16 py27_0 conda-forge cffi 1.10.0 py27_0 conda-forge chardet 3.0.4 py27_0 defaults cliquer 1.21 0 conda-forge cloudpickle 0.5.2 py_0 conda-forge configparser 3.5.0 py27_0 conda-forge cryptography 1.8.1 py27_0 defaults curl 7.60.0 0 conda-forge cvxopt 1.2.0 py27_blas_openblas_200 [blas_openblas] conda-forge cycler 0.10.0 py27_0 conda-forge cypari2 1.1.4 py27_1 conda-forge cysignals 1.6.9 py27_0 conda-forge cython 0.28.2 py27_0 conda-forge dateutil 2.4.1 py27_0 defaults decorator 4.0.11 py27_0 defaults docutils 0.13.1 py27_0 conda-forge ecl 16.1.3 4 conda-forge eclib 20171219 0 conda-forge ecm 7.0.4 1 conda-forge entrypoints 0.2.3 py27_1 conda-forge enum34 1.1.6 py27_1 conda-forge expat 2.2.5 0 conda-forge fabric 1.13.2 py27_0 conda-forge fabric-virtualenv 0.2.1 py27_1 asmeurer fastcache 1.0.2 py27_0 conda-forge fflas-ffpack 2.2.2 blas_openblas_1 [blas_openblas] conda-forge fftw 3.3.7 0 conda-forge flintqs 1.0 0 conda-forge fontconfig 2.12.1 5 conda-forge fplll 5.2.0 0 conda-forge fpylll 0.3.0dev py27_1 conda-forge freetype 2.7 1 conda-forge functools32 3.2.3.2 py27_1 conda-forge future 0.16.0 py27_0 conda-forge gap 4.8.6 2 conda-forge gettext 0.19.8.1 0 conda-forge gf2x 1.1 0 conda-forge gfan 0.5 0 conda-forge giac 1.4.9.57 blas_openblas_1 [blas_openblas] conda-forge giflib 5.1.4 0 conda-forge git2json 0.2.0 py27_1 asmeurer givaro 4.0.2 1 conda-forge glib 2.51.4 0 conda-forge glpk 4.65 0 conda-forge gmp 6.1.2 0 conda-forge gmpy2 2.0.8 py27_1 conda-forge graphite2 1.3.11 0 conda-forge gsl 2.4 blas_openblas_0 [blas_openblas] conda-forge harfbuzz 1.4.3 0 conda-forge html5lib 1.0.1 py_0 conda-forge icu 58.2 0 conda-forge idna 2.5 py27_0 conda-forge imagesize 0.7.1 py27_0 conda-forge imaging 1.1.7 py27_2 iml 1.0.5 blas_openblas_1 [blas_openblas] conda-forge ipaddress 1.0.18 py27_0 conda-forge ipykernel 4.8.2 py27_0 conda-forge ipython 5.3.0 py27_0 conda-forge ipython_genutils 0.1.0 py27_0 conda-forge ipywidgets 7.2.1 py27_1 conda-forge jinja2 2.9.6 py27_0 defaults jpeg 9b 0 conda-forge jsonschema 2.6.0 py27_1 conda-forge jupyter_client 5.2.3 py27_0 conda-forge jupyter_core 4.4.0 py_0 conda-forge krb5 1.14.6 0 conda-forge launcher 2.1a1 29 lidavidm lcalc 1.23 0 conda-forge libevent 2.0.21 0 defaults libffi 3.2.1 3 conda-forge libflint 2.5.2 1 conda-forge libgap 4.8.6 0 conda-forge libgcc 4.8.5 1 defaults libgd 2.2.5 1 conda-forge libgfortran 3.0.0 0 conda-forge libiconv 1.14 3 conda-forge libpng 1.6.30 1 defaults libsodium 1.0.10 0 conda-forge libssh2 1.8.0 2 conda-forge libtiff 4.0.7 1 conda-forge libwebp 0.5.2 7 conda-forge libxml2 2.9.5 1 conda-forge linbox 1.4.2 1 conda-forge llvm 3.3 0 defaults llvmlite 0.23.0 py27_1 conda-forge llvmpy 0.12.7 py27_0 defaults lrcalc 1.2 0 conda-forge m4ri 20140914 0 conda-forge m4rie 20150908 0 conda-forge markupsafe 1.0 py27_0 conda-forge matplotlib 2.0.2 np113py27_0 conda-forge maxima 5.39.0 2 conda-forge metis 5.1.0 3 conda-forge mistune 0.8.3 py27_1 conda-forge mkl 2017.0.3 0 defaults mpc 1.0.3 4 conda-forge mpfi 1.5.3 0 conda-forge mpfr 3.1.5 0 conda-forge mpmath 1.0.0 py_0 conda-forge nauty 2.6r7 0 conda-forge nbconvert 5.3.1 py_1 conda-forge nbformat 4.4.0 py27_0 conda-forge ncurses 5.9 9 conda-forge networkx 2.1 py27_0 conda-forge node-webkit 0.11.5 0 javascript notebook 5.5.0 py27_0 conda-forge ntl 10.3.0 1 conda-forge numpy 1.13.3 py27_blas_openblas_201 [blas_openblas] conda-forge openblas 0.2.20 7 conda-forge openssl 1.0.2o 0 conda-forge packaging 16.8 py27_0 conda-forge palp 2.1 0 conda-forge pandoc 2.2.1 hde52d81_0 conda-forge pandocfilters 1.4.2 py27_0 conda-forge pango 1.40.4 0 conda-forge paramiko 2.1.2 py27_0 conda-forge pari 2.9.4 pl5.22.0.1_0 conda-forge path.py 10.0 py27_0 defaults pathlib2 2.2.0 py27_0 defaults pcre 8.39 0 conda-forge perl 5.22.0.1 0 conda-forge pexpect 4.2.1 py27_0 conda-forge pickleshare 0.7.4 py27_0 defaults pip 9.0.0 py27_0 defaults pixman 0.34.0 2 conda-forge pkg-config 0.29.2 1 conda-forge pkgconfig 1.3.1 py27_0 conda-forge planarity 3.0.0.5 0 conda-forge ppl 1.2 0 conda-forge prompt_toolkit 1.0.9 py27_0 conda-forge psutil 5.4.4 py27_0 conda-forge ptyprocess 0.5.1 py27_0 conda-forge pudb 2017.1.2 py27_0 conda-forge pyasn1 0.2.3 py27_0 conda-forge pycparser 2.17 py27_0 conda-forge pycrypto 2.6.1 py27_1 conda-forge pygments 2.1.3 py27_1 conda-forge pyinstrument 2.0.2 py27_0 conda-forge pyinstrument_cext 0.1.2 py27_0 conda-forge pynac 0.7.17 py27_0 conda-forge pyopenssl 17.0.0 py27_0 defaults pyparsing 2.2.0 py27_0 conda-forge pysocks 1.6.7 py27_0 conda-forge python 2.7.13 0 defaults python-dateutil 2.6.0 py27_0 conda-forge python.app 1.2 py27_4 defaults pytz 2017.2 py27_0 conda-forge pyzmq 17.0.0 py27_4 conda-forge qd 2.3.17 1 conda-forge r-base 3.4.1 2 conda-forge ratpoints 2.1.3 0 conda-forge readline 6.2 0 conda-forge requests 2.18.1 py27_0 conda-forge rope 0.9.4 py27_1 defaults rpy2 2.8.5 py27r3.4.1_0 conda-forge rubiks 20070912 0 conda-forge rw 0.7 1 conda-forge sage 8.1 py27_0 conda-forge sagelib 8.1 py27_blas_openblas_3 [blas_openblas] conda-forge sagemath-db-combinatorial-designs 20140630 0 conda-forge sagemath-db-conway-polynomials 0.5.p0 py27_0 conda-forge sagemath-db-elliptic-curves 0.8 1 conda-forge sagemath-db-graphs 20161026 0 conda-forge sagemath-db-polytopes 20170220 0 conda-forge scandir 1.4 py27_0 defaults scipy 1.1.0 py27_blas_openblas_200 [blas_openblas] conda-forge send2trash 1.5.0 py_0 conda-forge setuptools 27.2.0 py27_0 defaults simplegeneric 0.8.1 py27_0 conda-forge singledispatch 3.4.0.3 py27_0 conda-forge singular 4.1.0.p3 0 conda-forge six 1.10.0 py27_1 conda-forge snowballstemmer 1.2.1 py27_0 conda-forge sphinx 1.4.8 py27_0 conda-forge sphinxjp.themes.basicstrap 0.3.2 py27_3 asmeurer sqlite 3.13.0 1 conda-forge ssl_match_hostname 3.5.0.1 py27_1 conda-forge subprocess32 3.2.7 py27_0 conda-forge suitesparse 4.5.6 blas_openblas_200 [blas_openblas] conda-forge symmetrica 2.0 0 conda-forge sympow 1.018.1 1 conda-forge sympy 1.1.1 py27_0 conda-forge tbb 2018_20171205 0 conda-forge terminado 0.8.1 py27_0 conda-forge testpath 0.3.1 py27_0 conda-forge tk 8.5.18 0 defaults tornado 4.5.1 py27_0 conda-forge traitlets 4.3.1 py27_0 conda-forge urllib3 1.21.1 py27_1 conda-forge urwid 1.3.1 py27_0 conda-forge virtualenv 15.1.0 py27_0 conda-forge wcwidth 0.1.7 py27_0 conda-forge webencodings 0.5.1 py27_0 conda-forge wheel 0.29.0 py27_0 conda-forge widgetsnbextension 3.2.1 py27_0 conda-forge xz 5.2.3 0 conda-forge zeromq 4.2.5 1 conda-forge zlib 1.2.11 0 conda-forge zn_poly 0.9 1 conda-forge ```


Details about conda and system ( conda info ):

``` $ conda info active environment : python2 active env location : /Users/aaronmeurer/anaconda3/envs/python2 shell level : 1 user config file : /Users/aaronmeurer/.condarc populated config files : /Users/aaronmeurer/.condarc conda version : 4.5.3 conda-build version : 3.8.0 python version : 3.5.4.final.0 base environment : /Users/aaronmeurer/anaconda3 (writable) channel URLs : https://conda.anaconda.org/conda-forge/osx-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/osx-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/free/osx-64 https://repo.anaconda.com/pkgs/free/noarch https://repo.anaconda.com/pkgs/r/osx-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/pro/osx-64 https://repo.anaconda.com/pkgs/pro/noarch https://conda.anaconda.org/asmeurer/osx-64 https://conda.anaconda.org/asmeurer/noarch https://conda.anaconda.org/r/osx-64 https://conda.anaconda.org/r/noarch https://conda.anaconda.org/pyne/osx-64 https://conda.anaconda.org/pyne/noarch package cache : /Users/aaronmeurer/anaconda3/pkgs /Users/aaronmeurer/.conda/pkgs envs directories : /Users/aaronmeurer/anaconda3/envs /Users/aaronmeurer/.conda/envs platform : osx-64 user-agent : conda/4.5.3 requests/2.18.1 CPython/3.5.4 Darwin/16.7.0 OSX/10.12.6 UID:GID : 501:20 netrc file : None offline mode : False ```
asmeurer commented 6 years ago

conda update --all in the environment seems to have fixed it. Not sure what the problem was.