Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum recursion depth when parsing re module #1612

Closed
shimizukawa opened this issue Jan 3, 2015 · 7 comments
Closed

Maximum recursion depth when parsing re module #1612

shimizukawa opened this issue Jan 3, 2015 · 7 comments

Comments

@shimizukawa
Copy link
Member

I'm trying to use autodoc on my project.

#!rest
.. automodule:: sanity
    :members: 
(env2)./~pygash git:master ❯❯❯ make clean ; make html                                                                      
rm -rf _build/*
sphinx-build -b html -d _build/doctrees   . _build/html
Making output directory...
Running Sphinx v1.2.3
loading pickled environment... not yet created
loading intersphinx inventory from http://docs.python.org/objects.inv...
building [html]: targets for 1 source files that are out of date
updating environment: 1 added, 0 changed, 0 removed
reading sources... [100%] index                                                                                            
Exception occurred:
  File "/home/corentih/pygash/env2/lib/python2.7/re.py", line 231, in _compile
    cachekey = (type(key[0]),) + key
RuntimeError: maximum recursion depth exceeded while calling a Python object
The full traceback has been saved in /tmp/corentih/sphinx-err-M8Gc6h.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
Makefile:53: recipe for target 'html' failed
make: *** [html] Error 1

Ideally I'd like to prevent sphinx from parsing this module but not sure it's possible.


@shimizukawa
Copy link
Member Author

From Takayuki Shimizukawa on 2014-11-05 00:00:32+00:00

Thanks for the report. Can you attach the input .py source file that led to the error? (If you build with sphinx-build -vvv or make html SPHINXOPTS=-vvv you can see better log which document/code is being translated at the time).

@shimizukawa
Copy link
Member Author

From little-dude on 2014-11-05 00:06:12+00:00

Logs with -vvv

@shimizukawa
Copy link
Member Author

From little-dude on 2014-11-05 00:07:59+00:00

The failing file (I think)

@shimizukawa
Copy link
Member Author

From little-dude on 2014-11-05 00:09:57+00:00

And thanks for such a reactivity :)

@shimizukawa
Copy link
Member Author

From Takayuki Shimizukawa on 2014-11-05 00:17:33+00:00

Thanks. According to my quick investigation, _doc/index.rst is using .. automodule:: sanity and sanify/__init__.py is also using .. automodule:: sanity. The later one will cause recursive importing.

Please remove later one and try make html again.

@shimizukawa
Copy link
Member Author

From little-dude on 2014-11-05 00:30:48+00:00

That was it... Thanks for you help, and sorry for your time.

@shimizukawa
Copy link
Member Author

From Takayuki Shimizukawa on 2014-11-05 01:09:18+00:00

You're welcome :)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant