OfflineIMAP / offlineimap

Read/sync your IMAP mailboxes (python2) [LEGACY: move to offlineimap3]
http://www.offlineimap.org
Other
1.78k stars 361 forks source link

Traceback during docu generation #560

Open mimi1vx opened 6 years ago

mimi1vx commented 6 years ago

General informations

Logs, error

[    6s] asciidoc: writing: /home/abuild/rpmbuild/BUILD/offlineimap-7.2.0/docs/offlineimap.xml
[    6s] asciidoc: include: /home/abuild/rpmbuild/BUILD/offlineimap-7.2.0/docs/offlineimap.known_issues.txt
[    6s] asciidoc: offlineimap.txt: line 339: reading: /home/abuild/rpmbuild/BUILD/offlineimap-7.2.0/docs/offlineimap.known_issues.txt
[    6s] 
[    6s] a2x: executing: "xmllint" --nonet --noout --valid "/home/abuild/rpmbuild/BUILD/offlineimap-7.2.0/docs/offlineimap.xml"
[    6s] 
[    6s] 
[    6s] a2x: chdir /home/abuild/rpmbuild/BUILD/offlineimap-7.2.0/docs
[    6s] a2x: executing: "xsltproc"  --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0  "/etc/asciidoc/docbook-xsl/manpage.xsl" "/home/abuild/rpmbuild/BUILD/offlineimap-7.2.0/docs/offlineimap.xml"
[    6s] 
[    6s] Warn: meta author : no refentry/info/author                        offlineimap
[    6s] Note: meta author : see http://www.docbook.org/tdg5/en/html/autho  offlineimap
[    6s] Warn: meta author : no author data, so inserted a fixme            offlineimap
[    6s] Note: Writing offlineimap.1
[    6s] 
[    6s] a2x: chdir /home/abuild/rpmbuild/BUILD/offlineimap-7.2.0/docs
[    6s] a2x: deleting /home/abuild/rpmbuild/BUILD/offlineimap-7.2.0/docs/offlineimap.xml
[    7s] reading sources... [100%] ui
[    7s] 
[    7s] WARNING: autodoc: failed to import data u'ui' from module 'offlineimap.accounts'; the following exception was raised:
[    7s] Traceback (most recent call last):
[    7s]   File "/usr/lib/python2.7/site-packages/sphinx/ext/autodoc/importer.py", line 164, in import_object
[    7s]     obj = attrgetter(obj, attrname)
[    7s]   File "/usr/lib/python2.7/site-packages/sphinx/ext/autodoc/__init__.py", line 274, in get_attr
[    7s]     return autodoc_attrgetter(self.env.app, obj, name, *defargs)
[    7s]   File "/usr/lib/python2.7/site-packages/sphinx/ext/autodoc/__init__.py", line 1509, in autodoc_attrgetter
[    7s]     return safe_getattr(obj, name, *defargs)
[    7s]   File "/usr/lib/python2.7/site-packages/sphinx/util/inspect.py", line 220, in safe_getattr
[    7s]     raise AttributeError(name)
[    7s] AttributeError: ui
[    7s] 

Steps to reproduce the error

try build offlineimap package

nicolas33 commented 6 years ago

I cannot reproduce this error. What command do you type?

mimi1vx commented 6 years ago

https://build.opensuse.org/package/view_file/server:mail/offlineimap/offlineimap.spec?expand=1 -->

python setup.py build
make %{?_smp_mflags} V=1 -C docs

here is full buildlog: https://build.opensuse.org/package/live_build_log/server:mail/offlineimap/openSUSE_Tumbleweed/x86_64

nicolas33 commented 6 years ago

Out of topic: the line "Suggests: python2-gssapi" is not up-to-date in the spec file.

Looks like you didn't edited the source code. I wonder this could be because of the version of sphinx. Here, I have:

> sphinx-build --version
Sphinx (sphinx-build) 1.3.1
mimi1vx commented 6 years ago

Out of topic: the line "Suggests: python2-gssapi" is not up-to-date in the spec file.

?? if is python-gssapi optional I think a better tag is Suggests than Recommends or Requires...

yes, can be caused by backward incompatible changes in Sphinx, 1.3.1 is pretty old:D

nicolas33 commented 6 years ago

?? if is python-gssapi optional I think a better tag is Suggests than Recommends or Requires..

My bad, this is correct. We moved away from pykerberos, not the other way around.

What's your sphinx version?

mimi1vx commented 6 years ago

1.7.4 last stable

Dne pá 15. 6. 2018 14:21 uživatel Nicolas Sebrecht notifications@github.com napsal:

?? if is python-gssapi optional I think a better tag is Suggests than Recommends or Requires..

My bad, this is correct. We moved away from pykerberos, not the other way around.

What's your sphinx version?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OfflineIMAP/offlineimap/issues/560#issuecomment-397603840, or mute the thread https://github.com/notifications/unsubscribe-auth/AA403_65e0x836P_W1uWVid5GAy6GDFvks5t86a4gaJpZM4UpEgj .

nicolas33 commented 6 years ago

What's weird from the logs is that the documentation for ui is generated after the warning:

/usr/share/doc/packages/offlineimap-htmldoc/html/doctrees/ui.doctree
[...]
usr/share/doc/packages/offlineimap-htmldoc/html/ui.html