unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [Bug] Cannot build python3 bindings documentation of notmuch 0.28.1
@ 2019-02-06 13:52 Dan Čermák
  2019-02-10 20:45 ` Jani Nikula
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dan Čermák @ 2019-02-06 13:52 UTC (permalink / raw)
  To: notmuch

[-- Attachment #1: Type: text/plain, Size: 1274 bytes --]

Hi list,

the python3 bindings documentation seems to be broken:

on OpenSUSE Tumbleweed and Fedora 29 (both have Python 3.7 and sphinx
1.7.6) I get this:

$ cd bindings/python/docs/
$ make dirhtml
sphinx-build -b dirhtml -d build/doctrees   source build/dirhtml
Running Sphinx v1.7.6

Configuration error:
There is a programable error in your configuration file:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/sphinx/config.py", line 161, in __init__
    execfile_(filename, config)
  File "/usr/lib/python3.7/site-packages/sphinx/util/pycompat.py", line 150, in execfile_
    exec_(code, _globals)
  File "conf.py", line 39, in <module>
    from notmuch import __VERSION__,__AUTHOR__
  File "/home/dan/packages/git.notmuchmail.org/git/notmuch/bindings/python/notmuch/__init__.py", line 54, in <module>
    from .database import Database
  File "/home/dan/packages/git.notmuchmail.org/git/notmuch/bindings/python/notmuch/database.py", line 25, in <module>
    from .globals import (
  File "/home/dan/packages/git.notmuchmail.org/git/notmuch/bindings/python/notmuch/globals.py", line 48, in <module>
    class NotmuchDatabaseS(Structure):
TypeError: __mro_entries__ must return a tuple

make: *** [Makefile:38: dirhtml] Error 2


Cheers,

Dan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bug] Cannot build python3 bindings documentation of notmuch 0.28.1
  2019-02-06 13:52 [Bug] Cannot build python3 bindings documentation of notmuch 0.28.1 Dan Čermák
@ 2019-02-10 20:45 ` Jani Nikula
  2019-02-16 13:14 ` David Bremner
  2021-09-11 14:46 ` David Bremner
  2 siblings, 0 replies; 4+ messages in thread
From: Jani Nikula @ 2019-02-10 20:45 UTC (permalink / raw)
  To: Dan Čermák, notmuch

On Wed, 06 Feb 2019, Dan Čermák <dan.cermak@posteo.net> wrote:
> Hi list,
>
> the python3 bindings documentation seems to be broken:
>
> on OpenSUSE Tumbleweed and Fedora 29 (both have Python 3.7 and sphinx
> 1.7.6) I get this:

Looks like a change in Python 3.7 makes the ctypes mocking in
bindings/python/docs/source/conf.py fall short. If you just remove
'ctypes' from MOCK_MODULES, it'll work.

However, that would probably break the documentation build at
readthedocs.org, which won't have libnotmuch around.

Short term, I guess someone(tm) has to hack the mocking.

Long term, I'd love to see the python bindings Sphinx documentation
merged to the main Sphinx notmuch documentation, and have all of that
get automatically built and updated to notmuchmail.org.


BR,
Jani.


>
> $ cd bindings/python/docs/
> $ make dirhtml
> sphinx-build -b dirhtml -d build/doctrees   source build/dirhtml
> Running Sphinx v1.7.6
>
> Configuration error:
> There is a programable error in your configuration file:
>
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/site-packages/sphinx/config.py", line 161, in __init__
>     execfile_(filename, config)
>   File "/usr/lib/python3.7/site-packages/sphinx/util/pycompat.py", line 150, in execfile_
>     exec_(code, _globals)
>   File "conf.py", line 39, in <module>
>     from notmuch import __VERSION__,__AUTHOR__
>   File "/home/dan/packages/git.notmuchmail.org/git/notmuch/bindings/python/notmuch/__init__.py", line 54, in <module>
>     from .database import Database
>   File "/home/dan/packages/git.notmuchmail.org/git/notmuch/bindings/python/notmuch/database.py", line 25, in <module>
>     from .globals import (
>   File "/home/dan/packages/git.notmuchmail.org/git/notmuch/bindings/python/notmuch/globals.py", line 48, in <module>
>     class NotmuchDatabaseS(Structure):
> TypeError: __mro_entries__ must return a tuple
>
> make: *** [Makefile:38: dirhtml] Error 2
>
>
> Cheers,
>
> Dan
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bug] Cannot build python3 bindings documentation of notmuch 0.28.1
  2019-02-06 13:52 [Bug] Cannot build python3 bindings documentation of notmuch 0.28.1 Dan Čermák
  2019-02-10 20:45 ` Jani Nikula
@ 2019-02-16 13:14 ` David Bremner
  2021-09-11 14:46 ` David Bremner
  2 siblings, 0 replies; 4+ messages in thread
From: David Bremner @ 2019-02-16 13:14 UTC (permalink / raw)
  To: Dan Čermák, notmuch

dan.cermak@posteo.net (Dan Čermák) writes:

> Hi list,
>
> the python3 bindings documentation seems to be broken:
>
> on OpenSUSE Tumbleweed and Fedora 29 (both have Python 3.7 and sphinx
> 1.7.6) I get this:
>
> $ cd bindings/python/docs/
> $ make dirhtml
> sphinx-build -b dirhtml -d build/doctrees   source build/dirhtml
> Running Sphinx v1.7.6

I have queued Jani's fix [1] for this; I'll probably make another point
release if no one objects.  This has the side-effect of requiring python
3.3 to build the bindings, but this is probably inconvenient for less
people than breaking with python 3.7.

[1]: https://nmbug.notmuchmail.org/nmweb/show/20190211182237.32201-1-jani%40nikula.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bug] Cannot build python3 bindings documentation of notmuch 0.28.1
  2019-02-06 13:52 [Bug] Cannot build python3 bindings documentation of notmuch 0.28.1 Dan Čermák
  2019-02-10 20:45 ` Jani Nikula
  2019-02-16 13:14 ` David Bremner
@ 2021-09-11 14:46 ` David Bremner
  2 siblings, 0 replies; 4+ messages in thread
From: David Bremner @ 2021-09-11 14:46 UTC (permalink / raw)
  To: Dan Čermák, notmuch

dan.cermak@posteo.net (Dan Čermák) writes:

> Hi list,
>
> the python3 bindings documentation seems to be broken:
>
> on OpenSUSE Tumbleweed and Fedora 29 (both have Python 3.7 and sphinx
> 1.7.6) I get this:

This should be fixed in commit 510dc8c8

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-11 14:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-06 13:52 [Bug] Cannot build python3 bindings documentation of notmuch 0.28.1 Dan Čermák
2019-02-10 20:45 ` Jani Nikula
2019-02-16 13:14 ` David Bremner
2021-09-11 14:46 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).