Skip to content

No folders to install into are found when run in a virtual environment #53

@williamstark01

Description

@williamstark01

This issue is the same as #39, unclear why it resurfaced.

When pretty_errors is run as a module inside a pyenv virtualenv to add it to Python startup procedure (python -m pretty_errors), no folders to install into are found.

Updating the regexes should resolve this.

As a workaround I hardcoded the path to site-packages:

vim $(pyenv prefix)/lib/python3.9/site-packages/pretty_errors/__main__.py

# set paths in line 50 to
            # paths = ['<$(pyenv prefix)>/lib/python3.9/site-packages']

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