mewbotorg / mewbot

Bot go mew~
Other
0 stars 4 forks source link

Install of requirements-dev fails on WSL for python3.9 #26

Open ajCameron opened 2 years ago

ajCameron commented 2 years ago

Reproduction.

On a new WSL install - Ubuntu latest.

Ran

sudo apt-get update && sudo apt-get upgrade

Then

sudo apt install python3.9

python3.9 -m pip --version yielded information that pip not installed

wget https://bootstrap.pypa.io/get-pip.py

sudo python3.9 get-pip.py

pip now installed

cloned mewbot (no virtual environment in use as WSL was serving that purpose - I don't ... think ... using one would make a difference, but have not checked).

git clone git@github.com:mewler/mewbot cd mewbot

Install all dependencies (including development dependencies)

python3.9 -m pip install -r requirements-dev.txt

pip failed with following error

Installing collected packages: PyYAML, pyflakes, pycodestyle, platformdirs, pathspec, mypy, multidict, license-expression, dill, click, binaryornot, async-timeout, astroid, yarl, reuse, pylint, flake8, black, aiohttp, py-cord Attempting uninstall: PyYAML Found existing installation: PyYAML 5.3.1 ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

javajawa commented 2 years ago

Read this again, and I'm tempted to suggest scrubbing the self-bootstrapped pip in favour of sudo apt install python3.9-pip -- there might be some strange compatibility things going on?