[GRASS-dev] trunk: sphinxdoclib broken
Vaclav Petras
wenzeslaus at gmail.com
Tue Jan 26 09:20:00 PST 2016
On Tue, Jan 26, 2016 at 11:21 AM, Markus Neteler <neteler at osgeo.org> wrote:
> ...
> File "/usr/lib/python2.7/dist-packages/sphinx/util/pycompat.py",
> line 105, in execfile_
> exec code in _globals
> File "conf.py", line 45, in <module>
> grass_version = core.version()['version']
> File
> "/home/neteler/grass7_svn_head_bin_snapshot/trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/script/core.py",
> line 1518, in version
> data = parse_command('g.version', flags='rge', errors='ignore')
> ...
> subprocess.Popen.__init__(self, args, **kwargs)
> File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
> errread, errwrite)
> File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory
> ...
>
> Any ideas?
>
It looks like it can't find g.version.
I'm getting different error but the traceback doesn't refer to anything
with GRASS:
$ make sphinxdoclib
# Sphinx version: 1.2.3
# Python version: 2.7.10
# Docutils version: 0.12 release
# Jinja2 version: 2.8
...
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/sphinx/cmdline.py", line 254, in
main
app.build(force_all, filenames)
File "/usr/lib/python2.7/dist-packages/sphinx/application.py", line 220,
in build
self.builder.build_update()
...
File "/usr/lib/python2.7/dist-packages/sphinx/pycode/__init__.py", line
204, in for_module
obj = cls.for_file(source, modname)
File "/usr/lib/python2.7/dist-packages/sphinx/pycode/__init__.py", line
187, in for_file
obj = cls(fileobj, modname, filename)
File "/usr/lib/python2.7/dist-packages/sphinx/pycode/__init__.py", line
224, in __init__
self.code = self.source.read().decode(self.encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 8451:
ordinal not in range(128)
Which reminds me of #2875. Do we have somewhere a unicode & Python 3
related issue? (Unrelated to the g.version problem.)
https://trac.osgeo.org/grass/ticket/2875
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20160126/f4d96c1b/attachment.html>
More information about the grass-dev
mailing list