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

Bug 704708

Summary: dev-python/urllib3-1.24.2[doc]: undeclared dependency to dev-python/mock
Product: Gentoo Linux Reporter: Dirk Sondermann <ds-gentoo>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ds-gentoo, jstein, mgorny
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description Dirk Sondermann 2020-01-03 15:50:49 UTC
Building dev-python/urllib3-1.24.2 with USE="doc -test" fails with "ModuleNotFoundError: No module named 'mock'".

Reproducible: Always

Steps to Reproduce:
1. USE="doc -test" emerge =dev-python/urllib3-1.24.2
Actual Results:  
Build fails with the following message:

Running Sphinx v2.0.1

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

Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/sphinx/config.py", line 361, in eval_config_file
    execfile_(filename, namespace)
  File "/usr/lib64/python3.6/site-packages/sphinx/util/pycompat.py", line 86, in execfile_
    exec(code, _globals)
  File "/var/tmp/portage/dev-python/urllib3-1.24.2/work/urllib3-1.24.2/docs/conf.py", line 30, in <module>
    import mock
ModuleNotFoundError: No module named 'mock'

Expected Results:  
Build succeeds.

The same problem existed for version 1.25.7 and was fixed by commit afca75d4.
Comment 1 Dirk Sondermann 2020-01-03 15:52:14 UTC
Created attachment 602414 [details]
build.log
Comment 2 Dirk Sondermann 2020-01-03 15:53:13 UTC
Created attachment 602416 [details]
emerge --info
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-01-03 20:37:21 UTC

*** This bug has been marked as a duplicate of bug 704548 ***