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

Bug 625254

Summary: dev-python/sphinx: missing rdep on dev-python/typing
Product: Gentoo Linux Reporter: zyliwax <zyliwax>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: bkohler, chutzpah, mgorny, mmk, slyfox
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description zyliwax 2017-07-15 23:31:53 UTC
Relevant log snippet:

[1506/1516] cd /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src-abi_x86_64.amd64/docs && /usr/bin/sphinx-build -b html -d /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src-abi_x86_64.amd64/docs/_
doctrees-html -q /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src/docs /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src-abi_x86_64.amd64/docs/html                                                
FAILED: docs/CMakeFiles/docs-llvm-html               
cd /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src-abi_x86_64.amd64/docs && /usr/bin/sphinx-build -b html -d /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src-abi_x86_64.amd64/docs/_doctrees-htm
l -q /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src/docs /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src-abi_x86_64.amd64/docs/html                                                            
Traceback (most recent call last):                   
  File "/usr/lib/python-exec/python2.7/sphinx-build", line 6, in <module>                                 
    from pkg_resources import load_entry_point       
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3037, in <module>             
    @_call_aside                                     
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3021, in _call_aside          
    f(*args, **kwargs)                               
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3050, in _initialize_master_working_set                                                                                                 
    working_set = WorkingSet._build_master()         
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 655, in _build_master         
    ws.require(__requires__)                         
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 969, in require               
    needed = self.resolve(parse_requirements(requirements))                                               
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 855, in resolve               
    raise DistributionNotFound(req, requirers)       
pkg_resources.DistributionNotFound: The 'typing' distribution was not found and is required by Sphinx     
[1507/1516] cd /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src-abi_x86_64.amd64/docs && /usr/bin/sphinx-build -b man -d /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src-abi_x86_64.amd64/docs/_doctrees-man -q /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src/docs /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src-abi_x86_64.amd64/docs/man                                                   
FAILED: docs/CMakeFiles/docs-llvm-man                
cd /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src-abi_x86_64.amd64/docs && /usr/bin/sphinx-build -b man -d /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src-abi_x86_64.amd64/docs/_doctrees-man -q /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src/docs /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src-abi_x86_64.amd64/docs/man                                                               
Traceback (most recent call last):                   
  File "/usr/lib/python-exec/python2.7/sphinx-build", line 6, in <module>                                 
    from pkg_resources import load_entry_point       
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3037, in <module>             
    @_call_aside                                     
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3021, in _call_aside          
    f(*args, **kwargs)                               
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3050, in _initialize_master_working_set                                                                                                 
    working_set = WorkingSet._build_master()         
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 655, in _build_master         
    ws.require(__requires__)                         
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 969, in require               
    needed = self.resolve(parse_requirements(requirements))                                               
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 855, in resolve               
    raise DistributionNotFound(req, requirers)       
pkg_resources.DistributionNotFound: The 'typing' distribution was not found and is required by Sphinx

Build fails shortly thereafter. Emerging dev-python/typing beforehand fixes the build issue.

This is probably only relevant if you have USE="docs".
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-07-16 06:23:43 UTC
It's a problem inside dev-python/sphinx. What version of that package do you have?
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2017-07-16 13:33:15 UTC
=dev-python/sphinx-1.6.3-r1

It has dev-python/typing[${PYTHON_USEDEP}] only under USE=test.

Fails for me as:
$ sphinx-build --verion

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/sphinx-build", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 3037, in <module>
    @_call_aside
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 3021, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 3050, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 655, in _build_master
    ws.require(__requires__)
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 969, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 855, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'typing' distribution was not found and is required by Sphinx
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-07-16 15:35:39 UTC
Thanks, that explains it. My trivial grep obviously didn't notice the conditional ;-).
Comment 4 Patrick McLean gentoo-dev 2017-07-17 21:16:26 UTC
Fixed.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-09-03 07:38:37 UTC
*** Bug 626030 has been marked as a duplicate of this bug. ***