You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Package Compatibility Issue: ipython and shiny with Poetry
Summary
When using Poetry to manage a Python project that includes both ipython and shiny, a version conflict occurs due to incompatible dependencies on prompt-toolkit. This issue prevents the installation of both packages in their latest versions.
Error Message
Because no versions of questionary match >2.0.0,<2.0.1 || >2.0.1
and questionary (2.0.0) depends on prompt_toolkit (>=2.0,<=3.0.36), questionary (>=2.0.0,<2.0.1 || >2.0.1) requires prompt_toolkit (>=2.0,<=3.0.36).
And because questionary (2.0.1) depends on prompt_toolkit (>=2.0,<=3.0.36), questionary (>=2.0.0) requires prompt_toolkit (>=2.0,<=3.0.36).
Because no versions of shiny match >1.0.0,<2.0.0
and shiny (1.0.0) depends on questionary (>=2.0.0), shiny (>=1.0.0,<2.0.0) requires questionary (>=2.0.0).
Thus, shiny (>=1.0.0,<2.0.0) requires prompt_toolkit (>=2.0,<=3.0.36).
And because ipython (8.26.0) depends on prompt-toolkit (>=3.0.41,<3.1.0)
and no versions of ipython match >8.26.0,<9.0.0, shiny (>=1.0.0,<2.0.0) is incompatible with ipython (>=8.26.0,<9.0.0).
So, because polarstar depends on both shiny (^1.0.0) and ipython (^8.26.0), version solving failed.
Steps to Reproduce
Create a new directory (e.g., test)
Initialize a new Poetry project:
poetry init
Add ipython to the project:
poetry add ipython
Attempt to add shiny to the project:
poetry add shiny
Observe the error message above
Root Cause
The conflict arises from incompatible version requirements for prompt-toolkit:
shiny depends on questionary, which requires prompt-toolkit (>=2.0,<=3.0.36)
Oh wait, I was looking at questionary's GitHub repo which has updates but is still at 2.0.1. It looks like questionary plans to push a new release soon that will remove the prompt_toolkit restriction.
Package Compatibility Issue: ipython and shiny with Poetry
Summary
When using Poetry to manage a Python project that includes both
ipython
andshiny
, a version conflict occurs due to incompatible dependencies onprompt-toolkit
. This issue prevents the installation of both packages in their latest versions.Error Message
Steps to Reproduce
test
)Root Cause
The conflict arises from incompatible version requirements for
prompt-toolkit
:shiny
depends onquestionary
, which requiresprompt-toolkit (>=2.0,<=3.0.36)
ipython
(version 8.26.0) requiresprompt-toolkit (>=3.0.41,<3.1.0)
These requirements cannot be satisfied simultaneously, causing the dependency resolution to fail.
Workaround
Manually specify a lower version of ipython that is compatible with the required version of
prompt-toolkit
. For example:Then add shiny:
Proposed Solutions
shiny
or its dependencies to support newer versions ofprompt-toolkit
.ipython
can be made compatible with a wider range ofprompt-toolkit
versions.The text was updated successfully, but these errors were encountered: