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

automodapi fails on certain modules only #106

Open
tbhkuiper opened this issue Jun 13, 2020 · 1 comment
Open

automodapi fails on certain modules only #106

tbhkuiper opened this issue Jun 13, 2020 · 1 comment

Comments

@tbhkuiper
Copy link

I have a package with Sphinx documentation at https://sdrast.github.io/Data_Reduction/. automodapi fails on certain modules in the package with the error:

Exception occurred:
  File "/usr/local/anaconda3/lib/python3.7/site-packages/sphinx_automodapi/utils.py", line 99, in find_mod_objs
    fqnames.append(obj.__module__ + '.' + obj.__name__)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
The full traceback has been saved in /tmp/sphinx-err-7q488zfz.log, if you want to report the issue to the developers.

This happens after compiling the module because if there is an error in the module it reports that first. For now I comment out those modules in index.rst (as you'll see if you look at the web page linked above).
sphinx-err-7q488zfz.log

@tbhkuiper
Copy link
Author

The problem was caused by having from pylab import * in those modules. I don't know why that should have been a problem but now I know how to avoid it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant