Felix Schwarz schrieb: > Hi, > > I noticed that Sphinx does not build docs if I use the autodoc feature in a > project where the path name contains unicode characters (of course the Python > module names only contain ASCII). This is on Fedora 10 with Python 2.5.2. > >> reading sources... index Sphinx error: >> 'ascii' codec can't decode byte 0xc3 in position 17: ordinal not in >> range(128) >> make: *** [html] Fehler 1 > > This is because the 'fullname' in generate() (sphinx.ext.autodoc, l. 452) may > be a unicode string (without unicode characters) but 'analyzer.srcname' > contains the path name (byte string) with UTF-8 encoded characters. Therefore > the interpolation fails: > sourcename = '%s:docstring of %s' % (analyzer.srcname, fullname) > > I think the root cause of this problem is solved by my patch (actually I'm > not > sure what 'name' in l. 355 may contain, maybe it's even easier just doing > 'str(name)').
Thanks for the report, I think a better fix is to decode the source name, which is now done in the repo as 049b30706deb. Georg --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
