Skip to content

Incompatible dependencies  #421

Closed
Closed
@Samurai336

Description

@Samurai336

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

  1. 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

  2. Edit your virtual environments pyvenv.cfg file (for me it was in ~/.pyenv/versions//pyvenv.cfg) to set include-system-site-packages to True and save.

  3. Install dev dependencies pip install -r requirements-dev.txt

  4. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions