Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830364 - dev-python/pygments-2.11.0: USE=doc failed to emerge
Summary: dev-python/pygments-2.11.0: USE=doc failed to emerge
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
: 830398 (view as bug list)
Depends on:
Reported: 2022-01-01 00:37 UTC by Alex Fan
Modified: 2022-04-24 17:47 UTC (History)
6 users (show)

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

pygments-2.11.0:20220101-082108.log (pygments-2.11.0:20220101-082108.log,147.69 KB, text/plain)
2022-01-01 00:47 UTC, Alex Fan
Details (,5.71 KB, text/plain)
2022-01-01 00:48 UTC, Alex Fan

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Fan archtester 2022-01-01 00:37:24 UTC
with python3.10 and USE=doc, compilation fails with

Running Sphinx v4.3.2                                                                                                
making output directory... done                                                                                      
building [mo]: targets for 0 po files that are out of date                                                           
building [html]: targets for 26 source files that are out of date                                                    
updating environment: [new config] 26 added, 0 changed, 0 removed                                                    
reading sources... [  3%] docs/api                                                                                   
reading sources... [  7%] docs/authors                                                                               
reading sources... [ 11%] docs/changelog                  
Extension error:                                                                                                     
Handler <function source_read at 0x7fce367c6050> for event 'source-read' threw an exception (exception: [Errno 2] No 
such file or directory: '../CHANGES')

Reading the log, python3.8 and python3.9 don't have this issue.

Reproducible: Always
Comment 1 Alex Fan archtester 2022-01-01 00:45:45 UTC
> Reading the log, python3.8 and python3.9 don't have this issue.

Sorry, this was a misread. It failed outright on python3.10 compile stage and didn't even reach to 3.8 or 3.9.
Comment 2 Alex Fan archtester 2022-01-01 00:47:12 UTC
Created attachment 760953 [details]
Comment 3 Alex Fan archtester 2022-01-01 00:48:37 UTC
Created attachment 760954 [details]
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-01 12:16:58 UTC
*** Bug 830398 has been marked as a duplicate of this bug. ***
Comment 5 Red 2022-02-05 18:03:05 UTC
Having the same problem here.
Comment 6 Erik 2022-02-26 07:51:37 UTC
With version 2.11.2:
Handler <function source_read at 0x7fd5fcbb0550> for event 'source-read' threw an exception (exception: [Errno 2] No such file or directory: '../CHANGES')
Comment 7 Yarda 2022-03-17 22:26:45 UTC
The dev-python/pygments-2.11.2 is still affected.
Comment 8 Larry the Git Cow gentoo-dev 2022-04-24 17:47:45 UTC
The bug has been closed via the following commit(s):

commit e0577a6852cfd6d5e641d0f29d1e8a8b695c4961
Author:     Arthur Zamarin <>
AuthorDate: 2022-04-24 17:21:27 +0000
Commit:     Arthur Zamarin <>
CommitDate: 2022-04-24 17:23:07 +0000

    dev-python/pygments: fix doc generation
    Signed-off-by: Arthur Zamarin <>

 .../files/pygments-2.11.2-fix-docs-relative.patch  | 26 ++++++++++++++++++++++
 dev-python/pygments/pygments-2.11.2.ebuild         |  4 ++++
 2 files changed, 30 insertions(+)