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

sphinxarg/ext.py", line 448, in _open_filename return open(shutil.which(self.options['filename'])) #11760

Closed
gmaggi opened this issue Nov 15, 2023 · 2 comments

Comments

@gmaggi
Copy link

gmaggi commented Nov 15, 2023

Describe the bug

Hi, I am trying to build a doc (make html), but when I include sphinxarg.ext, that throws an error

How to Reproduce

make html
Running Sphinx v7.2.6
building [mo]: targets for 0 po files that are out of date
writing output... 
building [html]: targets for 4 source files that are out of date
updating environment: [new config] 4 added, 0 changed, 0 removed
reading sources... [100%] usage
Exception occurred:
  File "/opt/anaconda/anaconda3/envs/nerf_data_connector/lib/python3.10/site-packages/sphinxarg/ext.py", line 448, in _open_filename
    return open(shutil.which(self.options['filename']))
TypeError: expected str, bytes or os.PathLike object, not NoneType
The full traceback has been saved in /tmp/sphinx-err-bfir2eed.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!
make: *** [Makefile:20: html] Error 2

Environment Information

ubuntu 20.04
python 3.10.13

python -c "import sphinxarg; print(sphinxarg.__version__)"
0.2.5


### Sphinx extensions

```python
extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.viewcode',
    'sphinx.ext.napoleon',
    'sphinxarg.ext'
]

Additional context

No response

@SilverRainZ
Copy link
Contributor

This error is thrown by the third-party extension sphinxarg.ext, not Sphinx itself.
It seems that sphinxarg.ext is provided by sphinx-argparse, please report the issue to it.

@picnixz
Copy link
Member

picnixz commented Dec 24, 2023

Closing since it's not a native extension.

@picnixz picnixz closed this as not planned Won't fix, can't repro, duplicate, stale Dec 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants