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

pipenv dependency resolution failure #7962

Closed
sjpritchard opened this issue Feb 16, 2021 · 7 comments
Closed

pipenv dependency resolution failure #7962

sjpritchard opened this issue Feb 16, 2021 · 7 comments
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework

Comments

@sjpritchard
Copy link

sjpritchard commented Feb 16, 2021

Rasa version: 2.3.0 Rasa SDK version (if used & relevant): Rasa X version (if used & relevant): Python version: 3.8.6 Operating system (windows, osx, ...): Ubuntu 20.10 pipenv version: 2020.11.15 Issue: Rasa installation with pipenv fails.

Steps:

pipenv --three pipenv install rasa

Error (including full traceback):

➜ rasatest pipenv install rasa Installing rasa... Adding rasa to Pipfile's [packages]...


Installation Succeeded Pipfile.lock not found, creating... Locking [dev-packages] dependencies... Locking [packages] dependencies... Building requirements... Resolving dependencies... ✘ Locking Failed! [ResolutionFailure]: File "/usr/local/lib/python3.8/dist-packages/pipenv/resolver.py", line 741, in _main [ResolutionFailure]: resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev) [ResolutionFailure]: File "/usr/local/lib/python3.8/dist-packages/pipenv/resolver.py", line 702, in resolve_packages [ResolutionFailure]: results, resolver = resolve( [ResolutionFailure]: File "/usr/local/lib/python3.8/dist-packages/pipenv/resolver.py", line 684, in resolve [ResolutionFailure]: return resolve_deps( [ResolutionFailure]: File "/usr/local/lib/python3.8/dist-packages/pipenv/utils.py", line 1395, in resolve_deps [ResolutionFailure]: results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps( [ResolutionFailure]: File "/usr/local/lib/python3.8/dist-packages/pipenv/utils.py", line 1108, in actually_resolve_deps [ResolutionFailure]: resolver.resolve() [ResolutionFailure]: File "/usr/local/lib/python3.8/dist-packages/pipenv/utils.py", line 833, in resolve [ResolutionFailure]: raise ResolutionFailure(message=str(e)) [pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies. First try clearing your dependency cache with $ pipenv lock -clear, then try the original command again. Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation. Hint: try $ pipenv lock --pre if it is a pre-release dependency. ERROR: Could not find a version that matches multidict<5.0,<6.0,>=4.5,>=4.6,>=5.0 (from rasa==2.3.0>r /tmp/pipenvopk766uprequirements/pipenv-ezic02dd-constraints.txt (line 2)) Tried: 1.0.1, 1.0.2, 1.0.3, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 3.0.0, 3.1.0, 3.1.1, 3.1.3, 3.2.0, 3.3.0, 3.3.1, 3.3.2, 4.0.0, 4.1.0, 4.2.0, 4.3.0, 4.3.1, 4.4.0, 4.4.1, 4.4.2, 4.5.0, 4.5.1, 4.5.2, 4.6.0, 4.6.0, 4.6.1, 4.6.1, 4.7.0, 4.7.1, 4.7.1, 4.7.2, 4.7.2, 4.7.3, 4.7.3, 4.7.4, 4.7.4, 4.7.5, 4.7.5, 4.7.6, 4.7.6, 5.0.0, 5.0.0, 5.0.1, 5.0.1, 5.0.2, 5.0.2, 5.1.0, 5.1.0 Skipped pre-versions: 1.0.0a0, 1.1.0b1, 1.1.0b2, 1.1.0b4, 1.1.0b5, 1.1.0b6, 1.1.0b7, 1.1.0b8, 3.1.3a0, 3.1.4a1, 3.1.4a2, 3.1.4a3, 3.2.0a3, 3.2.1a0, 4.4.0a0, 4.4.0a1, 4.4.0a2, 4.4.0a3, 4.4.0a4, 4.4.0a5, 4.4.0a6, 4.4.0a7, 4.4.0a8, 4.4.0a9, 4.4.0a10, 4.4.0a11, 4.4.0a12, 4.4.0a13, 4.4.0a14, 4.4.0a15, 4.4.0a16, 4.4.0a17, 4.4.0a18, 4.4.0a19, 4.4.0a20, 4.4.0a21, 4.4.0a22, 4.4.0a23, 4.4.0a24, 4.4.0a25, 4.4.0a26, 4.4.0a27, 4.4.0a28, 4.4.0a29, 4.4.0a30, 4.4.0a31, 4.4.0a32, 4.4.0a33, 4.4.0a34, 4.4.0a35, 4.4.0a36, 4.4.0a37, 4.4.0a38, 4.4.0a39, 4.4.0a40, 4.4.0a42, 4.6.0a2, 4.6.0a2, 4.6.0a3, 4.6.0a3 There are incompatible versions in the resolved dependencies: multidict<5.0,>=4.5 (from aiohttp==3.6.3>rasa==2.3.0->r /tmp/pipenvopk766uprequirements/pipenv-ezic02dd-constraints.txt (line 2)) multidict<5.0,>=4.6 (from rasa==2.3.0>r /tmp/pipenvopk766uprequirements/pipenv-ezic02dd-constraints.txt (line 2)) multidict<6.0,>=5.0 (from sanic==20.12.1>rasa==2.3.0->-r /tmp/pipenvopk766uprequirements/pipenv-ezic02dd-constraints.txt (line 2))

Command or request that led to error:

pipenv install rasa

Updated Pipfile with workaround described at: #7124 (comment) which resulted in a different dependency resolution error:

[packages] regex = "==2020.9.27" sanic = "<19.12.3" scikit-learn ="<0.24.0" rasa = "*"

➜ rasatest pipenv install rasa Installing rasa... Adding rasa to Pipfile's [packages]...


Installation Succeeded Pipfile.lock not found, creating... Locking [dev-packages] dependencies... Locking [packages] dependencies... Building requirements... Resolving dependencies... ✘ Locking Failed! [ResolutionFailure]: File "/usr/local/lib/python3.8/dist-packages/pipenv/resolver.py", line 741, in _main [ResolutionFailure]: resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev) [ResolutionFailure]: File "/usr/local/lib/python3.8/dist-packages/pipenv/resolver.py", line 702, in resolve_packages [ResolutionFailure]: results, resolver = resolve( [ResolutionFailure]: File "/usr/local/lib/python3.8/dist-packages/pipenv/resolver.py", line 684, in resolve [ResolutionFailure]: return resolve_deps( [ResolutionFailure]: File "/usr/local/lib/python3.8/dist-packages/pipenv/utils.py", line 1395, in resolve_deps [ResolutionFailure]: results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps( [ResolutionFailure]: File "/usr/local/lib/python3.8/dist-packages/pipenv/utils.py", line 1108, in actually_resolve_deps [ResolutionFailure]: resolver.resolve() [ResolutionFailure]: File "/usr/local/lib/python3.8/dist-packages/pipenv/utils.py", line 833, in resolve [ResolutionFailure]: raise ResolutionFailure(message=str(e)) [pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies. First try clearing your dependency cache with $ pipenv lock -clear, then try the original command again. Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation. Hint: try $ pipenv lock --pre if it is a pre-release dependency. ERROR: Could not find a version that matches python-engineio<3.14,>=3.11,>=4 (from rasa==2.3.0>r /tmp/pipenvzjelhfjvrequirements/pipenv-13sv44g9-constraints.txt (line 2)) Tried: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 0.5.0, 0.5.1, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.6, 0.6.7, 0.6.8, 0.6.9, 0.7.0, 0.7.1, 0.7.2, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.8.7, 0.8.8, 0.9.0, 0.9.1, 0.9.2, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6.0, 1.6.1, 1.7.0, 1.7.0, 2.0.0, 2.0.0, 2.0.1, 2.0.1, 2.0.2, 2.0.2, 2.0.3, 2.0.3, 2.0.4, 2.0.4, 2.1.0, 2.1.0, 2.1.1, 2.1.1, 2.2.0, 2.2.0, 2.3.0, 2.3.0, 2.3.1, 2.3.1, 2.3.2, 2.3.2, 3.0.0, 3.0.0, 3.1.0, 3.1.0, 3.1.1, 3.1.1, 3.1.2, 3.1.2, 3.2.0, 3.2.0, 3.2.1, 3.2.1, 3.2.2, 3.2.2, 3.2.3, 3.2.3, 3.3.0, 3.3.0, 3.3.1, 3.3.1, 3.3.2, 3.3.2, 3.4.0, 3.4.0, 3.4.1, 3.4.1, 3.4.2, 3.4.2, 3.4.3, 3.4.3, 3.4.4, 3.4.4, 3.5.0, 3.5.0, 3.5.1, 3.5.1, 3.5.2, 3.5.2, 3.6.0, 3.6.0, 3.7.0, 3.7.0, 3.8.0, 3.8.0, 3.8.1, 3.8.1, 3.8.2, 3.8.2, 3.8.2.post1, 3.8.2.post1, 3.9.0, 3.9.0, 3.9.1, 3.9.1, 3.9.2, 3.9.2, 3.9.3, 3.9.3, 3.10.0, 3.10.0, 3.11.0, 3.11.0, 3.11.1, 3.11.1, 3.11.2, 3.11.2, 3.12.0, 3.12.0, 3.12.1, 3.12.1, 3.13.0, 3.13.0, 3.13.1, 3.13.1, 3.13.2, 3.13.2, 3.14.0, 3.14.0, 3.14.1, 3.14.1, 3.14.2, 3.14.2, 4.0.0, 4.0.0 There are incompatible versions in the resolved dependencies: python-engineio<3.14,>=3.11 (from rasa==2.3.0>r /tmp/pipenvzjelhfjvrequirements/pipenv-13sv44g9-constraints.txt (line 2)) python-engineio>=4 (from python-socketio==5.0.4>rasa==2.3.0->-r /tmp/pipenvzjelhfjvrequirements/pipenv-13sv44g9-constraints.txt (line 2))

@sjpritchard sjpritchard added area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. labels Feb 16, 2021
@sara-tagger
Copy link
Collaborator

sara-tagger commented Feb 16, 2021

Exalate commented:

sara-tagger commented:

Thanks for the issue, @samsucik will get back to you about it soon!

You may find help in the docs and the forum, too
🤗

@8bit-code
Copy link

8bit-code commented Apr 7, 2021

Exalate commented:

8bit-code commented:

Having the same issue @sara-tagger (OSX, Win & Ubuntu).

@alwx
Copy link
Contributor

alwx commented Apr 8, 2021

Exalate commented:

alwx commented:

@8bit-code what's the version of Rasa you use?

@TyDunn TyDunn added the type:dependencies Pull requests that update a dependency file label Apr 16, 2021
@lobiCode
Copy link

lobiCode commented May 10, 2021

Exalate commented:

lobiCode commented:

I have the same issue. Python version: 3.8.5 Operating system: Ubuntu 20.04 pipenv version: 2020.11.15

@rodrigocaus
Copy link

rodrigocaus commented May 18, 2021

Exalate commented:

rodrigocaus commented:

I also have the same issue. Same as @lobiCode, using rasa 2.6.2 Workaround from #7124 (comment) has worked

@asmaier
Copy link

asmaier commented May 21, 2021

Exalate commented:

asmaier commented:

With Rasa 2.4.3 the issue

There are incompatible versions in the resolved dependencies:
python-engineio<3.14,>=3.11 (from rasa==2.3.0->-r /tmp/pipenvzjelhfjvrequirements/pipenv-13sv44g9-constraints.txt (line 2))
python-engineio>=4 (from python-socketio==5.0.4->rasa==2.3.0->-r /tmp/pipenvzjelhfjvrequirements/pipenv-13sv44g9-constraints.txt (line 2))

still exists. The workaround from #7124 (comment) doesn't work for 2.4.3, but it does work for 2.5.x and 2.6.x . So it seems one has to upgrade Rasa to 2.5.x or 2.6.x, if you use pipenv.

@rasabot-exalate rasabot-exalate added area:rasa-oss and removed type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. area:rasa-oss 🎡 Anything related to the open source Rasa framework labels Mar 15, 2022 — with Exalate Issue Sync
@rasabot rasabot added area:rasa-oss 🎡 Anything related to the open source Rasa framework and removed area:rasa-oss labels Mar 16, 2022
@rasabot-exalate rasabot-exalate added area:rasa-oss :ferris wheel: area:rasa-oss 🎡 Anything related to the open source Rasa framework and removed area:rasa-oss 🎡 Anything related to the open source Rasa framework area:rasa-oss :ferris wheel: labels Mar 17, 2022 — with Exalate Issue Sync
@m-vdb m-vdb removed the type:dependencies Pull requests that update a dependency file label Dec 8, 2022
@sync-by-unito
Copy link

sync-by-unito bot commented Dec 19, 2022

➤ Maxime Verger commented:

💡 Heads up! We're moving issues to Jira: https://rasa-open-source.atlassian.net/browse/OSS.

From now on, this Jira board is the place where you can browse (without an account) and create issues (you'll need a free Jira account for that). This GitHub issue has already been migrated to Jira and will be closed on January 9th, 2023. Do not forget to subscribe to the corresponding Jira issue!

➡️ More information in the forum: https://forum.rasa.com/t/migration-of-rasa-oss-issues-to-jira/56569.

@m-vdb m-vdb closed this as completed Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework
Projects
None yet
Development

No branches or pull requests