Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

broken symbolic link: doc -> /doesnotexist/html/en #52

Open
beliaevs opened this issue Dec 1, 2020 · 3 comments
Open

broken symbolic link: doc -> /doesnotexist/html/en #52

beliaevs opened this issue Dec 1, 2020 · 3 comments

Comments

@beliaevs
Copy link

beliaevs commented Dec 1, 2020

After installation of sage 9.2 local documentation is not accessible from jupyter notebook: http://localhost:8888/kernelspecs/sagemath/doc/index.html?v=20201201102718 gets 404: not found.
From sage console:
$ cd /opt/sagemath-9.2/local/share/jupyter/kernels/sagemath
$ file doc
doc: broken symbolic link to /doesnotexist/html/en

Directory C:\Program Files\SageMath 9.2\runtime\opt\sagemath-9.2\local\share\doc\sage\html\en exists an is OK.

@embray
Copy link
Contributor

embray commented Dec 1, 2020

I'm looking into it. The new installer had to change some things about how symlinks are handled, so it's entirely possible something got borked here

@embray
Copy link
Contributor

embray commented Dec 1, 2020

Turns out this is not unique to the Windows version, and is also broken upstream: https://trac.sagemath.org/ticket/30903

For the time being you can work around it by fixing the symlink. In the Sage shell run:

$ ln -sf $SAGE_ROOT/local/share/doc/sage/html/en $SAGE_ROOT/local/share/jupyter/kernels/sagemath/doc

@beliaevs
Copy link
Author

beliaevs commented Dec 1, 2020

Turns out this is not unique to the Windows version, and is also broken upstream: https://trac.sagemath.org/ticket/30903

For the time being you can work around it by fixing the symlink. In the Sage shell run:

$ ln -sf $SAGE_ROOT/local/share/doc/sage/html/en $SAGE_ROOT/local/share/jupyter/kernels/sagemath/doc

Thanks a lot! It works, at least for Sage installed for single user.

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

No branches or pull requests

2 participants