Unhelpful `venv` failure
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1k
- Forks
- 203
- Avg merge
- 1h 20m
- Merged PRs (30d)
- 2
Description
02:03:10.998094000AM CEST maurycy@gimel /Users/maurycy % 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/.pyenv/versions/3.13.5/lib/python3.13/site-packages/pyperformance/__main__.py", line 3, in <module>
pyperformance.cli.main()
~~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/maurycy/.pyenv/versions/3.13.5/lib/python3.13/site-packages/pyperformance/cli.py", line 422, in main
_main()
~~~~~^^
File "/Users/maurycy/.pyenv/versions/3.13.5/lib/python3.13/site-packages/pyperformance/cli.py", line 371, in _main
info = _pythoninfo.get_info(options.python)
^^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'python'
Similarly:
02:03:23.225888000AM CEST maurycy@gimel /Users/maurycy/src/pyperformance % python dev.py venv
Traceback (most recent call last):
File "/Users/maurycy/src/pyperformance/dev.py", line 85, in <module>
main()
~~~~^^
File "/Users/maurycy/src/pyperformance/dev.py", line 81, in main
pyperformance.cli.main()
~~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/maurycy/src/pyperformance/pyperformance/cli.py", line 422, in main
_main()
~~~~~^^
File "/Users/maurycy/src/pyperformance/pyperformance/cli.py", line 371, in _main
info = _pythoninfo.get_info(options.python)
^^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'python'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in pyperformance/cli.py around _main() line 371 and compare the installed command with the dev.py venv path. Reproduce both commands and trace how the venv arguments are parsed before _pythoninfo.get_info() is called. Done means the venv command no longer raises the shown AttributeError and reports a useful failure or performs its intended action.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100