sphinx.ext.autodoc' has no attribute 'startswith #12269
-
Describe the bugWhen trying to compile I receive an error message. Below is the printout from my terminal showing the output of the session: Rpi4:~/Programs $ sphinx-build -b latex . _build
Running Sphinx v7.2.6
Exception occurred:
File "/usr/lib/python3.9/importlib/__init__.py", line 118, in import_module
if name.startswith('.'):
AttributeError: module 'sphinx.ext.autodoc' has no attribute 'startswith'
The full traceback has been saved in /tmp/sphinx-err-wnfpeocc.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://github.com/sphinx-doc/sphinx/issues>. Thanks!
Rpi4:~/Programs $ How to Reproducerun from the command line: sphinx-build -b latex . _build conf.py: import sphinx
from sphinx.ext.autodoc import setup
project = 'remoteServer'
copyright = '2024, Graeme Jury ZL2TE'
author = 'Graeme Jury ZL2TE'
release = 'remoteServer'
extensions = [sphinx.ext.autodoc]
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
html_theme = 'alabaster'
html_static_path = ['_static'] index.rst: Welcome to remoteServer's documentation!
========================================
.. toctree::
:maxdepth: 2
:caption: Contents:
MremoteServer
registerClass MremoteServer.rst: .. _MremoteServer:
MremoteServer module
====================
.. automodule:: MremoteServer
:members:
:undoc-members:
:show-inheritance: registerClass.rst: .. _registerClass:
registerClass module
=====================
.. automodule:: registerClass
:members:
:undoc-members:
:show-inheritance: Environment Information
Sphinx extensionsNo extensions but this is the first time I have used this software and am a complete newbie. Additional contextRpi4:~/Programs $ latex |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @radi8 - thanks for the bugreport. Is this line something that appears in your |
Beta Was this translation helpful? Give feedback.
Hi @radi8 - thanks for the bugreport. Is this line something that appears in your
conf.py
file? And if so, could you try updating it to make sure that the extension name is a string value:extensions = ['sphinx.ext.autodoc']
(note the quotes around the extension module name)?