Operating system: See Attached file. I installed Sage using conda giving the following commands during the session as per the instructions on the sage website:
conda update --all anaconda-navigator conda create -n sage sage conda activate sage sage I then removed the conda environment and reinstalled it following the above method. The complete re-instillation session record is detailed in the file CrashReproduction.txt. Also included is the SystemInfo as reported by the Linux Mint app. There are two crash reports, Sage_crash_report_1st.txt being generated from the original installation and Sage_crash_report.txt from the reinstallation I have previously installed sage successfully as a binary package. This I removed before trying it as a conda package. Hopefully this will be of some help. Best regards Douglas -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
System: Host: douglas-linux Kernel: 4.15.0-45-generic x86_64 bits: 64 compiler: gcc v: 7.3.0 Desktop: Cinnamon 4.0.9 wm: muffin dm: LightDM Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic Machine: Type: Desktop System: Gigabyte product: N/A v: N/A serial: <filter> Chassis: type: 3 serial: <filter> Mobo: Gigabyte model: H61MA-D2V v: x.x serial: <filter> UEFI: American Megatrends v: F6 date: 04/17/2013 CPU: Topology: Quad Core model: Intel Core i5-3450 bits: 64 type: MCP arch: Ivy Bridge rev: 9 L2 cache: 6144 KiB flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 24742 Speed: 1638 MHz min/max: 1600/3500 MHz Core speeds (MHz): 1: 1596 2: 1596 3: 1596 4: 1596 Graphics: Device-1: NVIDIA GF108 [GeForce GT 430] vendor: CardExpert driver: nvidia v: 390.77 bus ID: 01:00.0 chip ID: 10de:0de1 Display: x11 server: X.Org 1.19.6 driver: nvidia unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1080~60Hz OpenGL: renderer: GeForce GT 430/PCIe/SSE2 v: 4.6.0 NVIDIA 390.77 direct render: Yes Audio: Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: Gigabyte driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:1c20 Device-2: NVIDIA GF108 High Definition Audio vendor: CardExpert driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:0bea Sound Server: ALSA v: k4.15.0-45-generic Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Gigabyte driver: r8169 v: 2.3LK-NAPI port: d000 bus ID: 04:00.0 chip ID: 10ec:8168 IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter> Device-2: Microsoft Xbox 360 Wireless Adapter type: USB driver: xpad bus ID: 3-1:2 chip ID: 045e:0719 IF-ID-1: docker0 state: down mac: <filter> Drives: Local Storage: total: 4.31 TiB used: 2.17 TiB (50.3%) ID-1: /dev/sda vendor: Seagate model: ST4000DX001-1CE168 size: 3.64 TiB speed: 3.0 Gb/s serial: <filter> ID-2: /dev/sdb vendor: OCZ model: VERTEX3 size: 111.79 GiB speed: 3.0 Gb/s serial: <filter> ID-3: /dev/sdc vendor: Intel model: SSDSC2CT120A3 size: 111.79 GiB speed: 3.0 Gb/s serial: <filter> ID-4: /dev/sdd type: USB vendor: Seagate model: ST9500325AS size: 465.76 GiB serial: <filter> Partition: ID-1: / size: 40.71 GiB used: 25.77 GiB (63.3%) fs: ext4 dev: /dev/sdb2 ID-2: /home size: 60.69 GiB used: 47.28 GiB (77.9%) fs: ext4 dev: /dev/sdb3 ID-3: swap-1 size: 8.00 GiB used: 426.9 MiB (5.2%) fs: swap dev: /dev/sdb4 Sensors: System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia temp: 51 C Fan Speeds (RPM): N/A gpu: nvidia fan: 35% Repos: No active apt repos in: /etc/apt/sources.list Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 1: deb [arch=amd64] https: //download.docker.com/linux/ubuntu bionic stable 2: deb https: //dl.winehq.org/wine-builds/ubuntu/ bionic main 3: deb http: //apt.postgresql.org/pub/repos/apt/ bionic-pgdg main Active apt repos in: /etc/apt/sources.list.d/couchbase.list 1: deb [ arch=amd64 ] http: //packages.couchbase.com/releases/couchbase-server/enterprise/deb/ xenial xenial/main 2: deb [ arch=amd64 ] http: //packages.couchbase.com/releases/couchbase-server/community/deb/ xenial xenial/main 3: deb http: //packages.couchbase.com/ubuntu xenial xenial/main 4: deb http: //packages.couchbase.com/ubuntu bionic bionic/main Active apt repos in: /etc/apt/sources.list.d/freecad-maintainers-freecad-daily-bionic.list 1: deb http: //ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu bionic main 2: deb-src http: //ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu bionic main Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 1: deb http: //packages.linuxmint.com tessa main upstream import backport 2: deb http: //ubuntu.mirrors.uk2.net/ubuntu bionic main restricted universe multiverse 3: deb http: //ubuntu.mirrors.uk2.net/ubuntu bionic-updates main restricted universe multiverse 4: deb http: //ubuntu.mirrors.uk2.net/ubuntu bionic-backports main restricted universe multiverse 5: deb http: //security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse 6: deb http: //archive.canonical.com/ubuntu/ bionic partner Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 1: deb [arch=amd64] https: //repo.skype.com/deb stable main Active apt repos in: /etc/apt/sources.list.d/steam.list 1: deb [arch=amd64,i386] http: //repo.steampowered.com/steam/ precise steam 2: deb-src [arch=amd64,i386] http: //repo.steampowered.com/steam/ precise steam Active apt repos in: /etc/apt/sources.list.d/vscode.list 1: deb [arch=amd64] http: //packages.microsoft.com/repos/vscode stable main Active apt repos in: /etc/apt/sources.list.d/yarn.list 1: deb https: //dl.yarnpkg.com/debian/ stable main Info: Processes: 283 Uptime: 1d 58m Memory: 7.75 GiB used: 3.53 GiB (45.6%) Init: systemd v: 237 runlevel: 5 default: 2 Compilers: gcc: 7.3.0 alt: 5/7 Client: Unknown python3.6 client inxi: 3.0.27
*************************************************************************** IPython post-mortem report {'commit_hash': u'033ab93c7', 'commit_source': 'installation', 'default_encoding': 'UTF-8', 'ipython_path': '/***/******/miniconda3/envs/sage/lib/python2.7/site-packages/IPython', 'ipython_version': '5.8.0', 'os_name': 'posix', 'platform': 'Linux-4.15.0-45-generic-x86_64-with-debian-buster-sid', 'sys_executable': '/***/******/miniconda3/envs/sage/bin/python', 'sys_platform': 'linux2', 'sys_version': '2.7.14 | packaged by conda-forge | (default, Dec 9 2017, 16:18:43) \n[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)]'} *************************************************************************** *************************************************************************** Crash traceback: --------------------------------------------------------------------------- --------------------------------------------------------------------------- ImportError Python 2.7.14: /***/******/miniconda3/envs/sage/bin/python Tue Feb 19 18:35:47 2019 A problem occurred executing Python code. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call last. /***/******/miniconda3/envs/sage/bin/sage-ipython in <module>() 1 #!/***/******/miniconda3/envs/sage/bin/python 2 # -*- coding: utf-8 -*- 3 """ 4 Sage IPython startup script. 5 """ 6 7 from sage.repl.interpreter import SageTerminalApp 8 9 app = SageTerminalApp.instance() ---> 10 app.initialize() global app.initialize = <bound method SageTerminalApp.initialize of <sage.repl.interpreter.SageTerminalApp object at 0x7f70eaa0e090>> 11 app.start() </***/******/miniconda3/envs/sage/lib/python2.7/site-packages/decorator.pyc:decorator-gen-110> in initialize(self=<sage.repl.interpreter.SageTerminalApp object>, argv=None) /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/traitlets/config/application.pyc in catch_config_error(method=<function initialize>, app=<sage.repl.interpreter.SageTerminalApp object>, *args=(None,), **kwargs={}) 72 TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR = False 73 else: 74 raise ValueError("Unsupported value for environment variable: 'TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR' is set to '%s' which is none of {'0', '1', 'false', 'true', ''}."% _envvar ) 75 76 77 @decorator 78 def catch_config_error(method, app, *args, **kwargs): 79 """Method decorator for catching invalid config (Trait/ArgumentErrors) during init. 80 81 On a TraitError (generally caused by bad config), this will print the trait's 82 message, and exit the app. 83 84 For use on init methods, to prevent invoking excepthook on invalid input. 85 """ 86 try: ---> 87 return method(app, *args, **kwargs) method = <function initialize at 0x7f70e40ea140> app = <sage.repl.interpreter.SageTerminalApp object at 0x7f70eaa0e090> args = (None,) kwargs = {} 88 except (TraitError, ArgumentError) as e: 89 app.print_help() 90 app.log.fatal("Bad config encountered during initialization:") 91 app.log.fatal(str(e)) 92 app.log.debug("Config at the time: %s", app.config) 93 app.exit(1) 94 95 96 class ApplicationError(Exception): 97 pass 98 99 100 class LevelFormatter(logging.Formatter): 101 """Formatter with additional `highlevel` record 102 /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/IPython/terminal/ipapp.pyc in initialize(self=<sage.repl.interpreter.SageTerminalApp object>, argv=None) 301 302 return super(TerminalIPythonApp, self).parse_command_line(argv) 303 304 @catch_config_error 305 def initialize(self, argv=None): 306 """Do actions after construct, but before starting the app.""" 307 super(TerminalIPythonApp, self).initialize(argv) 308 if self.subapp is not None: 309 # don't bother initializing further, starting subapp 310 return 311 # print self.extra_args 312 if self.extra_args and not self.something_to_run: 313 self.file_to_run = self.extra_args[0] 314 self.init_path() 315 # create the shell --> 316 self.init_shell() self.init_shell = <bound method SageTerminalApp.init_shell of <sage.repl.interpreter.SageTerminalApp object at 0x7f70eaa0e090>> 317 # and draw the banner 318 self.init_banner() 319 # Now a variety of things that happen after the banner is printed. 320 self.init_gui_pylab() 321 self.init_extensions() 322 self.init_code() 323 324 def init_shell(self): 325 """initialize the InteractiveShell instance""" 326 # Create an InteractiveShell instance. 327 # shell.display_banner should always be False for the terminal 328 # based app, because we call shell.show_banner() by hand below 329 # so the banner shows *before* all extension loading stuff. 330 self.shell = self.interactive_shell_class.instance(parent=self, 331 profile_dir=self.profile_dir, /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/repl/interpreter.pyc in init_shell(self=<sage.repl.interpreter.SageTerminalApp object>) 747 self.shell.has_sage_extensions = SAGE_EXTENSION in self.extensions 748 749 # Load the %lprun extension if available 750 try: 751 import line_profiler 752 except ImportError: 753 pass 754 else: 755 self.extensions.append('line_profiler') 756 757 if self.shell.has_sage_extensions: 758 self.extensions.remove(SAGE_EXTENSION) 759 760 # load sage extension here to get a crash if 761 # something is wrong with the sage library --> 762 self.shell.extension_manager.load_extension(SAGE_EXTENSION) self.shell.extension_manager.load_extension = <bound method ExtensionManager.load_extension of <IPython.core.extensions.ExtensionManager object at 0x7f70e330bcd0>> global SAGE_EXTENSION = 'sage' 763 764 /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/IPython/core/extensions.pyc in load_extension(self=<IPython.core.extensions.ExtensionManager object>, module_str='sage') 70 71 Returns the string "already loaded" if the extension is already loaded, 72 "no load function" if the module doesn't have a load_ipython_extension 73 function, or None if it succeeded. 74 """ 75 if module_str in self.loaded: 76 return "already loaded" 77 78 from IPython.utils.syspathcontext import prepended_to_syspath 79 80 with self.shell.builtin_trap: 81 if module_str not in sys.modules: 82 with prepended_to_syspath(self.ipython_extension_dir): 83 __import__(module_str) 84 mod = sys.modules[module_str] ---> 85 if self._call_load_ipython_extension(mod): self._call_load_ipython_extension = <bound method ExtensionManager._call_load_ipython_extension of <IPython.core.extensions.ExtensionManager object at 0x7f70e330bcd0>> mod = <module 'sage' from '/***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/__init__.pyc'> 86 self.loaded.add(module_str) 87 else: 88 return "no load function" 89 90 def unload_extension(self, module_str): 91 """Unload an IPython extension by its module name. 92 93 This function looks up the extension's name in ``sys.modules`` and 94 simply calls ``mod.unload_ipython_extension(self)``. 95 96 Returns the string "no unload function" if the extension doesn't define 97 a function to unload itself, "not loaded" if the extension isn't loaded, 98 otherwise None. 99 """ 100 if module_str not in self.loaded: /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/IPython/core/extensions.pyc in _call_load_ipython_extension(self=<IPython.core.extensions.ExtensionManager object>, mod=<module 'sage' from '/***/******/miniconda3/e...e/lib/python2.7/site-packages/sage/__init__.pyc'>) 117 """ 118 from IPython.utils.syspathcontext import prepended_to_syspath 119 120 if (module_str in self.loaded) and (module_str in sys.modules): 121 self.unload_extension(module_str) 122 mod = sys.modules[module_str] 123 with prepended_to_syspath(self.ipython_extension_dir): 124 reload(mod) 125 if self._call_load_ipython_extension(mod): 126 self.loaded.add(module_str) 127 else: 128 self.load_extension(module_str) 129 130 def _call_load_ipython_extension(self, mod): 131 if hasattr(mod, 'load_ipython_extension'): --> 132 mod.load_ipython_extension(self.shell) mod.load_ipython_extension = <function load_ipython_extension at 0x7f70eaa01938> self.shell = <sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7f70e408aa10> 133 return True 134 135 def _call_unload_ipython_extension(self, mod): 136 if hasattr(mod, 'unload_ipython_extension'): 137 mod.unload_ipython_extension(self.shell) 138 return True 139 140 def install_extension(self, url, filename=None): 141 """Download and install an IPython extension. 142 143 If filename is given, the file will be so named (inside the extension 144 directory). Otherwise, the name from the URL will be used. The file must 145 have a .py or .zip extension; otherwise, a ValueError will be raised. 146 147 Returns the full path to the installed file. /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/__init__.pyc in load_ipython_extension(*args=(<sage.repl.interpreter.SageTerminalInteractiveShell object>,)) 1 __all__ = ['all'] 2 3 # IPython calls this when starting up 4 def load_ipython_extension(*args): 5 import sage.repl.ipython_extension ----> 6 sage.repl.ipython_extension.load_ipython_extension(*args) sage.repl.ipython_extension.load_ipython_extension = <function load_ipython_extension at 0x7f70e30c48c0> args = (<sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7f70e408aa10>,) /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc in wrapper(*args=(<sage.repl.interpreter.SageTerminalInteractiveShell object>,), **kwargs={}) 490 ....: if work: 491 ....: return 'foo worked' 492 ....: raise RuntimeError("foo didn't work") 493 sage: foo(False) 494 Traceback (most recent call last): 495 ... 496 RuntimeError: foo didn't work 497 sage: foo(True) 498 'foo worked' 499 sage: foo(False) 500 sage: foo(True) 501 """ 502 @wraps(func) 503 def wrapper(*args, **kwargs): 504 if not wrapper.has_run: --> 505 result = func(*args, **kwargs) result = undefined global func = undefined args = (<sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7f70e408aa10>,) kwargs = {} 506 wrapper.has_run = True 507 return result 508 wrapper.has_run = False 509 return wrapper 510 511 512 @run_once 513 def load_ipython_extension(ip): 514 """ 515 Load the extension in IPython. 516 """ 517 # this modifies ip 518 SageCustomizations(shell=ip) /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc in load_ipython_extension(ip=<sage.repl.interpreter.SageTerminalInteractiveShell object>) 503 def wrapper(*args, **kwargs): 504 if not wrapper.has_run: 505 result = func(*args, **kwargs) 506 wrapper.has_run = True 507 return result 508 wrapper.has_run = False 509 return wrapper 510 511 512 @run_once 513 def load_ipython_extension(ip): 514 """ 515 Load the extension in IPython. 516 """ 517 # this modifies ip --> 518 SageCustomizations(shell=ip) global SageCustomizations = <class 'sage.repl.ipython_extension.SageCustomizations'> global shell = undefined ip = <sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7f70e408aa10> /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc in __init__(self=<sage.repl.ipython_extension.SageCustomizations object>, shell=<sage.repl.interpreter.SageTerminalInteractiveShell object>) 361 def __init__(self, shell=None): 362 """ 363 Initialize the Sage plugin. 364 """ 365 self.shell = shell 366 367 self.auto_magics = SageMagics(shell) 368 self.shell.register_magics(self.auto_magics) 369 370 import sage.misc.edit_module as edit_module 371 self.shell.set_hook('editor', edit_module.edit_devel) 372 373 self.init_inspector() 374 self.init_line_transforms() 375 --> 376 import sage.all # until sage's import hell is fixed sage.all = undefined 377 378 self.shell.verbose_quit = True 379 self.set_quit_hook() 380 381 self.register_interface_magics() 382 383 if SAGE_IMPORTALL == 'yes': 384 self.init_environment() 385 386 def register_interface_magics(self): 387 """ 388 Register magics for each of the Sage interfaces 389 """ 390 from sage.repl.interface_magic import InterfaceMagic 391 InterfaceMagic.register_all(self.shell) /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/all.py in <module>() 88 89 from time import sleep 90 91 import sage.misc.lazy_import 92 from sage.misc.all import * # takes a while 93 from sage.typeset.all import * 94 from sage.repl.all import * 95 96 from sage.misc.sh import sh 97 98 from sage.libs.all import * 99 from sage.data_structures.all import * 100 from sage.doctest.all import * 101 102 from sage.structure.all import * --> 103 from sage.rings.all import * global sage.rings.all = undefined 104 from sage.arith.all import * 105 from sage.matrix.all import * 106 107 from sage.symbolic.all import * 108 from sage.modules.all import * 109 from sage.monoids.all import * 110 from sage.algebras.all import * 111 from sage.modular.all import * 112 from sage.sat.all import * 113 from sage.schemes.all import * 114 from sage.graphs.all import * 115 from sage.groups.all import * 116 from sage.databases.all import * 117 from sage.categories.all import * 118 from sage.sets.all import * /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/all.py in <module>() 39 40 # Rational numbers 41 from .rational_field import RationalField, QQ 42 from .rational import Rational 43 Rationals = RationalField 44 45 # Integers modulo n. 46 from sage.rings.finite_rings.integer_mod_ring import IntegerModRing, Zmod 47 from sage.rings.finite_rings.integer_mod import IntegerMod, Mod, mod 48 Integers = IntegerModRing 49 50 # Finite fields 51 from .finite_rings.all import * 52 53 # Number field ---> 54 from .number_field.all import * global number_field.all = undefined 55 56 # Function field 57 from .function_field.all import * 58 59 # Finite residue fields 60 from .finite_rings.residue_field import ResidueField 61 62 # p-adic field 63 from .padics.all import * 64 from .padics.padic_printing import _printer_defaults as padic_printing 65 66 # Semirings 67 from .semirings.all import * 68 69 # Real numbers /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/number_field/all.py in <module>() 1 from __future__ import absolute_import 2 3 from .number_field import (NumberField, NumberFieldTower, CyclotomicField, QuadraticField, 4 is_fundamental_discriminant) 5 from .number_field_element import NumberFieldElement 6 7 from .order import EquationOrder, GaussianIntegers, EisensteinIntegers 8 ----> 9 from .totallyreal import enumerate_totallyreal_fields_prim global totallyreal = undefined global enumerate_totallyreal_fields_prim = undefined 10 from .totallyreal_data import hermite_constant 11 from .totallyreal_rel import enumerate_totallyreal_fields_all, enumerate_totallyreal_fields_rel 12 13 from .unit_group import UnitGroup /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/number_field/totallyreal_data.pxd in init sage.rings.number_field.totallyreal (/feedstock_root/build_artefacts/sagelib_1496649974235/work/sage-7.6/build/cythonized/sage/rings/number_field/totallyreal.c:12569)() 1 cdef double eval_seq_as_poly(int *f, int n, double x) 2 cdef double newton(int *f, int *df, int n, double x0, double eps) 3 cdef void newton_in_intervals(int *f, int *df, int n, double *beta, double eps, double *rts) 4 cpdef lagrange_degree_3(int n, int an1, int an2, int an3) 5 6 cimport sage.rings.integer 7 8 cdef int eval_seq_as_poly_int(int *f, int n, int x) 9 10 cdef int easy_is_irreducible(int *a, int n) 11 ---> 12 cdef class tr_data: global cdef = undefined global tr_data = undefined 13 14 cdef int n, k 15 cdef double B 16 cdef double b_lower, b_upper, gamma 17 18 cdef int *a 19 cdef int *amax 20 cdef double *beta 21 cdef int *gnk 22 23 cdef int *df 24 25 cdef void incr(self, int *f_out, int verbose, int haltk, int phc) 26 sage/rings/number_field/totallyreal_data.pyx in init sage.rings.number_field.totallyreal_data (/feedstock_root/build_artefacts/sagelib_1496649974235/work/sage-7.6/build/cythonized/sage/rings/number_field/totallyreal_data.c:13278)() /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring_constructor.pyc in PolynomialRing(base_ring=Integer Ring, arg1='x', arg2=None, sparse=False, order='degrevlex', names=None, name='x', var_array=None, implementation=None) 446 arg2 = [str(x) for x in arg2] 447 if isinstance(arg2, (int, long, Integer)): 448 # 3. PolynomialRing(base_ring, names, n, order='degrevlex'): 449 if not isinstance(arg1, (list, tuple, str)): 450 raise TypeError("You *must* specify the names of the variables.") 451 n = int(arg2) 452 names = arg1 453 R = _multi_variate(base_ring, names, n, sparse, order, implementation) 454 455 elif isinstance(arg1, str) or (isinstance(arg1, (list,tuple)) and len(arg1) == 1): 456 if not ',' in arg1: 457 # 1. PolynomialRing(base_ring, name, sparse=False): 458 if not arg2 is None: 459 raise TypeError("if second arguments is a string with no commas, then there must be no other non-optional arguments") 460 name = arg1 --> 461 R = _single_variate(base_ring, name, sparse, implementation) R = None global _single_variate = <function _single_variate at 0x7f6fc65a0cf8> base_ring = Integer Ring name = 'x' sparse = False implementation = None 462 else: 463 # 2-4. PolynomialRing(base_ring, names, order='degrevlex'): 464 if not arg2 is None: 465 raise TypeError("invalid input to PolynomialRing function; please see the docstring for that function") 466 names = arg1.split(',') 467 R = _multi_variate(base_ring, names, -1, sparse, order, implementation) 468 elif isinstance(arg1, (list, tuple)): 469 # PolynomialRing(base_ring, names (list or tuple), order='degrevlex'): 470 names = arg1 471 R = _multi_variate(base_ring, names, -1, sparse, order, implementation) 472 473 if arg1 is None and arg2 is None: 474 raise TypeError("you *must* specify the indeterminates (as not None).") 475 if R is None: 476 raise TypeError("invalid input (%s, %s, %s) to PolynomialRing function; please see the docstring for that function"%( /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring_constructor.pyc in _single_variate(base_ring=Integer Ring, name=('x',), sparse=False, implementation=None) 524 R = m.PolynomialRing_dense_padic_ring_capped_absolute(base_ring, name) 525 526 elif isinstance(base_ring, padic_base_leaves.pAdicRingFixedMod): 527 R = m.PolynomialRing_dense_padic_ring_fixed_mod(base_ring, name) 528 529 elif base_ring in _CompleteDiscreteValuationRings: 530 R = m.PolynomialRing_cdvr(base_ring, name, sparse) 531 532 elif base_ring in _CompleteDiscreteValuationFields: 533 R = m.PolynomialRing_cdvf(base_ring, name, sparse) 534 535 elif base_ring.is_field(proof = False): 536 R = m.PolynomialRing_field(base_ring, name, sparse) 537 538 elif base_ring.is_integral_domain(proof = False): --> 539 R = m.PolynomialRing_integral_domain(base_ring, name, sparse, implementation) R = None m.PolynomialRing_integral_domain = <class 'sage.rings.polynomial.polynomial_ring.PolynomialRing_integral_domain'> base_ring = Integer Ring name = ('x',) sparse = False implementation = None 540 else: 541 R = m.PolynomialRing_commutative(base_ring, name, sparse) 542 else: 543 R = m.PolynomialRing_general(base_ring, name, sparse) 544 545 if hasattr(R, '_implementation_names'): 546 for name in R._implementation_names: 547 real_key = key[0:3] + (name,) 548 _save_in_cache(real_key, R) 549 else: 550 _save_in_cache(key, R) 551 return R 552 553 def _multi_variate(base_ring, names, n, sparse, order, implementation): 554 # if not sparse: /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring.pyc in __init__(self=Univariate Polynomial Ring in x over Integer Ring, base_ring=Integer Ring, name=('x',), sparse=False, implementation=None, element_class=<type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'>, category=None) 1588 if is_IntegerRing(base_ring) and not sparse: 1589 if implementation == 'NTL': 1590 from sage.rings.polynomial.polynomial_integer_dense_ntl \ 1591 import Polynomial_integer_dense_ntl 1592 element_class = Polynomial_integer_dense_ntl 1593 self._implementation_names = ('NTL',) 1594 self._implementation_repr = ' (using NTL)' 1595 elif implementation == 'FLINT' or implementation is None: 1596 from sage.rings.polynomial.polynomial_integer_dense_flint \ 1597 import Polynomial_integer_dense_flint 1598 element_class = Polynomial_integer_dense_flint 1599 self._implementation_names = (None, 'FLINT') 1600 else: 1601 raise ValueError("Unknown implementation %s for ZZ[x]"%implementation) 1602 PolynomialRing_commutative.__init__(self, base_ring, name=name, -> 1603 sparse=sparse, element_class=element_class, category=category) sparse = False element_class = <type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'> category = None 1604 1605 def _repr_(self): 1606 """ 1607 TESTS:: 1608 1609 sage: from sage.rings.polynomial.polynomial_ring import PolynomialRing_integral_domain as PRing 1610 sage: R = PRing(ZZ, 'x', implementation='NTL'); R 1611 Univariate Polynomial Ring in x over Integer Ring (using NTL) 1612 """ 1613 s = PolynomialRing_commutative._repr_(self) 1614 return s + self._implementation_repr 1615 1616 1617 class PolynomialRing_field(PolynomialRing_integral_domain, 1618 PolynomialRing_singular_repr, /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring.pyc in __init__(self=Univariate Polynomial Ring in x over Integer Ring, base_ring=Integer Ring, name=('x',), sparse=False, element_class=<type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'>, category=Join of Category of unique factorization domains...s and infinite enumerated sets and metric spaces)) 1459 if max_degree is not None and of_degree is None: 1460 return self._monics_max( max_degree ) 1461 raise ValueError("you should pass exactly one of of_degree and max_degree") 1462 1463 class PolynomialRing_commutative(PolynomialRing_general, commutative_algebra.CommutativeAlgebra): 1464 """ 1465 Univariate polynomial ring over a commutative ring. 1466 """ 1467 def __init__(self, base_ring, name=None, sparse=False, element_class=None, category=None): 1468 if base_ring not in _CommutativeRings: 1469 raise TypeError("Base ring %s must be a commutative ring."%repr(base_ring)) 1470 # We trust that, if a category is given, that it is useful. 1471 if category is None: 1472 category = polynomial_default_category(base_ring.category(),False) 1473 PolynomialRing_general.__init__(self, base_ring, name=name, -> 1474 sparse=sparse, element_class=element_class, category=category) sparse = False element_class = <type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'> category = Join of Category of unique factorization domains and Category of commutative algebras over (euclidean domains and infinite enumerated sets and metric spaces) 1475 1476 def quotient_by_principal_ideal(self, f, names=None): 1477 """ 1478 Return the quotient of this polynomial ring by the principal 1479 ideal (generated by) `f`. 1480 1481 INPUT: 1482 1483 - ``f`` - either a polynomial in ``self``, or a principal 1484 ideal of ``self``. 1485 1486 EXAMPLES:: 1487 1488 sage: R.<x> = QQ[] 1489 sage: I = (x^2-1)*R /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring.pyc in __init__(self=Univariate Polynomial Ring in x over Integer Ring, base_ring=Integer Ring, name=('x',), sparse=False, element_class=<type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'>, category=Join of Category of unique factorization domains...s and infinite enumerated sets and metric spaces)) 275 self._has_singular = False 276 # Algebra.__init__ also calls __init_extra__ of Algebras(...).parent_class, which 277 # tries to provide a conversion from the base ring, if it does not exist. 278 # This is for algebras that only do the generic stuff in their initialisation. 279 # But the attribute _no_generic_basering_coercion prevents that from happening, 280 # since we want to use PolynomialBaseringInjection. 281 sage.algebras.algebra.Algebra.__init__(self, base_ring, names=name, normalize=True, category=category) 282 self.__generator = self.element_class(self, [0,1], is_gen=True) 283 self._populate_coercion_lists_( 284 #coerce_list = [base_inject], 285 #convert_list = [list, base_inject], 286 convert_method_name = '_polynomial_') 287 if is_PolynomialRing(base_ring): 288 self._Karatsuba_threshold = 0 289 else: --> 290 from sage.matrix.matrix_space import MatrixSpace global sage.matrix.matrix_space = undefined MatrixSpace = undefined 291 if isinstance(base_ring, MatrixSpace): 292 self._Karatsuba_threshold = 0 293 else: 294 self._Karatsuba_threshold = 8 295 296 def __reduce__(self): 297 import sage.rings.polynomial.polynomial_ring_constructor 298 return (sage.rings.polynomial.polynomial_ring_constructor.PolynomialRing, 299 (self.base_ring(), self.variable_name(), None, self.is_sparse())) 300 301 302 def _element_constructor_(self, x=None, check=True, is_gen=False, 303 construct=False, **kwds): 304 r""" 305 Convert ``x`` into this univariate polynomial ring, /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/matrix/matrix_space.pyc in <module>() 33 #***************************************************************************** 34 from __future__ import print_function, absolute_import 35 from six.moves import range 36 from six import iteritems 37 38 # System imports 39 import sys 40 import types 41 import operator 42 43 # Sage matrix imports 44 from . import matrix 45 from . import matrix_generic_dense 46 from . import matrix_generic_sparse 47 ---> 48 from . import matrix_modn_sparse global matrix_modn_sparse = undefined 49 50 from . import matrix_mod2_dense 51 from . import matrix_gf2e_dense 52 53 from . import matrix_integer_dense 54 from . import matrix_integer_sparse 55 56 from . import matrix_rational_dense 57 from . import matrix_rational_sparse 58 59 from . import matrix_polynomial_dense 60 from . import matrix_mpolynomial_dense 61 62 # Sage imports 63 from sage.misc.superseded import deprecation /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/matrix/matrix_integer_dense.pxd in init sage.matrix.matrix_modn_sparse (/feedstock_root/build_artefacts/sagelib_1496649974235/work/sage-7.6/build/cythonized/sage/matrix/matrix_modn_sparse.c:15049)() 1 from sage.libs.gmp.types cimport * 2 from sage.libs.flint.types cimport fmpz_mat_t 3 4 from .matrix_dense cimport Matrix_dense 5 from sage.rings.integer cimport Integer 6 from sage.ext.mod_int cimport * 7 8 ctypedef long* GEN 9 ---> 10 cdef class Matrix_integer_dense(Matrix_dense): global cdef = undefined global Matrix_integer_dense = undefined global Matrix_dense = undefined 11 cdef fmpz_mat_t _matrix # Always initialized in __cinit__ 12 cdef bint _initialized_mpz 13 cdef mpz_t * _entries # Only used if _initialized_mpz 14 cdef mpz_t ** _rows # Only used if _initialized_mpz 15 cdef object _pivots 16 cdef int mpz_height(self, mpz_t height) except -1 17 cdef _mod_int_c(self, mod_int modulus) 18 cdef _mod_two(self) 19 cdef _pickle_version0(self) 20 cdef _unpickle_version0(self, data) 21 cpdef _export_as_string(self, int base=?) 22 cdef inline int _init_mpz(self) except -1 23 cdef int _init_mpz_impl(self) except -1 24 cdef inline int _init_linbox(self) except -1 25 cdef void _dealloc_mpz(self) 26 cdef void set_unsafe_mpz(self, Py_ssize_t i, Py_ssize_t j, const mpz_t value) 27 cdef void set_unsafe_si(self, Py_ssize_t i, Py_ssize_t j, long value) 28 cdef void set_unsafe_double(self, Py_ssize_t i, Py_ssize_t j, double value) 29 cdef inline void get_unsafe_mpz(self, Py_ssize_t i, Py_ssize_t j, mpz_t value) 30 cdef inline double get_unsafe_double(self, Py_ssize_t i, Py_ssize_t j) 31 /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/matrix/matrix_modn_dense_template_header.pxi in init sage.matrix.matrix_integer_dense (/feedstock_root/build_artefacts/sagelib_1496649974235/work/sage-7.6/build/cythonized/sage/matrix/matrix_integer_dense.c:57312)() 1 """ 2 Dense Matrix Template for C/C++ Library Interfaces 3 """ 4 5 from sage.ext.mod_int cimport * 6 from sage.matrix.matrix_dense cimport Matrix_dense 7 ----> 8 cdef class Matrix_modn_dense_template(Matrix_dense): global cdef = undefined global Matrix_modn_dense_template = undefined global Matrix_dense = undefined 9 cdef celement **_matrix 10 cdef celement *_entries 11 cdef mod_int p 12 cdef xgcd_eliminate (self, celement * row1, celement* row2, Py_ssize_t start_col) 13 cdef set_unsafe_int(self, Py_ssize_t i, Py_ssize_t j, int value) 14 cpdef _export_as_string(self) 15 cdef int _copy_row_to_mod_int_array(self, mod_int *to, Py_ssize_t i) ImportError: /***/******/miniconda3/envs/sage/lib/python2.7/site-packages/sage/matrix/../../../../liblinboxsage.so.0: undefined symbol: _ZNK6Givaro7IntegercvSsEv *************************************************************************** History of session input: *** Last line of input (may not be in above history):
(base) d****@****** ~ $ conda env --remove -n sage usage: conda-env [-h] {create,export,list,remove,update} ... conda-env: error: invalid choice: 'sage' (choose from 'create', 'export', 'list', 'remove', 'update') (base) d****@****** ~ $ conda-env list # conda environments: # base * /***/******/miniconda3 sage /***/******/miniconda3/envs/sage (base) d****@****** ~ $ conda env remove -n sage Remove all packages in environment /***/******/miniconda3/envs/sage: (base) d****@****** ~ $ conda config --add channels conda-forge Warning: 'conda-forge' already in 'channels' list, moving to the top (base) d****@****** ~ $ conda update --all Collecting package metadata: done Solving environment: done ## Package Plan ## environment location: /***/******/miniconda3 The following packages will be downloaded: package | build ---------------------------|----------------- lz4-c-1.8.1.2 | 0 103 KB conda-forge zstd-1.3.8 | h7510944_1002 959 KB conda-forge ------------------------------------------------------------ Total: 1.0 MB The following NEW packages will be INSTALLED: lz4-c conda-forge/linux-64::lz4-c-1.8.1.2-0 The following packages will be UPDATED: zstd 1.3.3-1 --> 1.3.8-h7510944_1002 The following packages will be DOWNGRADED: libtiff 4.0.10-h9022e91_1002 --> 4.0.10-h648cc4a_1001 Proceed ([y]/n)? Downloading and Extracting Packages lz4-c-1.8.1.2 | 103 KB | ############################################################################# | 100% zstd-1.3.8 | 959 KB | ############################################################################# | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done (base) d****@****** ~ $ conda create -n sage sage Collecting package metadata: done Solving environment: done ## Package Plan ## environment location: /***/******/miniconda3/envs/sage added / updated specs: - sage The following NEW packages will be INSTALLED: _r-mutex pkgs/r/linux-64::_r-mutex-1.0.0-anacondar_1 alabaster conda-forge/noarch::alabaster-0.7.12-py_0 arb conda-forge/linux-64::arb-2.9.0-1 attrs conda-forge/noarch::attrs-18.2.0-py_0 backports conda-forge/noarch::backports-1.0-py_2 backports.os conda-forge/linux-64::backports.os-0.1.1-py27_1000 backports.shutil_~ conda-forge/noarch::backports.shutil_get_terminal_size-1.0.0-py_3 backports_abc conda-forge/noarch::backports_abc-0.5-py_1 bdw-gc conda-forge/linux-64::bdw-gc-8.0.2-h6bb024c_0 blas conda-forge/linux-64::blas-1.1-openblas bleach conda-forge/noarch::bleach-3.1.0-py_0 boost-cpp conda-forge/linux-64::boost-cpp-1.64.0-1 brial conda-forge/linux-64::brial-0.8.7-py27_2 bzip2 conda-forge/linux-64::bzip2-1.0.6-h14c3975_1002 ca-certificates conda-forge/linux-64::ca-certificates-2018.11.29-ha4d7672_0 cairo conda-forge/linux-64::cairo-1.14.6-5 cddlib conda-forge/linux-64::cddlib-1!0.94j-ha14ba45_1001 certifi conda-forge/linux-64::certifi-2018.11.29-py27_1000 cliquer conda-forge/linux-64::cliquer-1.21-0 configparser conda-forge/linux-64::configparser-3.7.1-py27_0 contextlib2 conda-forge/noarch::contextlib2-0.5.5-py_2 curl conda-forge/linux-64::curl-7.61.0-h93b3f91_2 cvxopt conda-forge/linux-64::cvxopt-1.1.9-py27_blas_openblas_201 cycler conda-forge/noarch::cycler-0.10.0-py_1 cysignals conda-forge/linux-64::cysignals-1.4.0-py27_1 cython conda-forge/linux-64::cython-0.29.5-py27hf484d3e_0 decorator conda-forge/noarch::decorator-4.3.2-py_0 docutils conda-forge/linux-64::docutils-0.14-py27_1001 ecl conda-forge/linux-64::ecl-16.1.3-4 eclib conda-forge/linux-64::eclib-20171219-0 ecm conda-forge/linux-64::ecm-7.0.4-ha14ba45_1002 entrypoints conda-forge/linux-64::entrypoints-0.3-py27_1000 enum34 conda-forge/linux-64::enum34-1.1.6-py27_1001 expat conda-forge/linux-64::expat-2.2.5-hf484d3e_1002 fastcache conda-forge/linux-64::fastcache-1.0.2-py27h14c3975_1001 fflas-ffpack conda-forge/linux-64::fflas-ffpack-2.2.2-blas_openblas_0 fftw conda-forge/linux-64::fftw-3.3.8-h14c3975_1002 flintqs conda-forge/linux-64::flintqs-1.0-0 fontconfig conda-forge/linux-64::fontconfig-2.12.1-6 fplll conda-forge/linux-64::fplll-5.2.0-0 fpylll conda-forge/linux-64::fpylll-0.3.0dev-py27_1 freetype conda-forge/linux-64::freetype-2.7-2 functools32 conda-forge/noarch::functools32-3.2.3.2-py_3 future conda-forge/linux-64::future-0.17.1-py27_1000 futures conda-forge/linux-64::futures-3.2.0-py27_1000 gap conda-forge/linux-64::gap-4.8.6-2 gettext conda-forge/linux-64::gettext-0.19.8.1-h9745a5d_1001 gf2x conda-forge/linux-64::gf2x-1.1-0 gfan conda-forge/linux-64::gfan-0.6.2-h0eace8b_1 giac conda-forge/linux-64::giac-1.2.3.25-blas_openblas_0 giflib conda-forge/linux-64::giflib-5.1.4-h14c3975_1001 givaro conda-forge/linux-64::givaro-4.0.4-he08cec2_1001 glib conda-forge/linux-64::glib-2.51.4-0 glpk conda-forge/linux-64::glpk-4.61-1 gmp conda-forge/linux-64::gmp-6.1.2-hf484d3e_1000 gmpy2 conda-forge/linux-64::gmpy2-2.0.8-py27_1 graphite2 conda-forge/linux-64::graphite2-1.3.13-hf484d3e_1000 gsl conda-forge/linux-64::gsl-2.2.1-blas_openblas_3 harfbuzz conda-forge/linux-64::harfbuzz-1.4.3-0 icu conda-forge/linux-64::icu-58.2-hf484d3e_1000 iml conda-forge/linux-64::iml-1.0.5-blas_openblas_0 importlib_metadata conda-forge/linux-64::importlib_metadata-0.8-py27_0 ipaddress conda-forge/noarch::ipaddress-1.0.22-py_1 ipykernel conda-forge/linux-64::ipykernel-4.10.0-py27_1 ipython conda-forge/linux-64::ipython-5.8.0-py27_0 ipython_genutils conda-forge/noarch::ipython_genutils-0.2.0-py_1 ipywidgets conda-forge/noarch::ipywidgets-7.4.2-py_0 jinja2 conda-forge/linux-64::jinja2-2.9.6-py27_0 jpeg conda-forge/linux-64::jpeg-9c-h14c3975_1001 jsonschema conda-forge/linux-64::jsonschema-3.0.0a3-py27_1000 jupyter_client conda-forge/noarch::jupyter_client-5.2.4-py_1 jupyter_core conda-forge/noarch::jupyter_core-4.4.0-py_0 krb5 conda-forge/linux-64::krb5-1.14.6-0 lcalc conda-forge/linux-64::lcalc-1.23-0 libffi conda-forge/linux-64::libffi-3.2.1-hf484d3e_1005 libflint conda-forge/linux-64::libflint-2.5.2-1 libgap conda-forge/linux-64::libgap-4.8.6-0 libgcc conda-forge/linux-64::libgcc-7.2.0-h69d50b8_2 libgcc-ng conda-forge/linux-64::libgcc-ng-7.3.0-hdf63c60_0 libgd conda-forge/linux-64::libgd-2.2.5-2 libgfortran conda-forge/linux-64::libgfortran-3.0.0-1 libgfortran-ng conda-forge/linux-64::libgfortran-ng-7.2.0-hdf63c60_3 libiconv conda-forge/linux-64::libiconv-1.15-h14c3975_1004 libpng conda-forge/linux-64::libpng-1.6.28-2 libsodium conda-forge/linux-64::libsodium-1.0.16-h14c3975_1001 libssh2 conda-forge/linux-64::libssh2-1.8.0-h1ad7b7a_1003 libstdcxx-ng conda-forge/linux-64::libstdcxx-ng-7.3.0-hdf63c60_0 libtiff conda-forge/linux-64::libtiff-4.0.7-1 libwebp conda-forge/linux-64::libwebp-0.5.2-7 libxml2 conda-forge/linux-64::libxml2-2.9.8-h143f9aa_1005 linbox conda-forge/linux-64::linbox-1.4.2-0 lrcalc conda-forge/linux-64::lrcalc-1.2-hf484d3e_1000 m4ri conda-forge/linux-64::m4ri-20140914-0 m4rie conda-forge/linux-64::m4rie-20150908-0 markupsafe conda-forge/linux-64::markupsafe-1.1.0-py27h14c3975_1000 matplotlib conda-forge/linux-64::matplotlib-2.0.0-np111py27_2 maxima conda-forge/linux-64::maxima-5.39.0-2 metis conda-forge/linux-64::metis-5.1.0-hf484d3e_1003 mistune conda-forge/linux-64::mistune-0.8.4-py27h14c3975_1000 mpc conda-forge/linux-64::mpc-1.0.3-4 mpfi conda-forge/linux-64::mpfi-1.5.3-0 mpfr conda-forge/linux-64::mpfr-3.1.5-0 mpmath conda-forge/noarch::mpmath-1.1.0-py_0 nauty conda-forge/linux-64::nauty-2.6.7-h14c3975_1000 nbconvert conda-forge/noarch::nbconvert-5.3.1-py_1 nbformat conda-forge/noarch::nbformat-4.4.0-py_1 ncurses conda-forge/linux-64::ncurses-5.9-10 networkx conda-forge/noarch::networkx-2.2-py_1 notebook conda-forge/linux-64::notebook-5.7.4-py27_1000 ntl conda-forge/linux-64::ntl-10.3.0-1 numpy conda-forge/linux-64::numpy-1.11.3-py27_blas_openblas_202 openblas conda-forge/linux-64::openblas-0.2.19-2 openssl conda-forge/linux-64::openssl-1.0.2p-h14c3975_1002 palp conda-forge/linux-64::palp-2.1-0 pandoc conda-forge/linux-64::pandoc-2.6-1 pandocfilters conda-forge/noarch::pandocfilters-1.4.2-py_1 pango conda-forge/linux-64::pango-1.40.4-0 pari conda-forge/linux-64::pari-2.9.4-pl5.22.0.1_0 path.py conda-forge/noarch::path.py-11.5.0-py_0 pathlib2 conda-forge/linux-64::pathlib2-2.3.3-py27_1000 pcre conda-forge/linux-64::pcre-8.39-0 perl conda-forge/linux-64::perl-5.22.0.1-0 pexpect conda-forge/linux-64::pexpect-4.6.0-py27_1000 pickleshare conda-forge/linux-64::pickleshare-0.7.5-py27_1000 pip conda-forge/linux-64::pip-19.0.2-py27_0 pixman conda-forge/linux-64::pixman-0.34.0-h14c3975_1003 pkgconfig conda-forge/linux-64::pkgconfig-1.3.1-py27_1001 planarity conda-forge/linux-64::planarity-3.0.0.5-h14c3975_1002 ppl conda-forge/linux-64::ppl-1.2-0 prometheus_client conda-forge/noarch::prometheus_client-0.5.0-py_0 prompt_toolkit conda-forge/noarch::prompt_toolkit-1.0.15-py_1 psutil conda-forge/linux-64::psutil-5.5.1-py27h14c3975_0 ptyprocess conda-forge/linux-64::ptyprocess-0.6.0-py27_1000 pycrypto conda-forge/linux-64::pycrypto-2.6.1-py27h14c3975_1002 pygments conda-forge/noarch::pygments-2.3.1-py_0 pynac conda-forge/linux-64::pynac-0.7.5-py27_1 pyparsing conda-forge/noarch::pyparsing-2.3.1-py_0 pyqt conda-forge/linux-64::pyqt-4.11.4-py27_3 pyrsistent conda-forge/linux-64::pyrsistent-0.14.10-py27h14c3975_0 python conda-forge/linux-64::python-2.7.14-2 python-dateutil conda-forge/noarch::python-dateutil-2.8.0-py_0 pytz conda-forge/noarch::pytz-2018.9-py_0 pyzmq conda-forge/linux-64::pyzmq-17.1.2-py27h6afc9c9_1001 qd conda-forge/linux-64::qd-2.3.22-h1c2f66e_1002 qt conda-forge/linux-64::qt-4.8.7-7 r-base conda-forge/linux-64::r-base-3.4.1-2 ratpoints conda-forge/linux-64::ratpoints-2.1.3-ha14ba45_1002 readline conda-forge/linux-64::readline-6.2-0 rpy2 conda-forge/linux-64::rpy2-2.8.5-py27r3.4.1_0 rubiks conda-forge/linux-64::rubiks-20070912-hf484d3e_1001 rw conda-forge/linux-64::rw-0.7-1 sage conda-forge/linux-64::sage-7.6-py27_2 sagelib conda-forge/linux-64::sagelib-7.6-np111py27_blas_openblas_1 sagemath-db-combi~ conda-forge/noarch::sagemath-db-combinatorial-designs-20140630-1 sagemath-db-conwa~ conda-forge/linux-64::sagemath-db-conway-polynomials-0.4.p0-0 sagemath-db-ellip~ conda-forge/noarch::sagemath-db-elliptic-curves-0.8-ha4d7672_1 sagemath-db-graphs conda-forge/noarch::sagemath-db-graphs-20161026-1 sagemath-db-polyt~ conda-forge/noarch::sagemath-db-polytopes-20170220-1 scandir conda-forge/linux-64::scandir-1.9.0-py27h14c3975_1000 scipy conda-forge/linux-64::scipy-0.19.1-py27_blas_openblas_202 send2trash conda-forge/noarch::send2trash-1.5.0-py_0 setuptools conda-forge/linux-64::setuptools-40.8.0-py27_0 simplegeneric conda-forge/noarch::simplegeneric-0.8.1-py_1 singledispatch conda-forge/linux-64::singledispatch-3.4.0.3-py27_1000 singular conda-forge/linux-64::singular-4.1.0-0 sip conda-forge/linux-64::sip-4.18-py27_1 six conda-forge/linux-64::six-1.12.0-py27_1000 sqlite conda-forge/linux-64::sqlite-3.13.0-1 ssl_match_hostname conda-forge/noarch::ssl_match_hostname-3.7.0.1-py_1000 subprocess32 conda-forge/linux-64::subprocess32-3.5.3-py27h14c3975_0 suitesparse conda-forge/linux-64::suitesparse-4.5.4-blas_openblas_200 symmetrica conda-forge/linux-64::symmetrica-2.0-0 sympow conda-forge/linux-64::sympow-3.0.5-h14c3975_1000 sympy conda-forge/linux-64::sympy-1.3-py27_1000 tbb conda-forge/linux-64::tbb-2019.3-h6bb024c_1000 terminado conda-forge/linux-64::terminado-0.8.1-py27_1001 testpath conda-forge/linux-64::testpath-0.4.2-py27_1000 tk conda-forge/linux-64::tk-8.5.19-2 tornado conda-forge/linux-64::tornado-5.1.1-py27h14c3975_1000 traitlets conda-forge/linux-64::traitlets-4.3.2-py27_1000 wcwidth conda-forge/noarch::wcwidth-0.1.7-py_1 webencodings conda-forge/noarch::webencodings-0.5.1-py_1 wheel conda-forge/linux-64::wheel-0.33.0-py27_0 widgetsnbextension conda-forge/linux-64::widgetsnbextension-3.4.2-py27_1000 xz conda-forge/linux-64::xz-5.2.4-h14c3975_1001 zeromq conda-forge/linux-64::zeromq-4.2.5-hf484d3e_1006 zipp conda-forge/noarch::zipp-0.3.3-py_0 zlib conda-forge/linux-64::zlib-1.2.11-h14c3975_1004 zn_poly conda-forge/linux-64::zn_poly-0.9-ha14ba45_1002 Proceed ([y]/n)? Preparing transaction: done Verifying transaction: done Executing transaction: \ Enabling notebook extension jupyter-js-widgets/extension... - Validating: OK done # # To activate this environment, use # # $ conda activate sage # # To deactivate an active environment, use # # $ conda deactivate (base) d****@****** ~ $ conda activate sage (sage) d****@****** ~ $ sage ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â SageMath version 7.6, Release Date: 2017-03-25 â â Type "notebook()" for the browser-based notebook interface. â â Type "help()" for help. â ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ ********************************************************************** Oops, Sage crashed. We do our best to make it stable, but... A crash report was automatically generated with the following information: - A verbatim copy of the crash traceback. - A copy of your input history during this session. - Data on your current Sage configuration. It was left in the file named: '/****/*****/.sage/ipython-5.0.0/Sage_crash_report.txt' If you can email this file to the developers, the information in it will help them in understanding and correcting the problem. You can mail it to: sage-support at sage-support@googlegroups.com with the subject 'Sage Crash Report'. If you want to do it now, the following command will work (under Unix): mail -s 'Sage Crash Report' sage-support@googlegroups.com < /****/*****/.sage/ipython-5.0.0/Sage_crash_report.txt In your email, please also include information about: - The operating system under which the crash happened: Linux, macOS, Windows, other, and which exact version (for example: Ubuntu 16.04.3, macOS 10.13.2, Windows 10 Pro), and whether it is 32-bit or 64-bit; - How Sage was installed: using pip or conda, from GitHub, as part of a Docker container, or other, providing more detail if possible; - How to reproduce the crash: what exact sequence of instructions can one input to get the same crash? Ideally, find a minimal yet complete sequence of instructions that yields the crash. To ensure accurate tracking of this issue, please file a report about it at: http://trac.sagemath.org Hit <Enter> to quit (your terminal may close): (sage) d****@****** ~ $
*************************************************************************** IPython post-mortem report {'commit_hash': u'033ab93c7', 'commit_source': 'installation', 'default_encoding': 'UTF-8', 'ipython_path': '/***/******//miniconda3/envs/sage/lib/python2.7/site-packages/IPython', 'ipython_version': '5.8.0', 'os_name': 'posix', 'platform': 'Linux-4.15.0-45-generic-x86_64-with-debian-buster-sid', 'sys_executable': '/***/******//miniconda3/envs/sage/bin/python', 'sys_platform': 'linux2', 'sys_version': '2.7.14 | packaged by conda-forge | (default, Dec 9 2017, 16:18:43) \n[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)]'} *************************************************************************** *************************************************************************** Crash traceback: --------------------------------------------------------------------------- --------------------------------------------------------------------------- ImportError Python 2.7.14: /***/******//miniconda3/envs/sage/bin/python Tue Feb 19 18:06:21 2019 A problem occurred executing Python code. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call last. /***/******//miniconda3/envs/sage/bin/sage-ipython in <module>() 1 #!/***/******//miniconda3/envs/sage/bin/python 2 # -*- coding: utf-8 -*- 3 """ 4 Sage IPython startup script. 5 """ 6 7 from sage.repl.interpreter import SageTerminalApp 8 9 app = SageTerminalApp.instance() ---> 10 app.initialize() global app.initialize = <bound method SageTerminalApp.initialize of <sage.repl.interpreter.SageTerminalApp object at 0x7f9c21a4e090>> 11 app.start() </***/******//miniconda3/envs/sage/lib/python2.7/site-packages/decorator.pyc:decorator-gen-110> in initialize(self=<sage.repl.interpreter.SageTerminalApp object>, argv=None) /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/traitlets/config/application.pyc in catch_config_error(method=<function initialize>, app=<sage.repl.interpreter.SageTerminalApp object>, *args=(None,), **kwargs={}) 72 TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR = False 73 else: 74 raise ValueError("Unsupported value for environment variable: 'TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR' is set to '%s' which is none of {'0', '1', 'false', 'true', ''}."% _envvar ) 75 76 77 @decorator 78 def catch_config_error(method, app, *args, **kwargs): 79 """Method decorator for catching invalid config (Trait/ArgumentErrors) during init. 80 81 On a TraitError (generally caused by bad config), this will print the trait's 82 message, and exit the app. 83 84 For use on init methods, to prevent invoking excepthook on invalid input. 85 """ 86 try: ---> 87 return method(app, *args, **kwargs) method = <function initialize at 0x7f9c1b12a140> app = <sage.repl.interpreter.SageTerminalApp object at 0x7f9c21a4e090> args = (None,) kwargs = {} 88 except (TraitError, ArgumentError) as e: 89 app.print_help() 90 app.log.fatal("Bad config encountered during initialization:") 91 app.log.fatal(str(e)) 92 app.log.debug("Config at the time: %s", app.config) 93 app.exit(1) 94 95 96 class ApplicationError(Exception): 97 pass 98 99 100 class LevelFormatter(logging.Formatter): 101 """Formatter with additional `highlevel` record 102 /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/IPython/terminal/ipapp.pyc in initialize(self=<sage.repl.interpreter.SageTerminalApp object>, argv=None) 301 302 return super(TerminalIPythonApp, self).parse_command_line(argv) 303 304 @catch_config_error 305 def initialize(self, argv=None): 306 """Do actions after construct, but before starting the app.""" 307 super(TerminalIPythonApp, self).initialize(argv) 308 if self.subapp is not None: 309 # don't bother initializing further, starting subapp 310 return 311 # print self.extra_args 312 if self.extra_args and not self.something_to_run: 313 self.file_to_run = self.extra_args[0] 314 self.init_path() 315 # create the shell --> 316 self.init_shell() self.init_shell = <bound method SageTerminalApp.init_shell of <sage.repl.interpreter.SageTerminalApp object at 0x7f9c21a4e090>> 317 # and draw the banner 318 self.init_banner() 319 # Now a variety of things that happen after the banner is printed. 320 self.init_gui_pylab() 321 self.init_extensions() 322 self.init_code() 323 324 def init_shell(self): 325 """initialize the InteractiveShell instance""" 326 # Create an InteractiveShell instance. 327 # shell.display_banner should always be False for the terminal 328 # based app, because we call shell.show_banner() by hand below 329 # so the banner shows *before* all extension loading stuff. 330 self.shell = self.interactive_shell_class.instance(parent=self, 331 profile_dir=self.profile_dir, /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/repl/interpreter.pyc in init_shell(self=<sage.repl.interpreter.SageTerminalApp object>) 747 self.shell.has_sage_extensions = SAGE_EXTENSION in self.extensions 748 749 # Load the %lprun extension if available 750 try: 751 import line_profiler 752 except ImportError: 753 pass 754 else: 755 self.extensions.append('line_profiler') 756 757 if self.shell.has_sage_extensions: 758 self.extensions.remove(SAGE_EXTENSION) 759 760 # load sage extension here to get a crash if 761 # something is wrong with the sage library --> 762 self.shell.extension_manager.load_extension(SAGE_EXTENSION) self.shell.extension_manager.load_extension = <bound method ExtensionManager.load_extension of <IPython.core.extensions.ExtensionManager object at 0x7f9c1a34dcd0>> global SAGE_EXTENSION = 'sage' 763 764 /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/IPython/core/extensions.pyc in load_extension(self=<IPython.core.extensions.ExtensionManager object>, module_str='sage') 70 71 Returns the string "already loaded" if the extension is already loaded, 72 "no load function" if the module doesn't have a load_ipython_extension 73 function, or None if it succeeded. 74 """ 75 if module_str in self.loaded: 76 return "already loaded" 77 78 from IPython.utils.syspathcontext import prepended_to_syspath 79 80 with self.shell.builtin_trap: 81 if module_str not in sys.modules: 82 with prepended_to_syspath(self.ipython_extension_dir): 83 __import__(module_str) 84 mod = sys.modules[module_str] ---> 85 if self._call_load_ipython_extension(mod): self._call_load_ipython_extension = <bound method ExtensionManager._call_load_ipython_extension of <IPython.core.extensions.ExtensionManager object at 0x7f9c1a34dcd0>> mod = <module 'sage' from '/***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/__init__.pyc'> 86 self.loaded.add(module_str) 87 else: 88 return "no load function" 89 90 def unload_extension(self, module_str): 91 """Unload an IPython extension by its module name. 92 93 This function looks up the extension's name in ``sys.modules`` and 94 simply calls ``mod.unload_ipython_extension(self)``. 95 96 Returns the string "no unload function" if the extension doesn't define 97 a function to unload itself, "not loaded" if the extension isn't loaded, 98 otherwise None. 99 """ 100 if module_str not in self.loaded: /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/IPython/core/extensions.pyc in _call_load_ipython_extension(self=<IPython.core.extensions.ExtensionManager object>, mod=<module 'sage' from '/***/******//miniconda3/e...e/lib/python2.7/site-packages/sage/__init__.pyc'>) 117 """ 118 from IPython.utils.syspathcontext import prepended_to_syspath 119 120 if (module_str in self.loaded) and (module_str in sys.modules): 121 self.unload_extension(module_str) 122 mod = sys.modules[module_str] 123 with prepended_to_syspath(self.ipython_extension_dir): 124 reload(mod) 125 if self._call_load_ipython_extension(mod): 126 self.loaded.add(module_str) 127 else: 128 self.load_extension(module_str) 129 130 def _call_load_ipython_extension(self, mod): 131 if hasattr(mod, 'load_ipython_extension'): --> 132 mod.load_ipython_extension(self.shell) mod.load_ipython_extension = <function load_ipython_extension at 0x7f9c21a41938> self.shell = <sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7f9c1b0caa10> 133 return True 134 135 def _call_unload_ipython_extension(self, mod): 136 if hasattr(mod, 'unload_ipython_extension'): 137 mod.unload_ipython_extension(self.shell) 138 return True 139 140 def install_extension(self, url, filename=None): 141 """Download and install an IPython extension. 142 143 If filename is given, the file will be so named (inside the extension 144 directory). Otherwise, the name from the URL will be used. The file must 145 have a .py or .zip extension; otherwise, a ValueError will be raised. 146 147 Returns the full path to the installed file. /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/__init__.pyc in load_ipython_extension(*args=(<sage.repl.interpreter.SageTerminalInteractiveShell object>,)) 1 __all__ = ['all'] 2 3 # IPython calls this when starting up 4 def load_ipython_extension(*args): 5 import sage.repl.ipython_extension ----> 6 sage.repl.ipython_extension.load_ipython_extension(*args) sage.repl.ipython_extension.load_ipython_extension = <function load_ipython_extension at 0x7f9c1a1048c0> args = (<sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7f9c1b0caa10>,) /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc in wrapper(*args=(<sage.repl.interpreter.SageTerminalInteractiveShell object>,), **kwargs={}) 490 ....: if work: 491 ....: return 'foo worked' 492 ....: raise RuntimeError("foo didn't work") 493 sage: foo(False) 494 Traceback (most recent call last): 495 ... 496 RuntimeError: foo didn't work 497 sage: foo(True) 498 'foo worked' 499 sage: foo(False) 500 sage: foo(True) 501 """ 502 @wraps(func) 503 def wrapper(*args, **kwargs): 504 if not wrapper.has_run: --> 505 result = func(*args, **kwargs) result = undefined global func = undefined args = (<sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7f9c1b0caa10>,) kwargs = {} 506 wrapper.has_run = True 507 return result 508 wrapper.has_run = False 509 return wrapper 510 511 512 @run_once 513 def load_ipython_extension(ip): 514 """ 515 Load the extension in IPython. 516 """ 517 # this modifies ip 518 SageCustomizations(shell=ip) /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc in load_ipython_extension(ip=<sage.repl.interpreter.SageTerminalInteractiveShell object>) 503 def wrapper(*args, **kwargs): 504 if not wrapper.has_run: 505 result = func(*args, **kwargs) 506 wrapper.has_run = True 507 return result 508 wrapper.has_run = False 509 return wrapper 510 511 512 @run_once 513 def load_ipython_extension(ip): 514 """ 515 Load the extension in IPython. 516 """ 517 # this modifies ip --> 518 SageCustomizations(shell=ip) global SageCustomizations = <class 'sage.repl.ipython_extension.SageCustomizations'> global shell = undefined ip = <sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7f9c1b0caa10> /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc in __init__(self=<sage.repl.ipython_extension.SageCustomizations object>, shell=<sage.repl.interpreter.SageTerminalInteractiveShell object>) 361 def __init__(self, shell=None): 362 """ 363 Initialize the Sage plugin. 364 """ 365 self.shell = shell 366 367 self.auto_magics = SageMagics(shell) 368 self.shell.register_magics(self.auto_magics) 369 370 import sage.misc.edit_module as edit_module 371 self.shell.set_hook('editor', edit_module.edit_devel) 372 373 self.init_inspector() 374 self.init_line_transforms() 375 --> 376 import sage.all # until sage's import hell is fixed sage.all = undefined 377 378 self.shell.verbose_quit = True 379 self.set_quit_hook() 380 381 self.register_interface_magics() 382 383 if SAGE_IMPORTALL == 'yes': 384 self.init_environment() 385 386 def register_interface_magics(self): 387 """ 388 Register magics for each of the Sage interfaces 389 """ 390 from sage.repl.interface_magic import InterfaceMagic 391 InterfaceMagic.register_all(self.shell) /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/all.py in <module>() 88 89 from time import sleep 90 91 import sage.misc.lazy_import 92 from sage.misc.all import * # takes a while 93 from sage.typeset.all import * 94 from sage.repl.all import * 95 96 from sage.misc.sh import sh 97 98 from sage.libs.all import * 99 from sage.data_structures.all import * 100 from sage.doctest.all import * 101 102 from sage.structure.all import * --> 103 from sage.rings.all import * global sage.rings.all = undefined 104 from sage.arith.all import * 105 from sage.matrix.all import * 106 107 from sage.symbolic.all import * 108 from sage.modules.all import * 109 from sage.monoids.all import * 110 from sage.algebras.all import * 111 from sage.modular.all import * 112 from sage.sat.all import * 113 from sage.schemes.all import * 114 from sage.graphs.all import * 115 from sage.groups.all import * 116 from sage.databases.all import * 117 from sage.categories.all import * 118 from sage.sets.all import * /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/all.py in <module>() 39 40 # Rational numbers 41 from .rational_field import RationalField, QQ 42 from .rational import Rational 43 Rationals = RationalField 44 45 # Integers modulo n. 46 from sage.rings.finite_rings.integer_mod_ring import IntegerModRing, Zmod 47 from sage.rings.finite_rings.integer_mod import IntegerMod, Mod, mod 48 Integers = IntegerModRing 49 50 # Finite fields 51 from .finite_rings.all import * 52 53 # Number field ---> 54 from .number_field.all import * global number_field.all = undefined 55 56 # Function field 57 from .function_field.all import * 58 59 # Finite residue fields 60 from .finite_rings.residue_field import ResidueField 61 62 # p-adic field 63 from .padics.all import * 64 from .padics.padic_printing import _printer_defaults as padic_printing 65 66 # Semirings 67 from .semirings.all import * 68 69 # Real numbers /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/number_field/all.py in <module>() 1 from __future__ import absolute_import 2 3 from .number_field import (NumberField, NumberFieldTower, CyclotomicField, QuadraticField, 4 is_fundamental_discriminant) 5 from .number_field_element import NumberFieldElement 6 7 from .order import EquationOrder, GaussianIntegers, EisensteinIntegers 8 ----> 9 from .totallyreal import enumerate_totallyreal_fields_prim global totallyreal = undefined global enumerate_totallyreal_fields_prim = undefined 10 from .totallyreal_data import hermite_constant 11 from .totallyreal_rel import enumerate_totallyreal_fields_all, enumerate_totallyreal_fields_rel 12 13 from .unit_group import UnitGroup /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/number_field/totallyreal_data.pxd in init sage.rings.number_field.totallyreal (/feedstock_root/build_artefacts/sagelib_1496649974235/work/sage-7.6/build/cythonized/sage/rings/number_field/totallyreal.c:12569)() 1 cdef double eval_seq_as_poly(int *f, int n, double x) 2 cdef double newton(int *f, int *df, int n, double x0, double eps) 3 cdef void newton_in_intervals(int *f, int *df, int n, double *beta, double eps, double *rts) 4 cpdef lagrange_degree_3(int n, int an1, int an2, int an3) 5 6 cimport sage.rings.integer 7 8 cdef int eval_seq_as_poly_int(int *f, int n, int x) 9 10 cdef int easy_is_irreducible(int *a, int n) 11 ---> 12 cdef class tr_data: global cdef = undefined global tr_data = undefined 13 14 cdef int n, k 15 cdef double B 16 cdef double b_lower, b_upper, gamma 17 18 cdef int *a 19 cdef int *amax 20 cdef double *beta 21 cdef int *gnk 22 23 cdef int *df 24 25 cdef void incr(self, int *f_out, int verbose, int haltk, int phc) 26 sage/rings/number_field/totallyreal_data.pyx in init sage.rings.number_field.totallyreal_data (/feedstock_root/build_artefacts/sagelib_1496649974235/work/sage-7.6/build/cythonized/sage/rings/number_field/totallyreal_data.c:13278)() /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring_constructor.pyc in PolynomialRing(base_ring=Integer Ring, arg1='x', arg2=None, sparse=False, order='degrevlex', names=None, name='x', var_array=None, implementation=None) 446 arg2 = [str(x) for x in arg2] 447 if isinstance(arg2, (int, long, Integer)): 448 # 3. PolynomialRing(base_ring, names, n, order='degrevlex'): 449 if not isinstance(arg1, (list, tuple, str)): 450 raise TypeError("You *must* specify the names of the variables.") 451 n = int(arg2) 452 names = arg1 453 R = _multi_variate(base_ring, names, n, sparse, order, implementation) 454 455 elif isinstance(arg1, str) or (isinstance(arg1, (list,tuple)) and len(arg1) == 1): 456 if not ',' in arg1: 457 # 1. PolynomialRing(base_ring, name, sparse=False): 458 if not arg2 is None: 459 raise TypeError("if second arguments is a string with no commas, then there must be no other non-optional arguments") 460 name = arg1 --> 461 R = _single_variate(base_ring, name, sparse, implementation) R = None global _single_variate = <function _single_variate at 0x7f9afd826cf8> base_ring = Integer Ring name = 'x' sparse = False implementation = None 462 else: 463 # 2-4. PolynomialRing(base_ring, names, order='degrevlex'): 464 if not arg2 is None: 465 raise TypeError("invalid input to PolynomialRing function; please see the docstring for that function") 466 names = arg1.split(',') 467 R = _multi_variate(base_ring, names, -1, sparse, order, implementation) 468 elif isinstance(arg1, (list, tuple)): 469 # PolynomialRing(base_ring, names (list or tuple), order='degrevlex'): 470 names = arg1 471 R = _multi_variate(base_ring, names, -1, sparse, order, implementation) 472 473 if arg1 is None and arg2 is None: 474 raise TypeError("you *must* specify the indeterminates (as not None).") 475 if R is None: 476 raise TypeError("invalid input (%s, %s, %s) to PolynomialRing function; please see the docstring for that function"%( /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring_constructor.pyc in _single_variate(base_ring=Integer Ring, name=('x',), sparse=False, implementation=None) 524 R = m.PolynomialRing_dense_padic_ring_capped_absolute(base_ring, name) 525 526 elif isinstance(base_ring, padic_base_leaves.pAdicRingFixedMod): 527 R = m.PolynomialRing_dense_padic_ring_fixed_mod(base_ring, name) 528 529 elif base_ring in _CompleteDiscreteValuationRings: 530 R = m.PolynomialRing_cdvr(base_ring, name, sparse) 531 532 elif base_ring in _CompleteDiscreteValuationFields: 533 R = m.PolynomialRing_cdvf(base_ring, name, sparse) 534 535 elif base_ring.is_field(proof = False): 536 R = m.PolynomialRing_field(base_ring, name, sparse) 537 538 elif base_ring.is_integral_domain(proof = False): --> 539 R = m.PolynomialRing_integral_domain(base_ring, name, sparse, implementation) R = None m.PolynomialRing_integral_domain = <class 'sage.rings.polynomial.polynomial_ring.PolynomialRing_integral_domain'> base_ring = Integer Ring name = ('x',) sparse = False implementation = None 540 else: 541 R = m.PolynomialRing_commutative(base_ring, name, sparse) 542 else: 543 R = m.PolynomialRing_general(base_ring, name, sparse) 544 545 if hasattr(R, '_implementation_names'): 546 for name in R._implementation_names: 547 real_key = key[0:3] + (name,) 548 _save_in_cache(real_key, R) 549 else: 550 _save_in_cache(key, R) 551 return R 552 553 def _multi_variate(base_ring, names, n, sparse, order, implementation): 554 # if not sparse: /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring.pyc in __init__(self=Univariate Polynomial Ring in x over Integer Ring, base_ring=Integer Ring, name=('x',), sparse=False, implementation=None, element_class=<type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'>, category=None) 1588 if is_IntegerRing(base_ring) and not sparse: 1589 if implementation == 'NTL': 1590 from sage.rings.polynomial.polynomial_integer_dense_ntl \ 1591 import Polynomial_integer_dense_ntl 1592 element_class = Polynomial_integer_dense_ntl 1593 self._implementation_names = ('NTL',) 1594 self._implementation_repr = ' (using NTL)' 1595 elif implementation == 'FLINT' or implementation is None: 1596 from sage.rings.polynomial.polynomial_integer_dense_flint \ 1597 import Polynomial_integer_dense_flint 1598 element_class = Polynomial_integer_dense_flint 1599 self._implementation_names = (None, 'FLINT') 1600 else: 1601 raise ValueError("Unknown implementation %s for ZZ[x]"%implementation) 1602 PolynomialRing_commutative.__init__(self, base_ring, name=name, -> 1603 sparse=sparse, element_class=element_class, category=category) sparse = False element_class = <type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'> category = None 1604 1605 def _repr_(self): 1606 """ 1607 TESTS:: 1608 1609 sage: from sage.rings.polynomial.polynomial_ring import PolynomialRing_integral_domain as PRing 1610 sage: R = PRing(ZZ, 'x', implementation='NTL'); R 1611 Univariate Polynomial Ring in x over Integer Ring (using NTL) 1612 """ 1613 s = PolynomialRing_commutative._repr_(self) 1614 return s + self._implementation_repr 1615 1616 1617 class PolynomialRing_field(PolynomialRing_integral_domain, 1618 PolynomialRing_singular_repr, /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring.pyc in __init__(self=Univariate Polynomial Ring in x over Integer Ring, base_ring=Integer Ring, name=('x',), sparse=False, element_class=<type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'>, category=Join of Category of unique factorization domains...s and infinite enumerated sets and metric spaces)) 1459 if max_degree is not None and of_degree is None: 1460 return self._monics_max( max_degree ) 1461 raise ValueError("you should pass exactly one of of_degree and max_degree") 1462 1463 class PolynomialRing_commutative(PolynomialRing_general, commutative_algebra.CommutativeAlgebra): 1464 """ 1465 Univariate polynomial ring over a commutative ring. 1466 """ 1467 def __init__(self, base_ring, name=None, sparse=False, element_class=None, category=None): 1468 if base_ring not in _CommutativeRings: 1469 raise TypeError("Base ring %s must be a commutative ring."%repr(base_ring)) 1470 # We trust that, if a category is given, that it is useful. 1471 if category is None: 1472 category = polynomial_default_category(base_ring.category(),False) 1473 PolynomialRing_general.__init__(self, base_ring, name=name, -> 1474 sparse=sparse, element_class=element_class, category=category) sparse = False element_class = <type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'> category = Join of Category of unique factorization domains and Category of commutative algebras over (euclidean domains and infinite enumerated sets and metric spaces) 1475 1476 def quotient_by_principal_ideal(self, f, names=None): 1477 """ 1478 Return the quotient of this polynomial ring by the principal 1479 ideal (generated by) `f`. 1480 1481 INPUT: 1482 1483 - ``f`` - either a polynomial in ``self``, or a principal 1484 ideal of ``self``. 1485 1486 EXAMPLES:: 1487 1488 sage: R.<x> = QQ[] 1489 sage: I = (x^2-1)*R /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring.pyc in __init__(self=Univariate Polynomial Ring in x over Integer Ring, base_ring=Integer Ring, name=('x',), sparse=False, element_class=<type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'>, category=Join of Category of unique factorization domains...s and infinite enumerated sets and metric spaces)) 275 self._has_singular = False 276 # Algebra.__init__ also calls __init_extra__ of Algebras(...).parent_class, which 277 # tries to provide a conversion from the base ring, if it does not exist. 278 # This is for algebras that only do the generic stuff in their initialisation. 279 # But the attribute _no_generic_basering_coercion prevents that from happening, 280 # since we want to use PolynomialBaseringInjection. 281 sage.algebras.algebra.Algebra.__init__(self, base_ring, names=name, normalize=True, category=category) 282 self.__generator = self.element_class(self, [0,1], is_gen=True) 283 self._populate_coercion_lists_( 284 #coerce_list = [base_inject], 285 #convert_list = [list, base_inject], 286 convert_method_name = '_polynomial_') 287 if is_PolynomialRing(base_ring): 288 self._Karatsuba_threshold = 0 289 else: --> 290 from sage.matrix.matrix_space import MatrixSpace global sage.matrix.matrix_space = undefined MatrixSpace = undefined 291 if isinstance(base_ring, MatrixSpace): 292 self._Karatsuba_threshold = 0 293 else: 294 self._Karatsuba_threshold = 8 295 296 def __reduce__(self): 297 import sage.rings.polynomial.polynomial_ring_constructor 298 return (sage.rings.polynomial.polynomial_ring_constructor.PolynomialRing, 299 (self.base_ring(), self.variable_name(), None, self.is_sparse())) 300 301 302 def _element_constructor_(self, x=None, check=True, is_gen=False, 303 construct=False, **kwds): 304 r""" 305 Convert ``x`` into this univariate polynomial ring, /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/matrix/matrix_space.pyc in <module>() 33 #***************************************************************************** 34 from __future__ import print_function, absolute_import 35 from six.moves import range 36 from six import iteritems 37 38 # System imports 39 import sys 40 import types 41 import operator 42 43 # Sage matrix imports 44 from . import matrix 45 from . import matrix_generic_dense 46 from . import matrix_generic_sparse 47 ---> 48 from . import matrix_modn_sparse global matrix_modn_sparse = undefined 49 50 from . import matrix_mod2_dense 51 from . import matrix_gf2e_dense 52 53 from . import matrix_integer_dense 54 from . import matrix_integer_sparse 55 56 from . import matrix_rational_dense 57 from . import matrix_rational_sparse 58 59 from . import matrix_polynomial_dense 60 from . import matrix_mpolynomial_dense 61 62 # Sage imports 63 from sage.misc.superseded import deprecation /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/matrix/matrix_integer_dense.pxd in init sage.matrix.matrix_modn_sparse (/feedstock_root/build_artefacts/sagelib_1496649974235/work/sage-7.6/build/cythonized/sage/matrix/matrix_modn_sparse.c:15049)() 1 from sage.libs.gmp.types cimport * 2 from sage.libs.flint.types cimport fmpz_mat_t 3 4 from .matrix_dense cimport Matrix_dense 5 from sage.rings.integer cimport Integer 6 from sage.ext.mod_int cimport * 7 8 ctypedef long* GEN 9 ---> 10 cdef class Matrix_integer_dense(Matrix_dense): global cdef = undefined global Matrix_integer_dense = undefined global Matrix_dense = undefined 11 cdef fmpz_mat_t _matrix # Always initialized in __cinit__ 12 cdef bint _initialized_mpz 13 cdef mpz_t * _entries # Only used if _initialized_mpz 14 cdef mpz_t ** _rows # Only used if _initialized_mpz 15 cdef object _pivots 16 cdef int mpz_height(self, mpz_t height) except -1 17 cdef _mod_int_c(self, mod_int modulus) 18 cdef _mod_two(self) 19 cdef _pickle_version0(self) 20 cdef _unpickle_version0(self, data) 21 cpdef _export_as_string(self, int base=?) 22 cdef inline int _init_mpz(self) except -1 23 cdef int _init_mpz_impl(self) except -1 24 cdef inline int _init_linbox(self) except -1 25 cdef void _dealloc_mpz(self) 26 cdef void set_unsafe_mpz(self, Py_ssize_t i, Py_ssize_t j, const mpz_t value) 27 cdef void set_unsafe_si(self, Py_ssize_t i, Py_ssize_t j, long value) 28 cdef void set_unsafe_double(self, Py_ssize_t i, Py_ssize_t j, double value) 29 cdef inline void get_unsafe_mpz(self, Py_ssize_t i, Py_ssize_t j, mpz_t value) 30 cdef inline double get_unsafe_double(self, Py_ssize_t i, Py_ssize_t j) 31 /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/matrix/matrix_modn_dense_template_header.pxi in init sage.matrix.matrix_integer_dense (/feedstock_root/build_artefacts/sagelib_1496649974235/work/sage-7.6/build/cythonized/sage/matrix/matrix_integer_dense.c:57312)() 1 """ 2 Dense Matrix Template for C/C++ Library Interfaces 3 """ 4 5 from sage.ext.mod_int cimport * 6 from sage.matrix.matrix_dense cimport Matrix_dense 7 ----> 8 cdef class Matrix_modn_dense_template(Matrix_dense): global cdef = undefined global Matrix_modn_dense_template = undefined global Matrix_dense = undefined 9 cdef celement **_matrix 10 cdef celement *_entries 11 cdef mod_int p 12 cdef xgcd_eliminate (self, celement * row1, celement* row2, Py_ssize_t start_col) 13 cdef set_unsafe_int(self, Py_ssize_t i, Py_ssize_t j, int value) 14 cpdef _export_as_string(self) 15 cdef int _copy_row_to_mod_int_array(self, mod_int *to, Py_ssize_t i) ImportError: /***/******//miniconda3/envs/sage/lib/python2.7/site-packages/sage/matrix/../../../../liblinboxsage.so.0: undefined symbol: _ZNK6Givaro7IntegercvSsEv *************************************************************************** History of session input: *** Last line of input (may not be in above history):