Thanks for the report, this is now fixed in the trunk and 0.5 repos: it gives a nicer warning message.
cheers, Georg Tony Vignaux schrieb: > I have had an exception occurring when producing html from a set of > files. After a long search I have traced the problem to an mis-formed > index statement. Removing the terminating comma removes the exception, > > .. index:: random function, uniform, exponential, expovariate, normal, > > > This was the call used: > > > > $ sphinx-build -b html -E source build/html > Sphinx v0.5, building html > building [html]: targets for 11 source files that are out of date > updating environment: 11 added, 0 changed, 0 removed > reading sources... index pythonClassVariables pythonClasses > pythonDict pythonFunctions pythonLists pythonModules > pythonModulesTest pythonNotes pythonRandom pythonfiles > pickling environment... done > checking consistency... done > preparing documents... done > writing output... index pythonClassVariables pythonClasses > pythonDict pythonFunctions pythonLists pythonModules > pythonModulesTest pythonNotes pythonRandom pythonfiles > writing additional files...Exception occurred: > File > > "/usr/lib/python2.5/site-packages/Sphinx-0.5-py2.5.egg/sphinx/environment.py", > line 1195, in keyfunc > letter = k[0].upper() > IndexError: string index out of range > The full traceback has been saved in /tmp/sphinx-err-rPdL84.log, if > you want to report the issue to the author. > Please also report this if it was a user error, so that a better > error message can be provided next time. > Send reports to [email protected] > <mailto:[email protected]>. Thanks! > > > Traceback is as follows: > > Traceback (most recent call last): > File > "/usr/lib/python2.5/site-packages/Sphinx-0.5-py2.5.egg/sphinx/cmdline.py", > line 151, in main > app.build(all_files, filenames) > File > > "/usr/lib/python2.5/site-packages/Sphinx-0.5-py2.5.egg/sphinx/application.py", > line 138, in build > self.builder.build_update() > File > "/usr/lib/python2.5/site-packages/Sphinx-0.5-py2.5.egg/sphinx/builder.py", > line 250, in build_update > 'out of date' % len(to_build)) > File > "/usr/lib/python2.5/site-packages/Sphinx-0.5-py2.5.egg/sphinx/builder.py", > line 293, in build > self.finish() > File > "/usr/lib/python2.5/site-packages/Sphinx-0.5-py2.5.egg/sphinx/builder.py", > line 537, in finish > genindex = self.env.create_index(self) > File > > "/usr/lib/python2.5/site-packages/Sphinx-0.5-py2.5.egg/sphinx/environment.py", > line 1201, in create_index > return [(key, list(group)) for (key, group) in groupby(newlist, > keyfunc)] > File > > "/usr/lib/python2.5/site-packages/Sphinx-0.5-py2.5.egg/sphinx/environment.py", > line 1195, in keyfunc > letter = k[0].upper() > IndexError: string index out of range > > > > -- > G A Vignaux > Emeritus Professor of Operations Research > Victoria University, Wellington, New Zealand > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
