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

Dependency conflict with prompt-toolkit #172

Open
cedoucette opened this issue Apr 9, 2024 · 5 comments
Open

Dependency conflict with prompt-toolkit #172

cedoucette opened this issue Apr 9, 2024 · 5 comments

Comments

@cedoucette
Copy link

  • bump-my-version version: not installed
  • Python version: 3.9.0
  • Operating System: MacOS 14.4.1 (23E224) [Sonoma]

Description

I am just trying to install bump-my version (for the first time)

What I Did

pip install --upgrade bump-my-version
Collecting bump-my-version
  Downloading bump_my_version-0.20.0-py3-none-any.whl.metadata (13 kB)
Requirement already satisfied: click in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from bump-my-version) (8.1.7)
Requirement already satisfied: pydantic>=2.0.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from bump-my-version) (2.6.4)
Requirement already satisfied: pydantic-settings in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from bump-my-version) (2.2.1)
Requirement already satisfied: questionary in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from bump-my-version) (2.0.1)
Requirement already satisfied: rich-click in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from bump-my-version) (1.7.4)
Requirement already satisfied: rich in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from bump-my-version) (13.7.1)
Requirement already satisfied: tomlkit in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from bump-my-version) (0.12.4)
Requirement already satisfied: annotated-types>=0.4.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pydantic>=2.0.0->bump-my-version) (0.6.0)
Requirement already satisfied: pydantic-core==2.16.3 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pydantic>=2.0.0->bump-my-version) (2.16.3)
Requirement already satisfied: typing-extensions>=4.6.1 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pydantic>=2.0.0->bump-my-version) (4.10.0)
Requirement already satisfied: python-dotenv>=0.21.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pydantic-settings->bump-my-version) (1.0.1)
Collecting prompt_toolkit<=3.0.36,>=2.0 (from questionary->bump-my-version)
  Downloading prompt_toolkit-3.0.36-py3-none-any.whl.metadata (7.0 kB)
Requirement already satisfied: markdown-it-py>=2.2.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from rich->bump-my-version) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from rich->bump-my-version) (2.17.2)
Requirement already satisfied: mdurl~=0.1 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from markdown-it-py>=2.2.0->rich->bump-my-version) (0.1.2)
Requirement already satisfied: wcwidth in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from prompt_toolkit<=3.0.36,>=2.0->questionary->bump-my-version) (0.2.13)
Downloading bump_my_version-0.20.0-py3-none-any.whl (48 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.2/48.2 kB 778.7 kB/s eta 0:00:00
Downloading prompt_toolkit-3.0.36-py3-none-any.whl (386 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 386.4/386.4 kB 4.1 MB/s eta 0:00:00

Installing collected packages: prompt_toolkit, bump-my-version
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
ipython 8.18.1 requires prompt-toolkit<3.1.0,>=3.0.41, but you have prompt-toolkit 3.0.36 which is incompatible.
Successfully installed bump-my-version-0.20.0 prompt_toolkit-3.0.36
@cedoucette
Copy link
Author

After uninstalling ipython, everything worked fine w/o error.

@vinaysb
Copy link

vinaysb commented Apr 10, 2024

This seems to be an issue from questionary tmbo/questionary#344

@coordt
Copy link
Member

coordt commented Apr 10, 2024

I'll take a look today. Thanks for bringing it up.

@CyberTailor
Copy link

Is it possible to drop Questionary dependency and use Prompt-Toolkit directly?

@coordt
Copy link
Member

coordt commented Jul 1, 2024

@CyberTailor Prompt-toolkit appears to be the underlying issue: from questionary's pyproject.toml, the questionary issue mentioned by vinaysb, and this prompt-toolkit issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants