when trying to install allennlp with poetry add allennlp (0.8.0) it seems to go into an infinite loop of resolving dependencies (20+ minutes, sometimes failing with HTTP connection errors after a while).
Previously (allennlp 0.7.2) poetry completely failed to install allennlp due to too strict dependencies (see here).
I too faced the same issue.
Created a pyproject.toml file with allennlp's latest version (0.8.3) and tried getting a lock file from it, but Updating and Resolving dependencies entered an infinite loop .
Any idea how to resolve this @sdispater @phiresky
@schmmd Please update here if it has been solved.
@gvskalyan that issue was closed in favor of https://github.com/allenai/allennlp/issues/2280. We're not familiar with poetry but we would welcome PRs that make AllenNLP's dependencies more compatible with poetry.
Poetry should detect the conflict, abort, and print an error message instead of going into infinite loop.
Hi @schmmd and @phiresky, I just ran into a similar issue in a project and fixed it by fixing the package name. I noticed that your package does not include one in the pyproject.toml file. Try adding one and see what happens!
@sdispater is it possible that a mismatching name between the one declared @ pyproject and the one referenced cause this sort of behavior? To clarify, I had a package whose pyproject name was 'dbvirus-cacher' and I was installing it as a git dependency with:
cacher = {git = "https://github.com/dbvirus/cacher.git", branch = "master"}
What happened when I ran a poetry update -vv was and infinite loop of selecting cacher, selecting both of its dependencies, selecting cacher again and so on.
Hi, I faced the same issue too. Here is the log if I ran poetry add allennlp -vvvv as Gist:
It seems that the installation of the botocore package has failed and is in an infinite loop. The issue here is that the error 1: conflict: no versions of botocore match >1.16.12,<1.17.0 (this line) is displayed, even though the condition derived: botocore (>=1.16.12,<1.17.0) (this line) is specified.
I found that I could avoid this infinite loop by first adding boto3 with poetry add boto3 and then running poetry add allennlp. I don鈥檛 think this is a good solution. Any ideas on how to solve this issue?
This issue seems to be solved in the meantime.