Repository navigation
Closed
Labels
Description
ISSUE TYPE
- Bug Report
SUMMARY
While attempting to install my project in Fedora 32, and an updated pip 20.1, I see an attribute error during installation.
tl;dr: pip now returns a ParsedRequirement object on this line which does not have a req attribute.
https://github.com/pypa/pip/blob/master/src/pip/_internal/req/req_file.py#L80
ENVIRONMENT
- AWX version: 9.3.0 - 11.1.0
- AWX install method: pip - python 3.8.2
- Ansible version: N/A
- Operating System: Fedora 32
- Web Browser: N/A
STEPS TO REPRODUCE
Attempt to install awxkit with pip 20.1
EXPECTED RESULTS
Installation succeeds
ACTUAL RESULTS
AttributeError: 'ParsedRequirement' object has no attribute 'req'
ADDITIONAL INFORMATION
⬢[jake@toolbox broker]$ python --version
Python 3.8.2
⬢[jake@toolbox broker]$ pip --version
pip 20.1 from /home/jake/.local/lib/python3.8/site-packages/pip (python 3.8)
⬢[jake@toolbox broker]$
⬢[jake@toolbox broker]$ pip install .
Defaulting to user installation because normal site-packages is not writeable
Processing /home/jake/Programming/broker
Collecting awxkit@ git+ssh://git@github.com/ansible/awx@9.3.0#egg=awxkit&subdirectory=awxkit
Cloning ssh://****@github.com/ansible/awx (to revision 9.3.0) to /tmp/pip-install-0svyav4l/awxkit
Running command git clone -q 'ssh://****@github.com/ansible/awx' /tmp/pip-install-0svyav4l/awxkit
Running command git checkout -q 686ef7f9e474bbb5a461677cfeeb705dc2c8db7c
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0svyav4l/awxkit/awxkit/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0svyav4l/awxkit/awxkit/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-9_95o6_j
cwd: /tmp/pip-install-0svyav4l/awxkit/awxkit
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-0svyav4l/awxkit/awxkit/setup.py", line 10, in <module>
requirements = [str(r.req) for r in parse_requirements('requirements.txt', session=False)]
File "/tmp/pip-install-0svyav4l/awxkit/awxkit/setup.py", line 10, in <listcomp>
requirements = [str(r.req) for r in parse_requirements('requirements.txt', session=False)]
AttributeError: 'ParsedRequirement' object has no attribute 'req'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Activity
JacobCallahan commentedon Apr 29, 2020
This installs fine on pip 19.3.1
ryanpetrello commentedon Apr 29, 2020
I'm able to reproduce this:
kdelee commentedon Apr 29, 2020
should be fixed by #6880
JacobCallahan commentedon Apr 29, 2020
I agree, thanks
ryanpetrello commentedon Apr 29, 2020
@JacobCallahan
This should be resolved in the latest version of AWX, 11.2.0 (just published):
~ pip3 --version pip 20.1 from /home/ryanpetrello/venvs/tmp-8df5d0f625f96c1/lib/python3.7/site-packages/pip (python 3.7)~/venvs/tmp-8df5d0f625f96c1 awx --version 11.2.0~/venvs/tmp-8df5d0f625f96c1 awx -h usage: awx [--help] [--version] [--conf.host https://example.awx.org] [--conf.token TEXT] [--conf.username TEXT] [--conf.password TEXT] [-k] [-f {json,yaml,jq,human}] [--filter TEXT] [--conf.color BOOLEAN] [-v] resource ...JacobCallahan commentedon Apr 30, 2020
@ryanpetrello thanks for the quick update!
Update receptor to latest on 4.5 (ansible#6870)