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

Bug 904495

Summary: dev-python/markupsafe-2.1.2[python_targets_python3_11] fails to import markupsafe: ModuleNotFoundError: No module named 'markupsafe'
Product: Gentoo Linux Reporter: Sebastian Pipping <sping>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED INVALID    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sebastian Pipping gentoo-dev 2023-04-18 00:33:33 UTC
Something is off with the 3.11 support of dev-python/markupsafe-2.1.2.  Python 3.9 and 3.10 work well, 3.11 does not:

# xargs -n1 < /var/db/pkg/dev-python/markupsafe-2.1.2/USE | grep python | sort -V
python_targets_python3_9
python_targets_python3_10
python_targets_python3_11

# python3.9 -c 'import markupsafe'

# python3.10 -c 'import markupsafe'

# python3.11 -c 'import markupsafe'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'markupsafe'

# python3.11 --version
Python 3.11.3
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-04-19 10:27:53 UTC
Build log, please.  It works just fine here.  Do you have /usr/lib/python3.11/site-packages/markupsafe?
Comment 2 Sebastian Pipping gentoo-dev 2023-04-19 15:48:31 UTC
Works just fine now for some reason, closing as invalid for now.
Comment 3 Sebastian Pipping gentoo-dev 2023-04-19 15:49:50 UTC
PS: Yes I did have /usr/lib/python3.11/site-packages/markupsafe but no build log.