Skip to content

Fix: update python versions be 3.9 and greater to avoid pytorch dependency issues #100

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lalanikarim
Copy link

Python 3.8 results in pytorch version incompatibility issue

$ uv run --python 3.8 --with=git+https://github.com/resemble-ai/chatterbox https://raw.githubusercontent.com/resemble-ai/chatterbox/refs/heads/master/example_tts.py
  × No solution found when resolving `--with` dependencies:
  ╰─▶ Because torch==2.6.0 has no wheels with a matching Python implementation tag (e.g., `cp38`) and chatterbox-tts==0.1.2 depends on torch==2.6.0,
      we can conclude that chatterbox-tts==0.1.2 cannot be used.
      And because only chatterbox-tts==0.1.2 is available and you require chatterbox-tts, we can conclude that your requirements are unsatisfiable.

      hint: You require CPython 3.8 (`cp38`), but we only found wheels for `torch` (v2.6.0) with the following Python implementation tags: `cp39`,
      `cp310`, `cp311`, `cp312`, `cp313`

@lalanikarim lalanikarim force-pushed the fix-requires-python branch from efea9c0 to b1530b9 Compare May 31, 2025 21:11
@lalanikarim lalanikarim marked this pull request as ready for review May 31, 2025 21:11
@lalanikarim lalanikarim changed the title update python versions be 3.9 and greater to avoid pytorch dependency issues Fix: update python versions be 3.9 and greater to avoid pytorch dependency issues May 31, 2025
@undg
Copy link

undg commented Jun 5, 2025

This solves the same issue when installing all dependencies with poetry:

$ poetry install
  Updating dependencies
  Resolving dependencies... (0.2s)

  The current project\'s supported Python range (>=3.8) is not compatible with some of the required packages Python requirement:
    - torch requires Python >=3.9.0, so it will not be installable for Python >=3.8,<3.9.0

  Because chatterbox-tts depends on torch (2.6.0) which requires Python >=3.9.0, version solving failed.

    * Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties

      For torch, a possible solution would be to set the `python` property to ">=3.9.0"

      https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
      https://python-poetry.org/docs/dependency-specification/#using-environment-markers

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

Successfully merging this pull request may close these issues.

2 participants