Upgrading from 9.2.beta13 failed : I had successfully installed the optional jupyterlab
, and now make
insists on installing jupyterlab_widgets
2.0.0, which fails as follows :
cd ../.. && sage-logger -p './sage --docbuild --no-pdf-links all html ' logs/dochtml.log
[dochtml] Traceback (most recent call last):
[dochtml] File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main
[dochtml] mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
[dochtml] File "/usr/lib/python3.8/runpy.py", line 144, in _get_module_details
[dochtml] return _get_module_details(pkg_main_name, error)
[dochtml] File "/usr/lib/python3.8/runpy.py", line 111, in _get_module_details
[dochtml] __import__(pkg_name)
[dochtml] File "/usr/local/sage-9/local/lib/python3.8/site-packages/sage_setup/docbuild/__init__.py", line 58, in <module>
[dochtml] import sage.all
[dochtml] File "/usr/local/sage-9/local/lib/python3.8/site-packages/sage/all.py", line 129, in <module>
[dochtml] from sage.data_structures.all import *
[dochtml] File "/usr/local/sage-9/local/lib/python3.8/site-packages/sage/data_structures/all.py", line 3, in <module>
[dochtml] from .bitset import Bitset, FrozenBitset
[dochtml] ImportError: /usr/local/sage-9/local/lib/python3.8/site-packages/sage/data_structures/bitset.cpython-38-x86_64-linux-gnu.so: undefined symbol: _bitset_issubset
make[3]: *** [Makefile:1887 : doc-html] Erreur 1
Attempts to uninstall jupyterlab_widgets
and jupyterlab
, both via sage-spkg-uninstall
and sage -pip uninstall...
failed : make
reinstalls them.
Being stuck, I’m trying to rebuild from scratch (i. e. aftrer mace distclean
. Stay tuned…
HTH,
Well… I just scratched my previous install fpr naught, since the problem was with dochtml
…
Le jeudi 1 octobre 2020 à 11:16:01 UTC+2, François Bissey a écrit :
This is https://trac.sagemath.org/ticket/30675 as I mentioned to several people I am surprised
the fact this was needed was not picked up by the bots. Which version of gcc are you using.
System’s gcc
10 :
charpent@zen-book-flip:/usr/local/sage-9$ gcc --version
gcc (Debian 10.2.0-9) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
HTH,
Trac#30675 doesn’t rebase
cleanly with develop
. Stuck again. Suggestions ?
ptestlong
on a rebuilt 9.2.beta14+
Trac#30675
results in one transient and five permanent failures, partially different from those obtained on the same machine with 9.2.beta13
:
File | Result | P/T |
---|---|---|
src/sage/schemes/hyperelliptic_curves/monsky_washnitzer.py | Killed due to abort | P |
src/sage/tests/parigp.py | Timed out | T |
src/sage/modules/fg_pid/fgp_module.py | 3 doctests failed | P |
src/doc/en/constructions/algebraic_geometry.rst | 1 doctest failed | P |
src/doc/en/developer/coding_in_other.rst | 1 doctest failed | P |
src/sage/modules/free_module_morphism.py | 3 doctests failed | P |
A new, interesting, and (IMHO) very serious bug :
f=function("f")
var("k")
Eq=f(x).diff(x,2)/f(x)==k
with assuming(k>0):Sp=desolve(Eq,f(x),ivar=x)
with assuming(k==0):Sz=desolve(Eq,f(x),ivar=x)
with assuming(k<0):Sn=desolve(Eq,f(x),ivar=x)
var("_K1,_K2")
# with assuming(k<0): Sn1=Sn.subs(sqrt(k)==I*sqrt(abs(k))) # Crashes Sage
# with assuming(k<0): Sn2=Sn.subs(sqrt(k)==I*sqrt(-k)) # Crashes Sage also
# Maybe "with assuming..." fails ?
assume(k<0)
# Sn3=Sn.subs(sqrt(k)==I*sqrt(abs(k))) # Crash again
# Sn4=Sn.subs(sqrt(k)==I*sqrt(-k)) # Still crashes...
Similar tricks ejusdem farinae worked up to 9.2.beta13… Did pynac
handling got modified ?
What I get in a sage-shell-mode
emacs
session is in the attached PynacCrash.txt
(too long for the post body…). Advice on how to create an informative ticket welcome...
1) The problem also appears in sagecell, which contradicts my constatation of having done this yesterday…
2) The problem is not in Maxima:
;;; Loading #P"/usr/local/sage-9/local/lib/ecl/sb-bsd-sockets.fas"
;;; Loading #P"/usr/local/sage-9/local/lib/ecl/sockets.fas"
Maxima 5.44.0 http://maxima.sourceforge.net
using Lisp ECL 20.4.24
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) display2d:false;
(%o1) false
(%i2) assume(k<0);
(%o2) [k < 0]
(%i3) Eq:diff(f(x),x,2)/f(x)=k;
(%o3) 'diff(f(x),x,2)/f(x) = k
(%i4) S:ode2(Eq,f(x),x);
(%o4) f(x) = %i*%k1*sinh(sqrt(k)*x)+%k2*cosh(sqrt(k)*x)
(%i5) subst([sqrt(k)=%i*sqrt(-k)],S);
(%o5) f(x) = %k2*cos(sqrt(-k)*x)-%k1*sin(sqrt(-k)*x)
HTH,
The problem may reside in the backtranslation of a Maxima result to Sage:
charpent@zen-book-flip:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.2.beta14, Release Date: 2020-09-30 │
│ Using Python 3.8.6. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: this is a prerelease version, and it may be unstable. ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
sage: var("k")
k
sage: assume(k<0)
sage: f=function("f")
sage: Eq=f(x).diff(x,2)/f(x)==k
sage: S=desolve(Eq, f(x), ivar=x); S
_K2*cosh(sqrt(k)*x) + I*_K1*sinh(sqrt(k)*x)
sage: SS=maxima.subst([sqrt(k)==I*sqrt(-k)], S); SS
_SAGE_VAR__K2*cos(sqrt(-_SAGE_VAR_k)*_SAGE_VAR_x)-_SAGE_VAR__K1*sin(sqrt(-_SAGE_VAR_k)*_SAGE_VAR_x)
sage: SS.sage()
# CRASH :
------------------------------------------------------------------------
/usr/local/sage-9/local/lib/python3.8/site-packages/cysignals/signals.cpython-38-x86_64-linux-gnu.so(+0x842b)[0x7fac8352242b]
# Etc. ad nauseam...
HTH,