Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addition creates recurison error #379

Closed
3 tasks done
dfee opened this issue Aug 7, 2018 · 5 comments
Closed
3 tasks done

addition creates recurison error #379

dfee opened this issue Aug 7, 2018 · 5 comments
Labels
area/solver Related to the dependency resolver kind/bug Something isn't working as expected

Comments

@dfee
Copy link

dfee commented Aug 7, 2018

  • I am on the latest Poetry version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • OS version and name: MacOS 10.13

  • Poetry version: 0.11.4

  • Link of a Gist with the contents of your pyproject.toml file:

[tool.poetry]
name = "mypkg"
version = "2018.0.0"
description = "mypkg module"
authors = ["Devin Fee"]

[tool.poetry.dependencies]
python = "^3.6.5"
rasa_core = "^0.10.3"

[tool.poetry.dev-dependencies]
pytest = "^3.0"

Issue

Adding rasa_core bottoms out the recursion limit:

:$ poetry add rasa_core
Using version ^0.10.3 for rasa_core

Updating dependencies
Resolving dependencies... (2.6s)

[RecursionError]
maximum recursion depth exceeded

add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...

My recursion limit is set at 3000, and I updated it to the point where a segfault happens before the recursion limit is hit.

@dfee
Copy link
Author

dfee commented Aug 7, 2018

Alright, I've narrowed the problem space down quite a bit. The problem appears when keras is version 2.2 (or above):

[tool.poetry]
name = "demo"
version = "0.1.0"
description = ""
authors = ["Devin Fee"]

[tool.poetry.dependencies]
python = "3.6.5"

keras = "~2.1"
rasa_core = "^0.10.3"

[tool.poetry.dev-dependencies]
pytest = "^3.0"

Allowing keras v2.2+ raises a RecursionError, which is effectively what's in rasa_core's setup.py: "keras~=2.0" (which appears to mean keras >= 2.0, < 3.0).

Strangely, if you were to install every dependency of rasa_core except for rasa_core itself, then keras can be v2.2+:

[tool.poetry]
name = "demo"
version = "0.1.0"
description = ""
authors = ["Devin Fee"]

[tool.poetry.dependencies]
python = "^3.6"

jsonpickle = "^0.9.6"
six = "^1.11"
redis = "^2.10"
fakeredis = "^0.10.3"
future = "^0.16.0"
numpy = "^1.15"
typing = "^3.6"
requests = "^2.19"
graphviz = "^0.8.4"
keras = "^2.0" # TODO: revert to: keras = "~2.0"
tensorflow = ">= 1.7, < 1.9"
h5py = "^2.8"
apscheduler = "^3.5"
tqdm = "^4.24"
configargparse = "^0.13.0"
networkx = "^2.1"
fbmessenger = "^5.3"
pykwalify = "<= 1.6.0"
coloredlogs = "^10.0"
"ruamel.yaml" = "^0.15.50"
flask = "^1.0"
flask_cors = "^3.0"
scikit-learn = "^0.19.2"
rasa-nlu = "^0.13.1"
slackclient = "^1.2"
python-telegram-bot = "^10.1"
twilio = "^6.16"
mattermostwrapper = "^2.1"
colorhash = "^1.0"

# rasa_core = "^0.10.3" # TODO: notice how this isn't installed, so keras can be 2.2+

[tool.poetry.dev-dependencies]
pytest = "^3.0"
ipython = "^6.5"

@sdispater
Copy link
Member

This is really strange. I am not sure where the issue is coming from.

I will investigate and get back to you.

@sdispater sdispater added kind/bug Something isn't working as expected area/solver Related to the dependency resolver labels Aug 8, 2018
@adithyabsk
Copy link

adithyabsk commented Aug 15, 2018

@sdispater Do you know when the bug fix with the patch related to this issue will be out? It is blocker to our team adapting poetry. (Or how could I install poetry from source in the mean time)

@sdispater
Copy link
Member

This is fixed in the latest 0.11.5 release :-)

Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/solver Related to the dependency resolver kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants