Description
There is a dependency conflict when trying to install grapmps-webapi dependencies.
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.
flake8 5.0.4 requires importlib-metadata<4.3,>=1.1.0; python_version < "3.8", but you have importlib-metadata 4.13.0 which is incompatible.
Did the following to get this issue on Linux Mint:
Once repository is cloned
-
In grapmps-webapi project root setup a new virtual environment set to python 3.7 and activate environment. I used pyenv with pyenv-virtualenv plugin
-
Edit your virtual environments pyvenv.cfg file (for me it was in ~/.pyenv/versions//pyvenv.cfg) to set
include-system-site-packages
toTrue
and save. -
Install dev dependencies
pip install -r requirements-dev.txt
-
Install gramps-webapi and dependencies
pip3 install -e .
This should create the conflict error listed above. Not using --user on the editable dependency install because it in the virtual environment it would create a lack of sys.path precedence to gramps-webapi (see pypa/pip#573)