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

Dont skip first line of object.inv #67

Closed
wants to merge 1 commit into from
Closed

Dont skip first line of object.inv #67

wants to merge 1 commit into from

Conversation

jschueller
Copy link
Contributor

@jschueller jschueller commented Jun 8, 2017

It seems the sphinx inventory version is always on top, that's what we want, else we got this error:

$ ~/.local/bin/doc2dash --name openturns ~/projects/openturns/schueller/build/install/share/openturns/doc/html/
Converting intersphinx docs from "html" to "./openturns.docset".
Parsing documentation...
Traceback (most recent call last):
  File ".local/bin/doc2dash", line 11, in <module>
    load_entry_point('doc2dash==2.2.0.dev0', 'console_scripts', 'doc2dash')()
  File "/usr/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File ".local/lib/python3.6/site-packages/doc2dash-2.2.0.dev0-py3.6.egg/doc2dash/__main__.py", line 136, in main
  File ".local/lib/python3.6/site-packages/doc2dash-2.2.0.dev0-py3.6.egg/doc2dash/parsers/intersphinx.py", line 83, in parse
  File "/usr/lib/python3.6/site-packages/sphinx/util/inventory.py", line 108, in load
    raise ValueError('invalid inventory header: %s' % line)
ValueError: invalid inventory header: # Project: OpenTURNS

and the object.inv file is:

# Sphinx inventory version 2
# Project: OpenTURNS
# Version: .
# The remainder of this file is compressed using zlib.
x�̽_w�8��{>�o�sn��5�<w��$Z'˝���E��

I looked at my objects.inv through several sphinx releases from 1.2 to 1.6

It seems the sphinx inventory version is always on top, that's what we want:
@jschueller jschueller closed this Jun 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant