Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

live documentation in sage notebook is broken #20567

Closed
videlec opened this issue May 7, 2016 · 17 comments
Closed

live documentation in sage notebook is broken #20567

videlec opened this issue May 7, 2016 · 17 comments

Comments

@videlec
Copy link
Contributor

videlec commented May 7, 2016

See https://groups.google.com/forum/#!topic/sage-devel/k1c4Ea4lH6o

Fixed in sagemath/sagenb@640cd65

Tarball: http://sage.ugent.be/www/jdemeyer/sage/sagenb-0.13.tar.bz2

Upstream: Completely fixed; Fix reported upstream

CC: @vbraun @kcrisman @jdemeyer

Component: notebook

Author: Jeroen Demeyer

Branch/Commit: 5a36e1e

Reviewer: François Bissey

Issue created by migration from https://trac.sagemath.org/ticket/20567

@videlec videlec added this to the sage-7.2 milestone May 7, 2016
@jdemeyer
Copy link

jdemeyer commented May 9, 2016

Upstream: Completely fixed; Fix reported upstream

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link

jdemeyer commented May 9, 2016

Author: Jeroen Demeyer

@vbraun
Copy link
Member

vbraun commented May 9, 2016

comment:3

Branch?

@jdemeyer
Copy link

jdemeyer commented May 9, 2016

@jdemeyer
Copy link

jdemeyer commented May 9, 2016

New commits:

5a36e1eUpgrade sagenb to version 0.13

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link

jdemeyer commented May 9, 2016

Commit: 5a36e1e

@kiwifb
Copy link
Member

kiwifb commented May 9, 2016

Reviewer: François Bissey

@kiwifb
Copy link
Member

kiwifb commented May 9, 2016

comment:6

Looks good to me.

@videlec
Copy link
Contributor Author

videlec commented May 10, 2016

comment:7

Actually, I installed the new package and try to ran the live documentation. I still got the same error

[Errno 2] No such file or directory: u'/opt/sage/local/share/doc/sage/html/en/thematic_tutorials/_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/thematic_tutorials/_static/default.css'

What is the procedure to properly reinstall the sage notebook?

For reference I did

$ git checkout -b sagenb
$ git fetch trac u/jdemeyer/live_documentation_in_sage_notebook_is_broken
$ git merge FETCH_HEAD
$ make build

Doing the above the package is not reinstalled. It seems that the script is actually stopped after "cunningham_tables"

checking package versions... 
    4ti2-1.6.7
    alabaster-0.7.7
    arb-2.8.1.p0
    atlas-3.10.2.p2
    autotools-20141105
    babel-2.2.0
    backports_abc-0.4
    backports_ssl_match_hostname-3.5.0.1
    benzene-20130630
    bliss-0.73
    boost_cropped-1.58.0
    brial-0.8.4.3
    buckygen-1.0
    bzip2-1.0.6-20150304
    cbc-2.9.4
    ccache-3.2.2
    cddlib-094g.p0
    cephes-2.8.p1
    certifi-2016.2.28
    cliquer-1.21.p3
    cmake-3.2.3
    combinatorial_designs-20140630
    compilerwrapper-1.2
    configure-162
    conway_polynomials-0.4.p0
    coxeter3-1.1
    cryptominisat-2.9.6
"/opt/sage/build/pkgs/cunningham_tables/type" is missing.
    csdp-6.2
"/opt/sage/build/pkgs/cunningham_tables/type" is missing.
"/opt/sage/build/pkgs/cunningham_tables/type" is missing.
"/opt/sage/build/pkgs/cunningham_tables/type" is missing.
"/opt/sage/build/pkgs/cunningham_tables/type" is missing.
checking that generated files are newer than configure... done

And there are other problems that we can read from the log

ln: failed to create symbolic link 'mathjax/mathjax': File exists

@kiwifb
Copy link
Member

kiwifb commented May 10, 2016

comment:8

I see you have /opt/sage/local/lib/python2.7/site-packages/sagenb-0.11.7-py2.7.egg those eggs files are becoming a problem.

@kiwifb
Copy link
Member

kiwifb commented May 10, 2016

comment:9

cunningham_tables is not an optional package I see in the sage tree, is this coming from another ticket?

@videlec
Copy link
Contributor Author

videlec commented May 10, 2016

comment:10

cunningham_tables is indeed some optional package. But whose installation just fails

$ sage -i cunningham_tables
...
cp: cannot create directory '/cunningham_tables': Permission denied
...

EDIT: related to #15813

@kiwifb
Copy link
Member

kiwifb commented May 10, 2016

comment:11

OK so your failure seems to be due to #15813, things should improve if you remove it.

@videlec
Copy link
Contributor Author

videlec commented May 10, 2016

comment:12

Indeed, cunningham_tables completely broke everything! Thanks for helping debugging.

@vbraun
Copy link
Member

vbraun commented May 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants