Unhelpful `venv` failure
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
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.
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'
- Dominant language
- Python
- Stars
- 1k
- Forks
- 203
- Avg merge
- 1h 20m
- Merged PRs (30d)
- 2
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.
More from python/pyperformance
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
python/pyperformance#346 · 3 comments ·
-
python/pyperformance#474 · 4 reactions · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
python/pyperformance#473 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
python/pyperformance#464 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
python/pyperformance#460 · 2 comments · 1 reaction ·
All issues in python/pyperformance
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openml/openml-python#1749 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sipyourdrink-ltd/bernstein#6191 ·