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:
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
-
Create and activate a fresh virtual environment:
python3 -m venv ~/.pcileech-venv
source ~/.pcileech-venv/bin/activate
-
Install the package:
pip install pcileechfwgenerator[tui]
-
Verify the package import:
python -c "import pcileechfwgenerator; print(pcileechfwgenerator.__file__)"
This works correctly.
-
Run:
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.
pcileechentrypoint 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, andpcileechfwgeneratoritself can be imported correctly.However, running:
or
fails with:
This suggests that the package is installed, but the entrypoint/runtime import path is broken.
Environment
venvPackage install command
Steps to reproduce
Create and activate a fresh virtual environment:
Install the package:
Verify the package import:
python -c "import pcileechfwgenerator; print(pcileechfwgenerator.__file__)"This works correctly.
Run:
or:
Expected behavior
The command should print the tool version successfully.
Actual behavior
The command fails with:
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 importpcileechas a top-level module.This may indicate a packaging/layout mismatch between the installed package structure and the runtime import path.