ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 26 Jun 2018 16:33:15 -0500plantri package not found and installing packageshttp://ask.sagemath.org/question/42746/plantri-package-not-found-and-installing-packages/ So I'm getting the plantri package not found error despite plantri appearing in my packages list in sage: pkgs=list_packages(local=True)
sorted(pkgs.keys())
sage: sorted(pkgs.keys())
...
'planarity',
'plantri',
'polymake',
...
Where do I download the plantri package?
Also I get a weird error from running
install_package?
Object `install_package` not found.
standardtrickynessTue, 26 Jun 2018 16:33:15 -0500http://ask.sagemath.org/question/42746/Importing Python packages into Sage or Vice Versahttp://ask.sagemath.org/question/35457/importing-python-packages-into-sage-or-vice-versa/ Hi all,
this is my first post. I'm a long time user of Python, and I'm fairly new to Sage. I'm using Ubuntu, if this helps. Currently, python doesn't recognize any of Sage's packages, and Sage can't import even standard Python packages like pandas.
I've looked at various instructions online about how to import sage packages into python and vice versa, but they all seem incredibly intricate, and none of them seem to work for me.
Here are a few attempts that I made:
1. Running "sudo sagemath --python -m easy_install pandas" in terminal. (Still can't import pandas while running sage; even after running: "sys.path.append('/usr/lib/sagemath/local/lib/python2.7/site-packages/pandas-0.19.1-py2.7-linux-x86_64.egg')" from within sage.)
2. Following the instructions in the "import sage packages in python" question. (I don't have enough karma to post links.)
3. Doing various bizzarre attempts at changing sage_root or adding to it my python path.
4. Attempting to import pip while running sage, and install pandas this way. (Can't import pip.)
I tried a few more things (like downloading packages and "build"ing them, and then doing a few more very technical and annoying things), and all of my attempts fail. Is there really no simple way to do this? What is the most fool-proof way to do this that exists? It would be enormously helpful for me to be able to use python packages while working in sage, or vice versa.AndrewSun, 06 Nov 2016 09:34:37 -0600http://ask.sagemath.org/question/35457/Installing igraphhttp://ask.sagemath.org/question/33651/installing-igraph/I'm trying to install the `python_igraph` package to Sage for use on my office computer, but the installation fails. I'm SSHing into a Mac machine.
I used`./sage -i python_igraph`. Everything looked fine until I get a lot of errors like
/var/folders/6x/c0q_xypx7fgc3qtsv2n3__gx740ldt/T//ccZdrX8V.s:35:suffix or operands invalid for `movq'.
(The rest of the log is at the end of the post. Sorry for the length -- I wasn't able to attach a text file.)
Since this failed, I tried to find the `.spkg` file online to download it and install directly, but it doesn't appear to be among the packages on the Sage website. Can someone advise me about how to get access to the igraph capabilities?
Thanks.
Found local metadata for igraph-0.7.1
Using cached file /Users/username/SageMath/upstream/igraph-0.7.1.tar.gz
igraph-0.7.1
====================================================
Setting up build directory for igraph-0.7.1
Finished set up
****************************************************
Host system:
Darwin MacMal 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu- 3248.50.21~8/RELEASE_X86_64 x86_64
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/Users/username/SageMath/local/libexec/gcc/x86_64-apple-darwin15.4.0/4.9.3/lto-wrapper
Target: x86_64-apple-darwin15.4.0
Configured with: ../src/configure --prefix=/Users/username/SageMath/local --with-local- prefix=/Users/username/SageMath/local --with-gmp=/Users/username/SageMath/local --with- mpfr=/Users/username/SageMath/local --with-mpc=/Users/username/SageMath/local --with-system-zlib --disable-multilib --disable-nls --enable-languages=c,c++,fortran --disable-libitm --with-build-config=bootstrap-debug --without-isl --without-cloog
Thread model: posix
gcc version 4.9.3 (GCC)
****************************************************
[...]
GraphML format support -- yes
GMP library support -- yes
GLPK library support -- yes
Thread-local storage -- yes
Use internal ARPACK -- yes
Use internal LAPACK -- yes
Use internal BLAS -- yes
Use internal F2C -- yes
Use internal GLPK -- yes
Debug build -- no
Profiling -- no
make all-recursive
Making all in src
gcc -g -O2 -I/opt/local/include/libxml2 -DNO_FPINIT f2c/arithchk.c -lm -o f2c/arith || \
gcc -DNO_LONG_LONG -g -O2 -I/opt/local/include/libxml2 -DNO_FPINIT f2c/arithchk.c \
-Wall -lm -o f2c/arith
/var/folders/6x/c0q_xypx7fgc3qtsv2n3__gx740ldt/T//ccZdrX8V.s:35:suffix or operands invalid for `movq'
/var/folders/6x/c0q_xypx7fgc3qtsv2n3__gx740ldt/T//ccZdrX8V.s:210:suffix or operands invalid for `movq'
/var/folders/6x/c0q_xypx7fgc3qtsv2n3__gx740ldt/T//ccZdrX8V.s:212:suffix or operands invalid for `movq'
/var/folders/6x/c0q_xypx7fgc3qtsv2n3__gx740ldt/T//ccZdrX8V.s:229:suffix or operands invalid for `movq'
/var/folders/6x/c0q_xypx7fgc3qtsv2n3__gx740ldt/T//ccZdrX8V.s:231:suffix or operands invalid for `movq'
f2c/arithchk.c: In function 'need_nancheck':
f2c/arithchk.c:158:9: warning: variable 't' set but not used [-Wunused-but-set-variable]
double t;
^
/var/folders/6x/c0q_xypx7fgc3qtsv2n3__gx740ldt/T//ccSl8kbj.s:35:suffix or operands invalid for `movq'
/var/folders/6x/c0q_xypx7fgc3qtsv2n3__gx740ldt/T//ccSl8kbj.s:219:suffix or operands invalid for `movq'
/var/folders/6x/c0q_xypx7fgc3qtsv2n3__gx740ldt/T//ccSl8kbj.s:221:suffix or operands invalid for `movq'
/var/folders/6x/c0q_xypx7fgc3qtsv2n3__gx740ldt/T//ccSl8kbj.s:238:suffix or operands invalid for `movq'
/var/folders/6x/c0q_xypx7fgc3qtsv2n3__gx740ldt/T//ccSl8kbj.s:240:suffix or operands invalid for `movq'
make[4]: *** [f2c/arith.h] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
Error building igraph.
real 0m17.917s
user 0m7.374s
sys 0m7.896s
************************************************************************
Error installing package igraph-0.7.1
************************************************************************
ec92Thu, 02 Jun 2016 13:57:49 -0500http://ask.sagemath.org/question/33651/