Exception during documentation with nested structure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
WSME |
New
|
Undecided
|
Unassigned |
Bug Description
Consider the example:
----------
class ExampleRoot(
@expose(
def hello(self, who=u'World'):
return u"Hello {0} !".format(who)
class MyService(WSRoot):
u"""WebServices Root"""
#: Example "folder"
example = ExampleRoot()
--------------
This fails trying to generate the documentation.
-------
Running Sphinx v1.3.1
[exec] loading translations [it]... done
[exec] loading pickled environment... not yet created
[exec] loading intersphinx inventory from http://
[exec] building [mo]: targets for 0 po files that are out of date
[exec] building [html]: targets for 3 source files that are out of date
[exec] updating environment: 3 added, 0 changed, 0 removed
[exec] reading sources... [ 33%] index
[exec] reading sources... [ 66%] services
[exec] Exception occurred:
[exec] File "/opt/myproject
[exec] raise ValueError("Path is too long: " + str(path))
[exec] ValueError: Path is too long: ['addprotocol', 'im_func', 'func_code', 'co_argcount', 'denominator', 'denominator', 'denominator', 'denominator', 'de
nominator', 'denominator', 'denominator', 'denominator', 'denominator', 'denominator', 'denominator', 'denominator', 'denominator', 'denominator', 'denominator'
, 'denominator', 'denominator']
[exec] The full traceback has been saved in /tmp/sphinx-
[exec] Please also report this if it was a user error, so that a better error message can be provided next time.
[exec] A bug report can be filed in the tracker at <https:/
------------------
Full error log is in attachment.
This one works instead:
-------------
class MyService(WSRoot):
@expose(
def hello(self, who=u'World'):
return u"Hello {0} !".format(who)
-----------
I fixed this but I am not sure about the impact of my patch, it just works good for me. It's not an elegant solution and I did not understand completely the problem tough...
Patch and full log in attachment.
Added patch attachment.
Notice line numbers inside the patch likely do not match (I also have other personal patch applied).