Closed wq-wust closed 3 years ago
When I run $ pip install -e .
ERROR: Command errored out with exit status 1: command: /home/wq/env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/wq/pyrobolearn/setup.py'"'"'; file='"'"'/home/wq/pyrobolearn/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-31a3tcbj cwd: /home/wq/pyrobolearn/ Complete output (7 lines): Traceback (most recent call last): File "", line 1, in File "/home/wq/pyrobolearn/setup.py", line 21, in reqs = [str(ir.req) for ir in install_requires] File "/home/wq/pyrobolearn/setup.py", line 21, in reqs = [str(ir.req) for ir in install_requires] 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.
The same error occurs in the python 3.5/3.6 environment.
Have you solved it ? I have met the same one.
Hi all,
May you please be more specific about the OS you are using, how you are creating the virtual environment and any other steps you followed when facing this problem? That would be useful to try to reproduce the problem you are currently experiencing.
Best,
Leonel
This problem arises due to latest versions of pip. Fixed in the above PR.
When I run $ pip install -e .
ERROR: Command errored out with exit status 1: command: /home/wq/env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/wq/pyrobolearn/setup.py'"'"'; file='"'"'/home/wq/pyrobolearn/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-31a3tcbj cwd: /home/wq/pyrobolearn/ Complete output (7 lines): Traceback (most recent call last): File "", line 1, in
File "/home/wq/pyrobolearn/setup.py", line 21, in
reqs = [str(ir.req) for ir in install_requires]
File "/home/wq/pyrobolearn/setup.py", line 21, in
reqs = [str(ir.req) for ir in install_requires]
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.
The same error occurs in the python 3.5/3.6 environment.