ดาวน์โหลด Outlook for Android ________________________________ From: [email protected] <[email protected]> on behalf of Komiya Takeshi <[email protected]> Sent: Sunday, November 17, 2019 7:09:37 PM To: [email protected] <[email protected]> Subject: Re: [sphinx-users] Adding a (latex) directive
Where do you writing code? If you're using `conf.py`, please move them to independent file. `conf.py` is not good to implement extensions. refs: related issue https://github.com/sphinx-doc/sphinx/issues/6751 2019年11月17日(日) 18:07 Stefano David <[email protected]>: > > Hi Takeshi, > > On Saturday, 16 November 2019 16:15:03 UTC+1, Komiya Takeshi wrote: >> >> HI Stefano, >> >> Please share the exception you got. I would be able to help you. > > My first try was the following: > > Exception occurred: > File "/home/stefano/sphinx-sandbox/source/conf.py", line 230, in run > altrubric = altrubric.rubric(altrubric_text, '', *textnodes, > **self.options) > UnboundLocalError: local variable 'altrubric' referenced before assignment > > If I replace the abolve line with code with > > arb = altrubric(altrubric_text, '', *textnodes, **self.options) > > I get > > Exception occurred: > File "/usr/local/lib/python3.7/dist-packages/sphinx/builders/__init__.py", > line 506, in write_doctree > pickle.dump(doctree, f, pickle.HIGHEST_PROTOCOL) > _pickle.PicklingError: Can't pickle <class 'altrubric'>: attribute lookup > altrubric on builtins failed > > I also tried this one, although I knew it would fail: > > Exception occurred: > File "/home/stefano/000-work/sphinx-sandbox/source/conf.py", line 230, in > run > arb = nodes.altrubric(altrubric_text, '', *textnodes, **self.options) > AttributeError: module 'docutils.nodes' has no attribute 'altrubric' > > So, I am quite stuck... > Thank you in advance! > Stefano > > -- > 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/053ea3b3-aed9-4cf4-a207-4f968f1178b8%40googlegroups.com. -- 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/CAFmkQANXYCtsiFVFwA1ht9GGZRLe2pnxvqfQTKEoWd_3QnfpxA%40mail.gmail.com. -- 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/DM6PR17MB26027B124AF5EA4C5BB35575F3720%40DM6PR17MB2602.namprd17.prod.outlook.com.
