sage-notebook css problem (sage-7.2.beta6)

40 views
Skip to first unread message

Vincent Delecroix

unread,
May 3, 2016, 7:13:56 PM5/3/16
to sage-devel
Hello,

Trying to access the thematic tutorials in the sage-notebook in
sage-7.2.beta6 the main css is not found

2016-05-03 18:11:42-0500 [HTTPChannel,5,127.0.0.1] Starting protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x7f7b76934510>
[Errno 2] No such file or directory:
u'/opt/sage/local/share/doc/sage/html/en/prep/_static/default.css'
Traceback (most recent call last):
File
"/opt/sage/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
line 1475, in full_dispatch_request
rv = self.dispatch_request()
File
"/opt/sage/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File
"/opt/sage/local/lib/python2.7/site-packages/sagenb-0.11.7-py2.7.egg/sagenb/flask_version/decorators.py",
line 22, in wrapper
return f(*args, **kwds)
File
"/opt/sage/local/lib/python2.7/site-packages/sagenb-0.11.7-py2.7.egg/sagenb/flask_version/doc.py",
line 73, in doc_live
return send_file(filename)
File
"/opt/sage/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/helpers.py",
line 520, in send_file
file = open(filename, 'rb')
IOError: [Errno 2] No such file or directory:
u'/opt/sage/local/share/doc/sage/html/en/prep/_static/default.css'


Vincent

François Bissey

unread,
May 3, 2016, 7:21:02 PM5/3/16
to sage-...@googlegroups.com
Indeed I do not have this file. I think in the latest changes for the
sphinx upgrade something as been changed from "default" to "classic"
(and there is a classic.css). I wonder if we need a matching change
in sagenb.

Francois

François Bissey

unread,
May 3, 2016, 7:24:57 PM5/3/16
to sage-...@googlegroups.com

Vincent Delecroix

unread,
May 3, 2016, 7:26:54 PM5/3/16
to sage-...@googlegroups.com
Perhaps I have to rebuild the doc (something I do not do for each
release)...

François Bissey

unread,
May 3, 2016, 7:29:41 PM5/3/16
to sage-...@googlegroups.com
I do not think so:
grep -r default.css /usr/lib64/python2.7/site-packages/sagenb/*
/usr/lib64/python2.7/site-packages/sagenb/data/sage/html/notebook/doc_page.html:<link
type="text/css" rel="stylesheet" href="_static/default.css"
media="screen" />
/usr/lib64/python2.7/site-packages/sagenb/misc/sphinxify.py:#html_style
= 'default.css'

so it is static in sagenb but I have rebuild the doc (I actually done
that an insane amount of time in the last few days because of a sphinx
issue in sage-on-gentoo) and it is just not generated.

Francois
Reply all
Reply to author
Forward
0 new messages