Skip to content

Dependency problem using pip install -e . #157

@feiye-vims

Description

@feiye-vims

I tried to install pyschism in developer mode by

pip install -e .

in a new conda environment.

It runs for a long time and could not resolve the dependency:

error: resolution-too-deep

× Dependency resolution exceeded maximum depth
╰─> Pip cannot resolve the current dependencies as the dependency graph is too complex for pip to solve efficiently.

hint: Try adding lower bounds to constrain your dependencies, for example: 'package>=2.0.0' instead of just 'package'. 

I finally installed pyschism by manually installing dependencies using conda (#136), then tweaked the setup.py to remove the subprocess.check_call for installing dunamai (which caused other problems) and put dunamai into pyproject.toml, and eventually, pip install -e .

I wonder if this happened to others.

Also, a warning message said subprocess.check_call() inside setup.py is discouraged and will break builds starting in late 2025, so the setup.py probably needs to be updated soon.

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