Closed techauthoruk closed 1 year ago
...also, I don't know why there is the:
loading pickled environment... failed
failed: No such config value: rinoh_documents
errors....where might the No such config value: rinoh_documents
error be coming from @brechtm ?
OK,
So the issue wasn't tables...it was down to the index
directive again.
If you include index
in any heading, you get the issue. So, although for main headings
:index:`A heading`
##############
there isn't a problem, but using index
in any other form of heading or sub-heading causes the exception:
Subtitle -- Asterisks
*********************
Section -- Equal Signs
======================
Subsection -- Hyphens
---------------------
Subsubsection -- Circumflex
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Paragraph -- Double Quotes
"""""""""""""""""""""""""""""""
I have just tried using
####################################
Part -- Number Signs above and below
####################################
with overline, for parts
************************************
Chapter -- Asterisks above and below
************************************
with overline, for chapters
and the exception occurs with these heading formats as well. Over to you @brechtm for a fix!
@brechtm
Any timescale on when this might be fixed? Its not an issue as I am aware of the problem, but would be good to have a fix (sometimes you have to index a title/subtitle)
I am failing to reproduce this. Please make sure that you're running the latest rinohtype master version. Otherwise, can you share your Sphinx project, or a minimal one that reproduces the issue?
Still crashes with my install, even with a minimal config.
I'm only including this on a single page:
##################
:index:`Heading` 1
##################
==================
:index:`heading 2`
==================
:index:`Some indexed` text
==========================
Unindexed
---------
:index:`Indexed`
^^^^^^^^^^^^^^^^
Which results in: Exception occurred: File "/home/mark/.venv/lib/python3.10/site-packages/rinoh/text.py", line 146, in copy raise NotImplementedError NotImplementedError
If I remove the index entries, all builds correctly. As far as I know, I'm using the current master of rinoh (0.5.5 in development). I've attached the files to see if it helps... test.zip
Thanks for the minimal project. I had to restore the :index:
role annotations in test.rst, but the PDF builds without a problem! Try to uninstall and reinstall rinohtype master in the virtual environment:
pip install https://github.com/brechtm/rinohtype/archive/refs/heads/master.zip
You might have been using an older master version... Unfortunately, it's not possible to include a more unique identifier in the version number when installing from the URL.
If that doesn't help, perhaps the virtual environment has become corrupted. Try deleting it and recreating it.
@brechtm Reinstalling from the master version sorted that (although it did uninstall my current version of Sphinx!). All sorted now - thank you so much! I will close this off now.
Is there an existing issue for this?
Sphinx or rinoh output
Source files
I'm thinking this is another issue relating to tables, but not sure (I haven't included any reST that should break things) did the previous table fix get included?
Error log:
sphinx-err-h_gkfe13.log
Versions