dieterich-lab / rp-bp

Rp-Bp is a Bayesian approach to predict, at base-pair resolution, ribosome occupancy and translation.
MIT License
7 stars 5 forks source link

pip._vendor.packaging.requirements.InvalidRequirement: Parse error at "'[--insta'": Expected stringEnd #108

Closed z626093820 closed 2 years ago

z626093820 commented 2 years ago

when i install rp-bp througt virtual environment and conda , there are same questions,such as (environment) root@debian:/home/user/soft/rp-bp# pip --verbose install -r requirements.txt . [--install-option="--force-recompile"] 2>&1 | tee install.log Using pip 21.2.2 from /path/to/virtual/environment/lib/python3.6/site-packages/pip (python 3.6) ERROR: Exception: Traceback (most recent call last): File "/path/to/virtual/environment/lib/python3.6/site-packages/pip/_vendor/packaging/requirements.py", line 102, in init req = REQUIREMENT.parseString(requirement_string) File "/path/to/virtual/environment/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1955, in parseString raise exc File "/path/to/virtual/environment/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 3814, in parseImpl raise ParseException(instring, loc, self.errmsg, self) pip._vendor.pyparsing.ParseException: Expected stringEnd, found '[' (at char 11), (line:1, col:12)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/path/to/virtual/environment/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 173, in _main status = self.run(options, args) File "/path/to/virtual/environment/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 203, in wrapper return func(self, options, args) File "/path/to/virtual/environment/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 286, in run reqs = self.get_requirements(args, options, finder, session) File "/path/to/virtual/environment/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 369, in get_requirements user_supplied=True, File "/path/to/virtual/environment/lib/python3.6/site-packages/pip/_internal/req/constructors.py", line 382, in install_req_from_line parts = parse_req_from_line(name, line_source) File "/path/to/virtual/environment/lib/python3.6/site-packages/pip/_internal/req/constructors.py", line 321, in parse_req_from_line extras = convert_extras(extras_as_string) File "/path/to/virtual/environment/lib/python3.6/site-packages/pip/_internal/req/constructors.py", line 57, in convert_extras return Requirement("placeholder" + extras.lower()).extras File "/path/to/virtual/environment/lib/python3.6/site-packages/pip/_vendor/packaging/requirements.py", line 105, in init f'Parse error at "{ requirement_string[e.loc : e.loc + 8]!r}": {e.msg}' pip._vendor.packaging.requirements.InvalidRequirement: Parse error at "'[--insta'": Expected stringEnd how can i solve this problems,

eboileau commented 2 years ago

Dear @z626093820

When creating an issue, please use the Bug Report template (don't delete the lines)

bug_report

To install Rp-Bp, please follow the instructions here: Installing the Rp-Bp pipeline

To install, you need to remove the brackets, which indicate optional arguments, and do not remove the dot, which is the local project path (rp-bp folder)

pip --verbose install -r requirements.txt . 

Please note that Anaconda installation is not standard, i.e. you still need to rely on local pip install. This has not been thoroughly tested.

I am closing this issue. If you face any other problem, please feel free to open a new issue, but make sure to follow the template. Besides, please make sure to look at both open and closed issues beforehand, since they often already provide a solution to your problem, see e.g. #101 .