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
python setup.py check --restructuredtext
fails when a include directive is present.
#75473
Comments
If I have a setup.py containing a include directive, and use the command in the title, I get Traceback (most recent call last):
[...]
File "/usr/lib/python3.6/site-packages/docutils/parsers/rst/directives/misc.py", line 59, in run
source_dir = os.path.dirname(os.path.abspath(source))
File "/usr/lib/python3.6/posixpath.py", line 369, in abspath
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not _io.StringIO The bug is in this method: distutils.command.check.check._check_rst_data The first line already hints at it: StringIO instances aren’t paths, but at least the include directive (docutils.parsers.rst.directives.misc.Include) expects one. |
flying-sheep
mannequin
added
type-crash
A hard crash of the interpreter, possibly with a core dump
3.7 (EOL)
end of life
stdlib
Python modules in the Lib dir
labels
Aug 28, 2017
I should have linked the file: distutils/command/check.py |
serhiy-storchaka
added
type-bug
An unexpected behavior, bug, or error
and removed
type-crash
A hard crash of the interpreter, possibly with a core dump
labels
Jul 11, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: