[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:
- Created 2 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top GitHub Comments
Iāll try to add p3.10 with the new version.
thanks for the flag.
If pytorch is started to support python 3.10 we can reconsider this issue.