Skip to content

[BUG] Could not import pcileech main function: No module named 'pcileech' #572

@Xiluokii

Description

@Xiluokii

pcileech entrypoint fails after venv install: Could not import pcileech main function: No module named 'pcileech'

Description

After installing pcileechfwgenerator[tui] inside a Python virtual environment, the package installation reports success, and pcileechfwgenerator itself can be imported correctly.

However, running:

pcileech version

or

python -m pcileechfwgenerator.pcileech_main version

fails with:

Error: Could not import pcileech main function: No module named 'pcileech'

This suggests that the package is installed, but the entrypoint/runtime import path is broken.

Environment

  • OS: Ubuntu 24.04.4
  • Python: [3.12]
  • Install method: venv

Package install command

python3 -m venv ~/.pcileech-venv
source ~/.pcileech-venv/bin/activate
pip install pcileechfwgenerator[tui]

Steps to reproduce

  1. Create and activate a fresh virtual environment:

    python3 -m venv ~/.pcileech-venv
    source ~/.pcileech-venv/bin/activate
  2. Install the package:

    pip install pcileechfwgenerator[tui]
  3. Verify the package import:

    python -c "import pcileechfwgenerator; print(pcileechfwgenerator.__file__)"

    This works correctly.

  4. Run:

    pcileech version

    or:

    python -m pcileechfwgenerator.pcileech_main version

Expected behavior

The command should print the tool version successfully.

Actual behavior

The command fails with:

Error: Could not import pcileech main function: No module named 'pcileech'

Additional notes

The package itself appears to be installed correctly, because:

python -c "import pcileechfwgenerator; print(pcileechfwgenerator.__file__)"

works.

The issue seems to be related to the CLI entrypoint or an internal import inside pcileechfwgenerator.pcileech_main, which still tries to import pcileech as a top-level module.

This may indicate a packaging/layout mismatch between the installed package structure and the runtime import path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions