Am 03.03.2014 04:40, schrieb Luc Saffre: > On 02/03/14 19:05, Georg Brandl wrote: >> Am 02.03.2014 17:33, schrieb Luc Saffre: >>> I got the traceback below for build html after upgrading from 1.2.1 to >>> 1.2.2. >>> My source files are here: >>> https://github.com/lsaffre/lino/tree/master/docs >>> I tried also after cleaning the doctree files, without success. >> >> Strange. Is there a "template_bridge" setting in your conf.py? (I didn't >> see >> one at a glance.) > > No. > >> Can you check what "name" at that point in the code? > > This was the right hint ;-) > > `name` contains u'DjangoTemplateBridge', it comes from `objname` which > is u'atelier.sphinxconf.DjangoTemplateBridge'. The problem is that these > must be basestrings. Adding one line to the import_object() function (in > `sphinx/application.py`) solved it for me:: > > def import_object(self, objname, source=None): > """Import an object from a 'module.name' string.""" > + objname = str(objname) > > > I considered trying to reproduce this problem in a simpler context, but > this would take more time. I guess that it has to do with the fact that > I use "from __future__ import unicode_literals" and/or execfile.
The unicode_literals would do it, yes. I wonder why it's new in 1.2.2 though; the code reading setups hasn't been updated inbetween. Georg -- 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 http://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/groups/opt_out.
