Skip to content

Can't use from pip install #52

Open
@FedeClaudi

Description

@FedeClaudi

Hi,

very cool package! I'm trying to integrate it with pyinspect to complement pyinspect's fancy tracebacks with your helpful messages, but I can't get didyoumean to work.
I've tried both with pip install BetterErrorMessages and by installing from the master branch on github, but it's the same.

I think that's in an issue about how modules are imported within the package, e.g.

from didyoumean.didyoumean_internal import add_suggestions_to_exception

results in:

ModuleNotFoundError: No module named 'didyoumean_re'

and

import didyoumean
didyoumean.didyoumean_api.didyoumean_postmortem()

results in:

AttributeError: module 'didyoumean' has no attribute 'didyoumean_api'

and so on..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions