Message300953
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: `source_path = StringIO()`
StringIO instances aren’t paths, but at least the include directive (docutils.parsers.rst.directives.misc.Include) expects one. |
|
Date |
User |
Action |
Args |
2017-08-28 13:57:45 | flying sheep | set | recipients:
+ flying sheep, eric.araujo, dstufft |
2017-08-28 13:57:45 | flying sheep | set | messageid: <1503928665.81.0.590770692205.issue31292@psf.upfronthosting.co.za> |
2017-08-28 13:57:45 | flying sheep | link | issue31292 messages |
2017-08-28 13:57:45 | flying sheep | create | |
|