py3-virtualenv is broken
On alpine:edge
docker run --rm -it alpine:edge
/ # apk add py3-virtualenv
fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/aarch64/APKINDEX.tar.gz
(1/18) Installing libbz2 (1.0.8-r1)
(2/18) Installing expat (2.4.8-r0)
(3/18) Installing libffi (3.4.2-r1)
(4/18) Installing gdbm (1.23-r0)
(5/18) Installing xz-libs (5.2.5-r1)
(6/18) Installing libgcc (11.2.1_git20220219-r2)
(7/18) Installing libstdc++ (11.2.1_git20220219-r2)
(8/18) Installing mpdecimal (2.5.1-r1)
(9/18) Installing ncurses-terminfo-base (6.3_p20220423-r0)
(10/18) Installing ncurses-libs (6.3_p20220423-r0)
(11/18) Installing readline (8.1.2-r0)
(12/18) Installing sqlite-libs (3.38.4-r0)
(13/18) Installing python3 (3.10.4-r0)
(14/18) Installing py3-appdirs (1.4.4-r3)
(15/18) Installing py3-distlib (0.3.4-r1)
(16/18) Installing py3-filelock (3.4.2-r0)
(17/18) Installing py3-six (1.16.0-r1)
(18/18) Installing py3-virtualenv (20.14.1-r0)
Executing busybox-1.35.0-r6.trigger
OK: 68 MiB in 33 packages
/ # virtualenv venv
Traceback (most recent call last):
File "/usr/bin/virtualenv", line 33, in <module>
sys.exit(load_entry_point('virtualenv==20.14.1', 'console_scripts', 'virtualenv')())
File "/usr/bin/virtualenv", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.10/site-packages/virtualenv/__init__.py", line 3, in <module>
from .run import cli_run, session_via_cli
File "/usr/lib/python3.10/site-packages/virtualenv/run/__init__.py", line 7, in <module>
from ..app_data import make_app_data
File "/usr/lib/python3.10/site-packages/virtualenv/app_data/__init__.py", line 9, in <module>
from platformdirs import user_data_dir
ModuleNotFoundError: No module named 'platformdirs'