[sphinxjp.themes.htmlslide] Throws 'No theme found' (Sphinx beginner)

35 views
Skip to first unread message

Varenne Riocha

unread,
Oct 17, 2020, 6:11:17 AM10/17/20
to sphinx-users
Hallo Sphinx-users

Sphinx beginner and only a couple weeks in to Python world. Likely that I am making a nooby mistake.

I want to try https://pythonhosted.org/sphinxjp.themes.htmlslide/ and getting 'No theme found'. This is what I am doing. BTW, on Debian Linux "Buster" derivative MX-Linux. Conda installed.

$ cat ~/.conda_init
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/usr/local/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/usr/local/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/usr/local/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/usr/local/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

$ source ~/.conda_init

$ sphinx-quickstart myslides
(all y/n with enter)
$ cd myslides
(cleaned config.py attached)

$ make html
(gives me the expected ./_build/html)

Edited conf.py making
extensions = ['sphinxjp.themecore'] 

$ make html
make html
Sphinx v3.1.2 in Verwendung
WARNING: the extension 'sphinxjp.themecore' was already merged with Sphinx since version 1.2; this extension is ignored.
loading pickled environment... erledigt

So I took the change back.

Then edited conf.py to
html_theme = 'htmlslide'  

$ make html
loading pickled environment... erledigt
Theme error:
no theme named 'htmlslide' found (missing theme.conf?)

$ sudo easy_install sphinxjp.themes.htmlslide
[sudo] Passwort für ..: 
WARNING: The easy_install command is deprecated and will be removed in a future version.
Searching for sphinxjp.themes.htmlslide
Best match: sphinxjp.themes.htmlslide 0.1.4
Processing sphinxjp.themes.htmlslide-0.1.4-py3.7.egg
sphinxjp.themes.htmlslide 0.1.4 is already the active version in easy-install.pth

Using /usr/local/lib/python3.7/dist-packages/sphinxjp.themes.htmlslide-0.1.4-py3.7.egg
Processing dependencies for sphinxjp.themes.htmlslide
Finished processing dependencies for sphinxjp.themes.htmlslide

But still
$ make html
Sphinx v3.1.2 in Verwendung
loading pickled environment... erledigt

Theme error:
no theme named 'htmlslide' found (missing theme.conf?)

What I am doing wrong?

conf.py

Varenne Riocha

unread,
Oct 19, 2020, 3:13:17 AM10/19/20
to sphinx-users
I tried the conf.py of both sphinxjp.themes.htmlslide and sphinxjp.themes.revealjs from https://sphinx-themes.org/, with the same result. How do I add the theme to Sphinx? I'm on Debian 10, environment controlled by conda, as wrote earlier.

Matt from Documatt

unread,
Oct 19, 2020, 8:47:38 AM10/19/20
to sphinx...@googlegroups.com
I have no exact answer because you use Anaconda instead of venv/virtualenv and an old theme. However, try the following:

1. Create fresh virtual environment.
2. Don't install theme with easy_install. It's very old way of installing Python stuff. Because you use Conda, I can't help you. But if you would use standard virtualenv or venv builtin module, command would be "pip3 install sphinxjp.themes.htmlslide".
3. "make HTML" should work now

Matt


--
You received this message because you are subscribed to the Google Groups "sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/50a57ce2-ce17-4d74-a72a-a3ebcda9bbf9n%40googlegroups.com.

Varenne Riocha

unread,
Oct 20, 2020, 9:49:01 AM10/20/20
to sphinx...@googlegroups.com
Hi Matt

Thanks for the reply. In fact I had a virtualenv also ready. So I did this:
$ source .pythonenv/bin/activate
$ pip3 install sphinxjp.themes.htmlslide
(ran without problems)
$ sphinx-quickstart myslides
$ cd myslides/
$ make html
(I get the expected web site)
$ vi conf.py 
(changed html_theme = 'htmlslide')
$ make html
Sphinx v3.2.1 in Verwendung

loading pickled environment... erledigt

Theme error:
no theme named 'htmlslide' found (missing theme.conf?)
make: *** [Makefile:20: html] Fehler 2

So the same reaction. Something more is missing. All help appreciated.

Varenne
Reply all
Reply to author
Forward
0 new messages