2026-01-26T19:29:17.403748000+0100 maurycy@gimel /Users/maurycy/work/pyperformance (fix-428-venv) % uv run --python 3.14 --with . python -m pyperformance venv
usage: pyperformance [-h] [-V] {run,show,compare,list,list_groups,compile,compile_all,upload,venv} ...
Compares the performance of baseline_python with changed_python and prints a report.
positional arguments:
{run,show,compare,list,list_groups,compile,compile_all,upload,venv}
run Run benchmarks on the running python
show Display a benchmark file
compare Compare two benchmark files
list List benchmarks of the running Python
list_groups List benchmark groups of the running Python
compile Compile and install CPython and run benchmarks on installed Python
compile_all Compile and install CPython and run benchmarks on installed Python on all branches and revisions of CONFIG_FILE
upload Upload JSON results to a Codespeed website
venv Actions on the virtual environment
options:
-h, --help show this help message and exit
-V, --version show program's version number and exit
Before:
[1] 2026-03-23T10:53:38.530937000+0100 maurycy@gimel /Users/maurycy/src/github.com/maurycy/pyperformance (main) % uv run --python 3.14 --with . python -m pyperformance venv
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/Users/maurycy/src/github.com/maurycy/pyperformance/pyperformance/__main__.py", line 3, in <module>
pyperformance.cli.main()
~~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/maurycy/src/github.com/maurycy/pyperformance/pyperformance/cli.py", line 422, in main
_main()
~~~~~^^
File "/Users/maurycy/src/github.com/maurycy/pyperformance/pyperformance/cli.py", line 371, in _main
info = _pythoninfo.get_info(options.python)
^^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'python'
maurycy
changed the title
Fix pyperformance venv (w/o any subcommand) crash
Fix pyperformance venv (w/o any subcommand) exception
Jan 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now:
2026-01-26T19:29:17.403748000+0100 maurycy@gimel /Users/maurycy/work/pyperformance (fix-428-venv) % uv run --python 3.14 --with . python -m pyperformance venv usage: pyperformance [-h] [-V] {run,show,compare,list,list_groups,compile,compile_all,upload,venv} ... Compares the performance of baseline_python with changed_python and prints a report. positional arguments: {run,show,compare,list,list_groups,compile,compile_all,upload,venv} run Run benchmarks on the running python show Display a benchmark file compare Compare two benchmark files list List benchmarks of the running Python list_groups List benchmark groups of the running Python compile Compile and install CPython and run benchmarks on installed Python compile_all Compile and install CPython and run benchmarks on installed Python on all branches and revisions of CONFIG_FILE upload Upload JSON results to a Codespeed website venv Actions on the virtual environment options: -h, --help show this help message and exit -V, --version show program's version number and exitBefore:
[1] 2026-03-23T10:53:38.530937000+0100 maurycy@gimel /Users/maurycy/src/github.com/maurycy/pyperformance (main) % uv run --python 3.14 --with . python -m pyperformance venv Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/Users/maurycy/src/github.com/maurycy/pyperformance/pyperformance/__main__.py", line 3, in <module> pyperformance.cli.main() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/Users/maurycy/src/github.com/maurycy/pyperformance/pyperformance/cli.py", line 422, in main _main() ~~~~~^^ File "/Users/maurycy/src/github.com/maurycy/pyperformance/pyperformance/cli.py", line 371, in _main info = _pythoninfo.get_info(options.python) ^^^^^^^^^^^^^^ AttributeError: 'Namespace' object has no attribute 'python'Fixes #428