Skip to content

version checking goes wrong #28

@stardust-hu

Description

@stardust-hu

I'm getting this error when trying to load the package

import metran

[metran\plots.py:13]

ModuleNotFoundError: No module named 'pastas.modelplots'

metran\plots.py

if psversion < "0.19.0":
    from pastas.plots import _get_height_ratios
elif psversion >= "1.3.0":
    from pastas.plotting.plotutil import _get_height_ratios
else:
    from pastas.modelplots import _get_height_ratios

pastas = '1.10.0'
metran = '0.4.0'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions