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

Bug 830363

Summary: dev-python/pygments-2.11.0: missing deps on dev-python/lxml with USE=doc and test enabled
Product: Gentoo Linux Reporter: Alex Fan <alex.fan.q>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED DUPLICATE    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: pygments-2.11.0:20211231-221812.log
emerge.info

Description Alex Fan archtester 2022-01-01 00:06:11 UTC
With USE=doc and test enabled, it fails to build on amd64 with 

tests/test_html_formatter_linenos_elements.py ___________________________
ImportError while importing test module '/var/tmp/portage/dev-python/pygments-2.11.0/work/Pygments-2.11.0/tests/test_html_formatter_linenos_elements.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/pypy3.8/site-packages/_pytest/python.py:578: in _importtestmodule
    mod = import_path(self.fspath, mode=importmode)
/usr/lib/pypy3.8/site-packages/_pytest/pathlib.py:524: in import_path
    importlib.import_module(module_name)
/usr/lib/pypy3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1023: in _gcd_import
    ???
<frozen importlib._bootstrap>:1000: in _find_and_load
    ???
<frozen importlib._bootstrap>:984: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/usr/lib/pypy3.8/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
    exec(co, module.__dict__)
tests/test_html_formatter_linenos_elements.py:9: in <module>
    from .support import structural_diff
tests/support/structural_diff.py:1: in <module>
    import lxml.html
E   ModuleNotFoundError: No module named 'lxml'

Reproducible: Always
Comment 1 Alex Fan archtester 2022-01-01 00:13:48 UTC
Created attachment 760951 [details]
pygments-2.11.0:20211231-221812.log

build.log
Comment 2 Alex Fan archtester 2022-01-01 00:15:24 UTC
Created attachment 760952 [details]
emerge.info
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-01-01 01:27:07 UTC

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