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
https://techwriter.documatt.com


On Mon, Oct 19, 2020 at 9:13 AM Varenne Riocha <[email protected]>
wrote:

> 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.
>
> Varenne Riocha schrieb am Samstag, 17. Oktober 2020 um 12:11:17 UTC+2:
>
>> 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?
>>
>> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sphinx-users/50a57ce2-ce17-4d74-a72a-a3ebcda9bbf9n%40googlegroups.com
> <https://groups.google.com/d/msgid/sphinx-users/50a57ce2-ce17-4d74-a72a-a3ebcda9bbf9n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/CAOGNDW8g0L7mF6j39WR10w%3DJzNK40DnjqvcdK4T2chHGJjOAVw%40mail.gmail.com.

Reply via email to