tox-dev/platformdirs

3.0 on python 3.10

Closed this issue · 1 comments

Trying to create a virtual env using platformdirs 3.0 gives the below error

virtualenv venv
Traceback (most recent call last):
File "/home/bmugwe/.local/bin/virtualenv", line 5, in
from virtualenv.main import run_with_catch
File "/home/bmugwe/.local/lib/python3.10/site-packages/virtualenv/init.py", line 1, in
from .run import cli_run, session_via_cli
File "/home/bmugwe/.local/lib/python3.10/site-packages/virtualenv/run/init.py", line 5, in
from ..app_data import make_app_data
File "/home/bmugwe/.local/lib/python3.10/site-packages/virtualenv/app_data/init.py", line 8, in
from platformdirs import user_data_dir
ModuleNotFoundError: No module named 'platformdirs'

But the latest version is already installed see below

pip install platformdirs
Defaulting to user installation because normal site-packages is not writeable
Collecting platformdirs
Using cached platformdirs-3.0.0-py3-none-any.whl (14 kB)
Installing collected packages: platformdirs
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
virtualenv 20.16.6 requires platformdirs<3,>=2.4, but you have platformdirs 3.0.0 which is incompatible.
Successfully installed platformdirs-3.0.0

Please note that i am on the latest pip version 23.1

This is a virtualenv issue, not us.