hi,
i'm sure this used to work with earlier versions of sage, but now i'm
getting this:
sage: R.<a,b> = QQ[]
sage: I= [a-b, a+2*b]*R
sage: I.groebner_basis()
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call
last)
/Volumes/guillot home directory/progs/sage/kassel/<ipython console> in
<module>()
/Applications/sage/local/lib/python2.5/site-packages/sage/misc/
cachefunc.pyc in __call__(self, *args, **kwds)
190 return cache[key]
191 else:
--> 192 cache[key] = self.f(self._instance, *args, **kwds)
193 return cache[key]
194
/Applications/sage/local/lib/python2.5/site-packages/sage/rings/
polynomial/multi_polynomial_ideal.pyc in groebner_basis(self,
algorithm, *args, **kwds)
1956 else:
1957 try:
-> 1958 gb = self._groebner_basis_singular
("groebner", *args, **kwds)
1959 except TypeError, msg: # conversion to
Singular not supported
1960 if self.ring().term_order().is_global():
/Applications/sage/local/lib/python2.5/site-packages/sage/rings/
polynomial/multi_polynomial_ideal.pyc in wrapper(*args, **kwds)
313 execute fucntion in \code{RedSBContext}.
314 """
--> 315 with RedSBContext():
316 return func(*args, **kwds)
317 wrapper.__doc__=func.__doc__
/Applications/sage/local/lib/python2.5/site-packages/sage/rings/
polynomial/multi_polynomial_ideal.pyc in __enter__(self)
282 7*a-420*c^3+158*c^2+8*c-7
283 """
--> 284 self.o = self.singular.option("get")
285 self.singular.option("redSB")
286
/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
singular.pyc in option(self, cmd, val)
974 elif cmd == "get":
975 #return SingularFunction(self,"option")("\"get\"")
--> 976 return self(self.eval("option(get)"),"intvec")
977 elif cmd == "set":
978 if not isinstance(val,SingularElement):
/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
singular.pyc in eval(self, x, allow_semicolon, strip)
480 x += ';'
481
--> 482 s = Expect.eval(self, x)
483
484 if s.find("error") != -1 or s.find("Segment fault") !=
-1:
/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
expect.pyc in eval(self, code, strip, synchronize, **kwds)
935 try:
936 with gc_disabled():
--> 937 return '\n'.join([self._eval_line(L, **kwds)
for L in code.split('\n') if L != ''])
938 except KeyboardInterrupt:
939 # DO NOT CATCH KeyboardInterrupt, as it is being
caught
/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
expect.pyc in _eval_line(self, line, allow_use_file, wait_for_prompt)
631 try:
632 if self._expect is None:
--> 633 self._start()
634 E = self._expect
635 try:
/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
singular.pyc in _start(self, alt_message)
336 Expect._start(self, alt_message)
337 # Load some standard libraries.
--> 338 self.lib('general') # assumed loaded by misc/
constants.py
339
340 def __reduce__(self):
/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
singular.pyc in lib(self, lib, reload)
632 if not reload and lib in self.__libs:
633 return
--> 634 self.eval('LIB "%s"'%lib)
635 self.__libs.append(lib)
636
/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
singular.pyc in eval(self, x, allow_semicolon, strip)
483
484 if s.find("error") != -1 or s.find("Segment fault") !=
-1:
--> 485 raise RuntimeError, 'Singular error:\n%s'%s
486
487 if get_verbose() > 0:
RuntimeError: Singular error:
? cannot open `general.lib`
? error occurred in STDIN line 2: `LIB "general.lib";`
**********************************************************************
and, if i try again, i get the unexpected:
sage: I.groebner_basis()
verbose 0 (1790: multi_polynomial_ideal.py, groebner_basis) Warning:
falling back to very slow toy implementation.
[a, b]
what's up ? i'm using sage 3.1.4. I'm on os X now, and i haven't done
a lot of sage since i switched from ubuntu, so perhaps it's just not
installed properly -- but what could i have done possibly wrong ?
thanks !
pierre
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---