question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

[Bug] Support for Python 3.10?

See original GitHub issue

šŸ› Description

Installing this library on an Arch Linux machine was made impossible as of this morning due to the fact that Arch updated its Python installation to 3.10. As this version has been out for a while now and 3.10 should support everything in 3.9, it must have seemed like a no-brainer to the Arch team, but now I canā€™t build anything that depends on this library because of this line in the setup.py file.

Iā€™m not entirely sure why thereā€™s a hard limit on a minor version, but perhaps you could bump it to 3.11 or even 4.0? Is there a behaviour change in 3.10 that prevents TTS from operating?

To Reproduce

$ pip install tts
ERROR: Could not find a version that satisfies the requirement tts (from versions: none)
ERROR: No matching distribution found for tts

With Poetry, you get a little more information:

$ poetry install
Creating virtualenv [project-name] in [/path/to/virtualenv]
Installing dependencies from lock file

  SolverProblemError

  The current project's Python requirement (3.10.1) is not compatible with some of the required packages Python requirement:
    - tts requires Python >=3.6.0, <3.10, so it will not be satisfied for Python 3.10.1
  
  Because tts (0.4.2) requires Python >=3.6.0, <3.10
   and no versions of tts match >=0.4.1,<0.4.2 || >0.4.2,<0.5.0, tts is forbidden.
  So, because majel depends on tts (^0.4.1), version solving failed.

  at /usr/lib/python3.10/site-packages/poetry/puzzle/solver.py:241 in _solve
      237ā”‚             packages = result.packages
      238ā”‚         except OverrideNeeded as e:
      239ā”‚             return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
      240ā”‚         except SolveFailure as e:
    ā†’ 241ā”‚             raise SolverProblemError(e)
      242ā”‚ 
      243ā”‚         results = dict(
      244ā”‚             depth_first_search(
      245ā”‚                 PackageNode(self._package, packages), aggregate_package_nodes

Expected behavior

TTS would get installed along with everything else.

Environment

The shell script URL mentioned in the issue template results in a 404. Iā€™m guessing that the correct URL is https://raw.githubusercontent.com/coqui-ai/TTS/main/TTS/bin/collect_env_info.py ? I ran that, but it complained about torch not being installed, and running pip install pytorch resulted in much the same message as the above šŸ˜¦

So, hereā€™s the manual answers for you:

  • šŸøTTS Version (e.g., 1.3.0): 0.4.2
  • PyTorch Version (e.g., 1.8): ?
  • Python version: 3.10
  • OS (e.g., Linux): Arch
  • CUDA/cuDNN version: None
  • GPU models and configuration: No idea
  • How you installed PyTorch (conda, pip, source): pip
  • Any other relevant information: Not that I can think of.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
erogolcommented, Dec 20, 2021

Iā€™ll try to add p3.10 with the new version.

thanks for the flag.

2reactions
erogolcommented, May 3, 2022

If pytorch is started to support python 3.10 we can reconsider this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dealing with Bugs ā€” Python 3.11.1 documentation
Issue reports for Python itself should be submitted via the GitHub issues tracker (https://github.com/python/cpython/issues). The GitHub issues tracker offers aĀ ...
Read more >
Finding and reporting an asyncio bug in Python 3.10
Reporting the bug to the Python issue trackerā€‹ā€‹ Python bugs are tracked on bugs.python.orgā€”thankfully they support sign in with GitHub (andĀ ...
Read more >
Support Python 3.10 Ā· Issue #795 Ā· kapicorp/kapitan - GitHub
Describe the bug/feature Support Python 3.10 There might be issues with reclass cc @simu to be updated..
Read more >
python-language-server fails to build with Python 3.10
Page Help! Bug Writing Guidelines Ā· What's new Ā· Browser Support Policy Ā· 5.0.4.rh81 Release notes Ā· FAQ Ā· Guides index Ā· User...
Read more >
Bug #1933285 ā€œPython 3.10 Supportā€ : Bugs : calibre
Calibre can be built using Python 3.10b2 after 2e272a39d0efee74c840873e9164dce50640a3d8, but it seems that there are additional runtimeĀ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found