我正在尝试在没有成功的情况下在Sagemath Cloud终端会话中加载一些GAP包。例如,当我尝试加载SCSCP包时,出现以下错误:
sage: gap.load_package( "SCSCP" )
-----------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-37-249a04a6b510> in <module>()
----> 1 gap.load_package( "SCSCP" )
/usr/local/sage/sage-6.4/local/lib/python2.7/site-packages/sage/interfaces/gap.pyc in load_package(self, pkg, verbose)
506 if x == 'fail':
507 raise RuntimeError("Error loading Gap package "+str(pkg)+". "+
--> 508 "You may want to install the gap_packages SPKG.")
509
510 def eval(self, x, newlines=False, strip=True, split_lines=True, **kwds):
RuntimeError: Error loading Gap package SCSCP. You may want to install the gap_packages SPKG.
我认为至少可以通过使用gap.console()
启动GAP会话来加载包,但这也会失败。
sage: gap.console()
┌───────┐ GAP, Version 4.7.5 of 24-May-2014 (free software, GPL)
│ GAP │ http://www.gap-system.org
└───────┘ Architecture: x86_64-unknown-linux-gnu-gcc-default64
Libs used: gmp, readline
Loading the library and packages ...
Components: trans 1.0, prim 2.1, small* 1.0, id* 1.0
Packages: Alnuth 3.0.0, AtlasRep 1.5.0, AutPGrp 1.6, CTblLib 1.2.2, FactInt 1.5.3, GAPDoc 1.5.1, LAGUNA 3.6.4, Polycyclic 2.11, TomLib 1.2.4
Try '?help' for help. See also '?copyright' and '?authors'
gap> LoadPackage( "IO" );
fail
gap> LoadPackage( "SCSCP" );
fail
gap>