Skip to content

pigar cannot find the package name #221

@ManiAm

Description

@ManiAm

I have this import in one of the files,

try:
    from bs4 import BeautifulSoup
    bs4_support = True
except:
    bs4_support = False

Invoke pigar with:

pigar generate --auto-select --question-answer no

However it cannot find the package name 'beautifulsoup4'.

Same is true for,

try:
    import jinja2
    jinja_support = True
except ImportError:
    jinja_support = False

I am using rhel 8.9 and python 3.12.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions