Open shrektan opened 3 months ago
Interesting, shiny requires questionary>=2.0.0
, but poetry seems to be excluding questionary 2.0.1
.
Can you try installing questionary v2.0.1, which requires prompt_toolkit = ">=2.0,<4.0"
?
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.