Hi Gert.
Thanks for you help I'm now using python3.6 and latest version of pip
19.0.3 in a virtualenv. and got a lot further.
The install of extension sphinxcontrib-contentui now works but I am getting
the following error when I build our docs tree
(mysphinx) [sharonk@ip-10-1-1-10 kogdocs]$ sphinx-build -b html source
new_master
Running Sphinx v2.0.1
making output directory... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 455 source files that are out of date
updating environment: 455 added, 0 changed, 0 removed
reading sources... [100%]
...
The HTML pages are in new_master.
Exception occurred:
File "mysphinx/lib/python3.6/site-packages/sphinxcontrib/contentui.py",
line 90, in copy_assets
app.info('Copying contentui stylesheet/javascript... ', nonl=True)
AttributeError: 'Sphinx' object has no attribute 'info'
The tabs look to be working fine but the toggle-headers are broken.
An example rst looks like this
.. toggle-header::
:header: **Example 2: Creating a python script environment on Kognitio**
Other programs that have been installed on the system after the initial
installation can also be used. A script environment to run python code
can be created using::
CREATE SCRIPT ENVIRONMENT python27
COMMAND '/usr/local/bin/python2.7'
Here Python 2.7 has already been installed on all nodes in the directory
``/usr/local/bin``. On Kognitio standalone this installation can be done
easily using the Kognitio command utilities ``wxsync`` and ``wxtool``.
In the old version of Sphinx we use (1.6.3) this produces the following
html snippet for the header
<p class="toggle-header" id="extscript-env-python"><strong>Example 2:
Creating a python script environment on Kognitio</strong></p>
but with Sphinx (2.0.0) we are getting an extra paragraph that breaks the
toggle-header:
<p class="toggle-header" id="extscript-env-python"><p><strong>Example 2:
Creating a python script environment on Kognitio</strong></p>
> </p>
For reference this is the current live page
<https://kognitio.com/documentation/latest/external_scripts/script-env.html>
(created with Sphinx 1.6.3):
I'll post this Git-hub too.
Regards
Sharon
On Tuesday, April 9, 2019 at 2:57:26 PM UTC+1, [email protected] wrote:
>
> Hi all
>
> I'm running on CentOS 7
> I've install the latest Sphinx 2.0.1 into a specified directory (not the
> standard package directory) using pip3
>
> PYTHONUSERBASE=mysphinxdir pip3 install --user --ignore-installed typing
>
> PYTHONUSERBASE=mysphinxdir pip3 install --user --ignore-installed sphinx
>
>
>
> This installed fine but I now need a couple of the extensions
> sphinxcontrib-contentui and sphinxcontrib-fulltoc. Neither work I get a
> similar error on both. Below is the exception for sphinxcontrib-contentui
> The dependencies run through ok then I get the following message:
>
>
> Running setup.py install for sphinxcontrib-contentui ... done
> Exception:
> Traceback (most recent call last):
> File "/usr/lib/python3.4/site-packages/pip/basecommand.py", line 215, in
> main
> status = self.run(options, args)
> File "/usr/lib/python3.4/site-packages/pip/commands/install.py", line
> 326, in run
> strip_file_prefix=options.strip_file_prefix,
> File "/usr/lib/python3.4/site-packages/pip/req/req_set.py", line 742, in
> install
> **kwargs
> File "/usr/lib/python3.4/site-packages/pip/req/req_install.py", line 928
> , in install
> with open(inst_files_path, 'w') as f:
> FileNotFoundError: [Errno 2] No such file or directory: 'mysphinxdir
> /lib/python3.4/site-packages/sphinxcontrib_contentui-0.2.2-py3.4.egg-info/installed-files.txt'
>
>
>
> Any suggestions welcome.
>
> Thanks
> Sharon
>
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.