Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701140 - dev-python/flask[doc]: Could not import extension sphinxcontrib.log_cabinet
Summary: dev-python/flask[doc]: Could not import extension sphinxcontrib.log_cabinet
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-25 11:45 UTC by Michał Górny
Modified: 2021-06-18 02:31 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-python:flask-1.1.1:20191125-114415.log (dev-python:flask-1.1.1:20191125-114415.log,5.02 KB, text/plain)
2019-11-25 11:45 UTC, Michał Górny
Details
flask-1.1.2-r1 build failure (build.log,12.38 KB, text/x-log)
2020-12-12 11:47 UTC, Stuart Longland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-11-25 11:45:29 UTC
Created attachment 597476 [details]
dev-python:flask-1.1.1:20191125-114415.log

Since the version was added by non-maintainer bump by patrick@, I'm assigning the issue to him and CC-ing qa@.

FTR, I don't have much problem with non-maintainer bumps as long as they are done properly.  Sloppy cheap bumps lacking proper testing and missing dependencies are not fine.

                                                                                                                                                   
 * python3_7: running distutils-r1_run_phase python_compile_all                                                                                    
make -j12 -C docs html                                                                                                                             
make: Entering directory '/tmp/portage/dev-python/flask-1.1.1/work/Flask-1.1.1/docs'
Running Sphinx v1.7.5                                                    
                                    
Extension error:                                                                                                                                   
Could not import extension sphinxcontrib.log_cabinet (exception: No module named 'sphinxcontrib.log_cabinet')
make: *** [Makefile:19: html] Error 2                                                                                                              
make: Leaving directory '/tmp/portage/dev-python/flask-1.1.1/work/Flask-1.1.1/docs'
Comment 1 Erik 2020-06-21 12:26:37 UTC
Confirmed with version 1.1.2.
Comment 2 Erik 2020-09-21 14:30:16 UTC
confirmed with version 1.1.2-r1:

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

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/sphinx/config.py", line 319, in eval_config_file
    execfile_(filename, namespace)
  File "/usr/lib/python3.8/site-packages/sphinx/util/pycompat.py", line 89, in execfile_
    exec(code, _globals)
  File "/var/tmp/portage/dev-python/flask-1.1.2-r1/work/Flask-1.1.2/docs/conf.py", line 2, in <module>
    from pallets_sphinx_themes import get_version
ModuleNotFoundError: No module named 'pallets_sphinx_themes'
Comment 3 Stuart Longland 2020-12-12 11:47:55 UTC
Created attachment 678175 [details]
flask-1.1.2-r1 build failure

(In reply to Erik from comment #2)
> "/var/tmp/portage/dev-python/flask-1.1.2-r1/work/Flask-1.1.2/docs/conf.py",
> line 2, in <module>
>     from pallets_sphinx_themes import get_version
> ModuleNotFoundError: No module named 'pallets_sphinx_themes'

This is actually a separate issue… install dev-python/pallets-sphinx-themes and that error will go away.

In my case though, I can reproduce the original problem (after installing dev-python/pallets-sphinx-themes … which should be in DEPEND):

writing top-level names to src/Flask.egg-info/top_level.txt
reading manifest file 'src/Flask.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file 'src/Flask.egg-info/SOURCES.txt'
warning: build_py: byte-compiling is disabled, skipping.

 * Using python3.8 in global scope
 * python3_8: running distutils-r1_run_phase python_compile_all
Running Sphinx v2.4.4

Extension error:
Could not import extension sphinxcontrib.log_cabinet (exception: No module named 'sphinxcontrib.log_cabinet')
Comment 4 Erik 2021-06-16 15:48:56 UTC
Confirmed with version 1.1.4.
Comment 5 Erik 2021-06-17 21:40:51 UTC
Confirmed with version 2.0.1.
Comment 6 Larry the Git Cow gentoo-dev 2021-06-17 23:22:10 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e4d854fd8c165fae29e59c02dcfa76c751a4488

commit 6e4d854fd8c165fae29e59c02dcfa76c751a4488
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-06-17 23:10:22 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-17 23:22:00 +0000

    dev-python/flask: add missing doc BDEPENDs
    
    Bug: https://bugs.gentoo.org/701140
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/flask/flask-2.0.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a231fda488691cd699a8d7982da0d06d1a47ea58

commit a231fda488691cd699a8d7982da0d06d1a47ea58
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-06-17 23:16:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-17 23:21:59 +0000

    dev-python/sphinxcontrib-log_cabinet: initial import
    
    Bug: https://bugs.gentoo.org/701140
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/sphinxcontrib-log_cabinet/Manifest      |  1 +
 dev-python/sphinxcontrib-log_cabinet/metadata.xml  | 12 +++++++++++
 .../sphinxcontrib-log_cabinet-1.0.1.ebuild         | 23 ++++++++++++++++++++++
 3 files changed, 36 insertions(+)
Comment 7 Larry the Git Cow gentoo-dev 2021-06-18 01:35:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32a565ea6620e8ef7f354e4157465fafa8b35716

commit 32a565ea6620e8ef7f354e4157465fafa8b35716
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-06-18 01:34:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-18 01:34:53 +0000

    dev-python/flask: sync live
    
    Closes: https://bugs.gentoo.org/701140
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/flask/flask-9999.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 8 Larry the Git Cow gentoo-dev 2021-06-18 02:31:40 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49d0750307ebbce63fd32ad0c0580c71bf22461a

commit 49d0750307ebbce63fd32ad0c0580c71bf22461a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-06-18 02:29:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-18 02:30:47 +0000

    dev-python/flask: shift new BDEPENDs into new revision for rekeywording
    
    Given another one came along, let's rekeyword properly.
    
    Bug: https://bugs.gentoo.org/701140
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/flask/flask-2.0.1-r1.ebuild | 51 ++++++++++++++++++++++++++++++++++
 dev-python/flask/flask-2.0.1.ebuild    |  2 +-
 dev-python/flask/flask-9999.ebuild     |  8 ++++--
 3 files changed, 58 insertions(+), 3 deletions(-)