Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 739756

Summary: =dev-python/flask-babel-2.0.0 USE=doc: Extension error: Could not import extension pallets_sphinx_themes (exception: No module named 'pallets_sphinx_themes')
Product: Gentoo Linux Reporter: Bernd <waebbl-gentoo>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: normal CC: esigra, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: flask-babel-2.0.0\:20200831-172409.log
emerge-info-flask-babel-2.0.0.txt

Description Bernd 2020-08-31 17:28:43 UTC
Looks like building the docs for flask-babel-2.0.0 BDEPENDS on dev-python/pallets-sphinx-themes.
With USE="-doc" the build succeeds. Emerging pallets-sphinx-theme prior to flask-babel doesn't work out of the box, because pallets-sphinx-theme supports only python-3.{6,7}, while flask-babel uses python-3.8 in global scope.

Reproducible: Always

Steps to Reproduce:
1. USE="doc" emerge =dev-python/flask-babel-2.0.0
2. 
3.
Actual Results:  
 * 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 pallets_sphinx_themes (exception: No module named 'pallets_sphinx_themes')
 * ERROR: dev-python/flask-babel-2.0.0::gentoo failed (compile phase):
 *   (no error message)



build.log and emerge --info as attachments
Comment 1 Bernd 2020-08-31 17:30:57 UTC
Created attachment 657642 [details]
flask-babel-2.0.0\:20200831-172409.log

build log
Comment 2 Bernd 2020-08-31 17:31:54 UTC
Created attachment 657644 [details]
emerge-info-flask-babel-2.0.0.txt

output of emerge --info =flask-babel-2.0.0
Comment 3 Bernd 2020-12-19 09:35:34 UTC
dev-python/pallets-sphinx-themes has updated PYTHON_TARGETS, so the docs now build successfully.
Closing this issue.